Check APC

To check APC SmartUPS via SNMP. Based on check_ups_apc.pl from altinity.com (Opsview) with modifications of Blueeye - with perfdata - APC Serial Number, Firmware Version, Manufacturing Date, Battery Date, UPS Type, Capacity, Output Status, Output Reason, Output Current, Output Load, Battery Temperature, Remaining Time, On Battery Time...

check_ups_apc.pl

Nagios/Icinga plugin to monitor APC UPS systems via SNMP.

Features

  • APC Smart-UPS status checks via SNMP v1/v2c/v3
  • Battery capacity, load, temperature, remaining runtime
  • Optional runtime and replacement metadata in output
  • Performance data output for graphing

Requirements

  • Perl 5.10+
  • Net::SNMP
  • Getopt::Long
  • Time::Piece

Usage

./check_ups_apc.pl -H  -C 

SNMPv3 example:

./check_ups_apc.pl -H  -v 3 -U  -A  -a sha -X  -x aes

Common Options

  • -H: Hostname or IP
  • -v: SNMP version
  • -C: Community (v1/v2c)
  • -U: Username (v3)
  • -A: Auth password (v3)
  • -X: Privacy password (v3)
  • -w: Warning battery temperature
  • -c: Critical battery temperature

Output

Returns standard Nagios exit codes:

  • 0 OK
  • 1 WARNING
  • 2 CRITICAL
  • 3 UNKNOWN

License

GNU General Public License v2.0 (see repository license selection).