Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_apcupsd_ng2
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!
A Nagios plugin to monitor APC Smart UPS’s forked from Ben Shepard’s check_apcupsd_ng
Features: Checks battery charge, temperature, load, runtime remaining, battery voltage, line voltage, output voltage and line frequency, ALL TOGETHER.
Also provides performance data for all checks.
Installation: Install and configure apcupsd and ensure you can access stats from your UPS with the apcaccess command. Copy the plugin to your Nagios plugins directory (i.e. where you can find the "utils.sh" script) and make it executable. Example Nagios configs are documented in the plugin file. Run the script without parameters to get full usage info.
Latest news:
* doesn'issue a warning in case of "self test" (only for battery level under the "warning" threshold)
* when selecting "all" tests, you can exclude specific tests
Features: Checks battery charge, temperature, load, runtime remaining, battery voltage, line voltage, output voltage and line frequency, ALL TOGETHER.
Also provides performance data for all checks.
Installation: Install and configure apcupsd and ensure you can access stats from your UPS with the apcaccess command. Copy the plugin to your Nagios plugins directory (i.e. where you can find the "utils.sh" script) and make it executable. Example Nagios configs are documented in the plugin file. Run the script without parameters to get full usage info.
Latest news:
* doesn'issue a warning in case of "self test" (only for battery level under the "warning" threshold)
* when selecting "all" tests, you can exclude specific tests
Reviews (2)
Funny. I wanted to do this myself but then I found this script. Nice! Saved some work.
I had to heavily modify it to fit my needs though.
Code error: Line 187 change to:
-a "$ARG" != "outputv" -a "$ARG" != "linefreq" -a "$ARG" != "all" -a "$ARG" != "battdate"]
-> battdate was missing
And Line frequency; in- and out voltage are doing a "Max Value exceeded" check. This makes no sense; since I want to check for minimum values. So I changed the "-ge" evals to "-le" and remove sanity checks altogether; I could do so since this plugin can just replace the old check command.
In my opinion its much to verbose; maybe add a -v option do get rid of the $MSG? I set this var as empty string.
I had to heavily modify it to fit my needs though.
Code error: Line 187 change to:
-a "$ARG" != "outputv" -a "$ARG" != "linefreq" -a "$ARG" != "all" -a "$ARG" != "battdate"]
-> battdate was missing
And Line frequency; in- and out voltage are doing a "Max Value exceeded" check. This makes no sense; since I want to check for minimum values. So I changed the "-ge" evals to "-le" and remove sanity checks altogether; I could do so since this plugin can just replace the old check command.
In my opinion its much to verbose; maybe add a -v option do get rid of the $MSG? I set this var as empty string.
Owner's reply
Thank you for your feedback.
I just uploaded the fixed version for the missing "battdate" option.
That implements also the "-v" option, excluding by default the verbose infos.
About the check logics, I have just inherited the original ones, without going too deep.
I'd like to implement the Nagios guidelines about Threshold and ranges, but unfortunaely I haven't much time to do that.
It doesn't run as it is missing an imported shell script, utils.sh.
Owner's reply
That script is included in the standard "nagios-plugins" package.