Random Project

Needed slight modification

I use it with Opsview Core (latest release as of this writing). I ended up removing taint checking as I was getting the script bailing with a failed check on line 268.

If you’re getting “255 out of bounds” as a result check the following:

* Your Nagios console IP address has been added to the SNMP v1 access list of the UPS unit; you can add it as a FQDN but that means DNS has to be configured on each UPS.
* The SNMP community name is right. I created a new attribute in Opsview for this.
* When you’ve changed the unit settings, go through the restart process on the UPS. My results were inconsistent until I did.

Two of the checks I wasn’t able to get working:

batteryTemperature – not supported on our units. Oops.

outputLoadPercent – the OID appears to be incorrect. I’m still tracking it down.

Overall, good work!