Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
CyberPower UPS
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
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!