Hi,

Would it be possible to create a custom Event Log Sensor which looks for the latest backup exec result and returns it to the sensor and then changes the sensor state based on what is returned?

E.g "Backup Failed" triggers the sensor to go to error state but if it is followed by a "Backup Successful" the next day it will go in to normal state.

Marcus


Article Comments

Another questions that rose.

Can I return both a value (used by the sensor) and a message (added to the sensor log)?


May, 2014 - Permalink

Hello,

thank you very much for your KB-Posts. Both should be possible with a self-written Custom sensor, just have the sensor check the logs, and either return an error as long as the newest matching event means failed, otherwise return an "OK".
The sensor return should be in the format:

value:message

Please be aware though, that if you return an error from the script, the value will be disregarded in PRTG then. So it might be better to work with Error-Limits then in PRTG for the error case.
Please also see your PRTG under "Setup"->"PRTG API"->"Custom Sensors".

best regards.


May, 2014 - Permalink