I have to monitor if our software has created certain files. I wrote a script on the server and the output of it is monitored through SNMP. If I set up a SNMP Custom String sensor, I can ask it to monitor if a certain string is there. If the string is not in the response, the sensor goes down and in displays "Error: String not found [Searchstring]"
Is there a normal way to display the string which is returned? Or a custom message?
I have found a dirty way: I created a SNMP Custom sensor and return a 1 as long as everything is alright and if not, the error is display like this: "Error 'responsestring' is not an integer".
It does the trick by displaying the response, but it's not how it's supposed to be.
Add comment