Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
CyberPower UPS
Current Version
1.0
Last Release Date
2017-08-24
Compatible With
- Nagios 2.x
- Nagios 3.x
- Nagios 4.x
- Nagios XI
Owner
License
GPL
Hits
6804
Files:
File | Description |
---|---|
check_cps.pl | check_cps.pl |
Perl program for checking the status of a CyberPower UPS.
check_cps.pl - v1.0
Nagios script to check status of an CyberPower Systems Uninteruptable Power Supply.
Usage:
-H Address of hostname of UPS (required)
-C SNMP community string (required)
-l Command (optional, see command list)
-p SNMP port (optional, defaults to port 161)
-t Connection timeout (optional, default 10s)
-w Warning threshold (optional)
-c Critical threshold (optional)
-u Script / connection errors will return unknown rather than critical
Commands (supplied with -l argument):
status
Shows output status of UPS (On battery power, bypass, etc)
health
Shows result of last diagnostic test and date run. Optional warning or critical
values for days since last test was run. Will also warn if battery needs replacing.
battery
Shows current batery replacement status
model
Shows the model number of the UPS
serial
Shows the serial number of the UPS
transfer
Shows the current line transfer status
temp
Shows the current temp of the UPS in Celcius
load[:###]
Shows output load in percentage of maximum load. Optional warning or critical
values in percentages of total load.
If an integer value of the maximum output wattage capacity of the UPS is included
after a colon (:), then the output in watts will be included in the result.
No command is supplied, the script return OKAY with the UPS model information.
Example:
check_cps.pl -H ups1.domain.local -C public -l health
Not all required options were specified.
check_cps.pl - v1.0
Nagios script to check status of an CyberPower Systems Uninteruptable Power Supply.
Usage:
-H Address of hostname of UPS (required)
-C SNMP community string (required)
-l Command (optional, see command list)
-p SNMP port (optional, defaults to port 161)
-t Connection timeout (optional, default 10s)
-w Warning threshold (optional)
-c Critical threshold (optional)
-u Script / connection errors will return unknown rather than critical
Commands (supplied with -l argument):
status
Shows output status of UPS (On battery power, bypass, etc)
health
Shows result of last diagnostic test and date run. Optional warning or critical
values for days since last test was run. Will also warn if battery needs replacing.
battery
Shows current batery replacement status
model
Shows the model number of the UPS
serial
Shows the serial number of the UPS
transfer
Shows the current line transfer status
temp
Shows the current temp of the UPS in Celcius
load[:###]
Shows output load in percentage of maximum load. Optional warning or critical
values in percentages of total load.
If an integer value of the maximum output wattage capacity of the UPS is included
after a colon (:), then the output in watts will be included in the result.
No command is supplied, the script return OKAY with the UPS model information.
Example:
check_cps.pl -H ups1.domain.local -C public -l health
Not all required options were specified.
Reviews (0)
Be the first to review this listing!