2.7.1 Using the Nagios Plugins

To monitor all of your machines, run:

# /usr/lib/nagios/plugins/check_uptrack

This command produces a summary about your machines in the standard Nagios plugin format, for example:

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

If you specify the -c or -w options with a comma-separated list of the arguments i, o, or u for inactive out of date, or unsupported machines, check_uptrack displays critical or warning notices for machines that match those criteria. For example, the following command returns warning notices for any machines that are inactive or unsupported, and 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, you can use the check_uptrack_local plugin:

# /usr/lib/nagios/plugins/check_uptrack_local

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

Note

check_uptrack_local reads the local Uptrack update cache. It does not use the settings in /etc/uptrack-api.conf.