Ok guess I will start with what I would like to accomplish…
would like to run ./check_snmp ... -o 188.8.131.52.4.1.3184.108.40.206.220.127.116.11
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 18.104.22.168.4.1.322.214.171.124.126.96.36.199 and if critical retry every 15 sec. if third time still critical run the script of shutdown.sh?
Thanks in advance & best regards,