4.8 Using the Nagios Plugins

To monitor all of your machines by using the Nagios plugins, run the following command:

# /usr/lib/nagios/plugins/check_uptrack

The previous command produces a summary of your machines in the standard Nagios plug-in format, as shown in the following example:

2 machines are OUTOFDATE!|uptodate=1280;outofdate=1;unsupported=0;inactive=3
  prod1.mydom.com ( is OUTOFDATE
  prod2.mydom.com ( is OUTOFDATE

If you specify the -c or -w options with a comma-separated list of the arguments that also specify the i, o, or u options for inactive, out-of-date, or unsupported machines, the check_uptrack command displays critical or warning notices for machines that match the criteria.

For example, the following command returns warning notices for any machines that are inactive or unsupported, as well as critical notices for any machines that are out of date:

/usr/lib/nagios/plugins/check_uptrack -w u,i -c o

To monitor the local machine, use the check_uptrack_local plugin:

# /usr/lib/nagios/plugins/check_uptrack_local

The output from the check_uptrack_local command is similar to the output from the check_uptrack command. However, for out-of-date machines, the command also lists the updates that are required to bring the machine up to date.


The check_uptrack_local command reads the local uptrack update cache; however, it does not use the settings from the /etc/uptrack-api.conf file.