Penguin
Note: You are viewing an old revision of this page. View the current version.

I have an APC ups (a Back-UPS 350 USB, not that it really matters) which I monitor via apcupsd (note that you need a version of apcupsd > 3.10 to make use of a USB cable to your UPS. This doesn't exist in debian woody or unstable, go compile from source)

I have a script here which will output some information from the UPS. The only useful parameters I could get via apcaccess were the Battery Charge, Nominal Battery Voltage, and Time Left, so these are the values that are output from the script. Other UPS's can report on other ifnormation such as AC Voltage and Frequency, the former of which might be quite useful.1?

1? If anyone knows how to get AC Voltage information via apcupsd (or otherwise) from an APC Back-UPS 350 USB UPS, let me know --DanielLawson


LindsayDruett has just done it on an MGE UPS

The best way around this is to create your own data sources, and enter in the relevent SNMP OIDs.

  • I captured

    • Battery Current .1.3.6.1.4.1.705.1.5.6.0
    • Battery Discharge Time (Seconds) .1.3.6.1.4.1.705.1.5.1.0
    • Battery Level (Percentage) .1.3.6.1.4.1.705.1.5.2.0
    • Battery Recharge Level (Percentage) .1.3.6.1.4.1.705.1.5.4.0
    • Battery Recharge Time (Seconds) .1.3.6.1.4.1.705.1.5.3.0
    • Battery Temperature .1.3.6.1.4.1.705.1.5.7.0
    • Battery Voltage .1.3.6.1.4.1.705.1.5.5.0
    • Input Current .1.3.6.1.4.1.705.1.6.2.1.6.1
    • Input Frequency .1.3.6.1.4.1.705.1.6.2.1.3.1
    • Input Maximum Voltage (for Surges) .1.3.6.1.4.1.705.1.6.2.1.5.1
    • Input Minimum Voltage (for Lags) .1.3.6.1.4.1.705.1.6.2.1.4.1
    • Input Voltage .1.3.6.1.4.1.705.1.6.2.1.2.1
    • Output Current .1.3.6.1.4.1.705.1.7.2.1.5.1
    • Output Frequency .1.3.6.1.4.1.705.1.7.2.1.3.1
    • Output Load (Percentage Used) .1.3.6.1.4.1.705.1.7.2.1.4.1
    • Output Voltage .1.3.6.1.4.1.705.1.7.2.1.2.1

This was done with a single phase 2 KVA (2000 VA) UPS. (MGE2000 UPS with a 66074 SNMP/Web Management Card)
A rule had to be added into the CDEF functions as the output values were ten times the real values (apart from percentage and seconds).

  • I created six graphs

    • Battery Status
    • Battery recharge/discharge times
    • Input and Output Voltages
    • Input and Output Current readings
    • Input and Output Frequency
    • UPS Load Percentage

More SNMP readings can be done, especially on larger installations where three phase and/or external batteries are involved.

Cacti Templates for MGE UPSes can be obtained here
This template will support both Single Phase UPSes and Three Phase UPSes.

IETF UPS will be available soon