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.


Article Comments

Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.

Hello,

thank you very much for your KB-Post and this feedback. You are correct, in the moment the "SNMP Custom String"-Sensor doesn't show the result string if the "SearchString" is not found. We will put this on the list to be improved, but I can't say an ETA in the moment. Please bear with us, and use the very good work-around until then.

best regards.


Jul, 2013 - Permalink

As of PRTG version 15.2.17.2345/2346, the SNMP Custom String Sensor shows the string you search for and which is the reason for a current Warning or Down status in the sensor message.

For example:

  • Warning/Error: String not found [search text] in [content]
  • Warning/Error: Regular Expression [expression] does not match [content]
  • Warning/Error: String found [search text] in [content]
  • Warning/Error: Regular Expression [expression] matches [content]

May, 2015 - Permalink