Home > Nagios > Monitoring a UPS with Nagios

Monitoring a UPS with Nagios

July 12th, 2009

The check_ups plugin was created to facilitate monitoring of a number of UPS vendor products.  To use the plugin you will need to install UPSD daemon distributed with Russel Kroll’s Smart UPS Tools on the remote host.  (See the REQUIREMENTS at the end of this post).

I do however believe that this plugin works with the old NUT API, which has been deprecated when switching from 1.4 to 2.0 version of NUT.

Copyright (c) 2000 Tom ShieldsCopyright (c) 2004 Alain Richard
Copyright (c) 2004 Arnaud Quette
Copyright (c) 2002-2006 Nagios Plugin Development Team

This plugin tests the UPS service on the specified host.Network UPS Tools
from www.networkupstools.org must be running for thisplugin to work.

Usage:check_ups -H host -u ups [-p port] [-v variable] [-w warn_value] [-c crit_value] [-to to_sec] [-T]

-h, –help
Print detailed help screen
-V, –version
Print version information
-H, –hostname=ADDRESS
Host name, IP Address, or unix socket (must be an absolute path)
-p, –port=INTEGER
Port number (default: 3493)
-u, –ups=STRING
Name of UPS
-T, –temperature
Output of temperatures in Celsius
-v, –variable=STRING
Valid values for STRING are LINE, TEMP, BATTPCT or LOADPCT
-w, –warning=DOUBLE
Response time to result in warning status (seconds)
-c, –critical=DOUBLE
Response time to result in critical status (seconds)
-t, –timeout=INTEGER
Seconds before connection times out (default: 10)

This plugin attempts to determine the status of a UPS (Uninterruptible Power
Supply) on a local or remote host. If the UPS is online or calibrating, the
plugin will return an OK state. If the battery is on it will return a WARNING
state.If the UPS is off or has a low battery the plugin will return a CRITICAL

You may also specify a variable to check [such as temperature, utility voltage, battery load, etc.]  as well as warning and critical thresholds for the value of that variable.  If the remote host has multiple UPS that are being monitored you will have to use the [ups] option to specify which UPS to check.

This plugin requires that the UPSD daemon distributed with Russel Kroll’s
Smart UPS Tools be installed on the remote host.  If you do not have the
package installed on your system, you can download it from http://www.networkupstools.org

Categories: Nagios Tags:
Comments are closed.