UPS

Check PDU

Description:

Perl script to poll SNMP-enabled UPS devices, namely from Tripp Lite, such as the PDUMH20ATNET.

Current Version

Last Release Date

June 11, 2009

Compatible With

Owner


Project Files
Project Notes
This is a perl script for polling via SNMP voltage, frequency, and amperage data. This script also outputs performance data for graphing, etc. The URL posted above has a very detailed setup page for the uninitiated. PLEASE contact me with questions and advice.
Reviews (2) Add a Review
Looks ok but needs examples
by OkieUnixDeem, January 31, 2020

While the command shows me the following: Usage: ${0} hostname snmp_community key min max It be good if author supplied an example, especially users who may have never used these features before, what simple to you may not be for other. Teach!!!!



Not quite very detailed
by derekcat, March 31, 2013

You need to specify where to put MIBs.. Eventually I found /usr/share/snmp/mibs but that should really be part of a /detailed/ instruction. :) Also the code in your wiki is wrong.. The use lib line should be: use lib "/usr/local/nagios/libexec"; You had lib exec and nagios switched.. (This prevents it from running correctly in Nagios) It's also worth noting that the SNMP community is version 2c [Causes problems if you're running a newer firmware and trying to use the V1 community...] and finally to get the voltage reading correct on my second PDU [now running the very latest firmware... Which changes the SNMP replies], I had to add a bit to your script: #these two ifs, fix the output voltage if it's not reading correctly... -Derek if ($inputv > 1000){ $inputv = ($inputv / 10); } if ($outputv > 1000){ $outputv = ($outputv / 10); } If something's wrong with those lines.. It's because I only know basic Python, not Perl :) In the end, it's working beautifully, though it has probably taken ~8 hours to get to this point. lol..



Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
3.5 (2)
Favorites
0
Views
102,134