Generic SNMP monitor using snmpget
Problem this snippet solves: The following is a little script that should be used as an external monitor. It performs snmpget requests on the node and evaluate the response, based on that returns se...
Published Mar 12, 2015
Version 1.0Lahav_Savir_532
Nimbostratus
Joined March 16, 2008
Lahav_Savir_532
Nimbostratus
Joined March 16, 2008
brad_11480
Sep 05, 2018Nimbostratus
Why is this monitor failing when the 'echo' is done in function response ()?
i have re-downloaded this and it still fails to complete the script. i have put it on another system and it also fails to complete the script.
If I log right after the echo it doesn't appear in the log.
It have tried moving the echo response and it doesn't matter. It seems that as soon as the echo is issued the process finishes and nothing else is processed including the remove of the pid file. The next time it runs it finds the file and errors trying to kill the process (that had finished!).