Custom snmp apc ups


Ok guess I will start with what I would like to accomplish…
would like to run ./check_snmp ... -o
SNMP OK - “Smart-UPS 2200 RM” |

I would like to if it were a critical run a script afterwards which would shutdown all servers and notify myself and CIO of a power outage at our corporate office.

I have the script wrote up for the shutdown procedure already.

what I cant do is open for edit the check_snmp because of character coding or I would have created it within the script.

So how can I create a plugin that will check snmp for the oid and if critical retry every 15 sec. if third time still critical run the script of

Thanks in advance & best regards,


you don’t need to modify check_snmp, look in the docs for “event handlers”.