Home Directory Plugins Hardware UPS APC check_apcupsd_v1_3 (performance data output added)

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_apcupsd_v1_3 (performance data output added)

Rating
4 votes
Favoured:
0
Hits
154593
Files:
FileDescription
check_apcupsd_v1_3check_apcupsd_v1_3
Nagios CSP

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!
check_apcupsd v1.2 is now v1.3 (performance data output added)
Using pnp4nagios there is the need to get performance data. So I added some output for the performance data to the script. It works fine but further improvement is welcome.
Reviews (2)
line 206, missing "R", says "WANVAL", should say "WARNVAL".
bythundercost, February 12, 2013
I have a better value rounding meth?d to suggest.
I changed the line:
ROUNDED=`echo $VALUE | sed 's/\..*//'`
with:
ROUNDED=`echo $VALUE | awk '{printf("%d\n",$1 + 0.5)}'`

I faced a problem when the '.7' value for Input voltage (power failure) appeared to be 'OK'.
Thank you!