I'd like to avoid doing the XML component, as it is a bit obtuse to me. I've created an SNMP object via extend like so:
/etc/snmpd.conf:
Code: Select all
extend upsCheck /usr/local/bin/apcupsd-snmp.php
Code: Select all
homeserver-02 bin # snmpwalk -Os -c xxx -v 1 localhost NET-SNMP-EXTEND-MIB::nsExtendOutputFull.\"upsCheck\"
nsExtendOutputFull."upsCheck" = STRING: time_left:23.8 load_pct:35 temperature:29.2 batt_volt:27.8 batt_charge:100 line_volt:119 line_freq:60 time_on_batt:0 cum_time_on_batt:0
homeserver-02 bin #
Thanks in advance for your help.