![]() |
![]() |
Subject: | Datapoints return text, how do you threshold/graph/alert or even know it's working? |
Author: | [Not Specified] |
Posted: | 2014-06-18 13:55 |
I have a COMMAND datasource that executes over SSH and the value returned says HEALTH OK. How do you either convert that to an integer to graph/threshold off it or is that even an option If not an option, what do others do for command datasources like that when the datapoint is text. How do you alert on it
Subject: | For these kinds of things |
Author: | Chet Luther |
Posted: | 2014-06-23 09:16 |
For these kinds of things where you're looking for a status you'd need to modify the script you're executing so that it exited with exit code 1 if the health wasn't OK, and exit code 0 if the health was OK. If you do that and use the Nagios parser on your datasource, you'll find that the first line of output from the script will be used to create the event summary when the non-zero exit code is returned.
< |
Previous Nagios Parser - single/multi-line/multiple key/value pairs parsing... |
Next problem with zenwinperf |
> |