<output message with some sort of exit code (0-3)> | <performance data for graphing>
The exit code from the check script must exit with a numeric value (0-3) in order for Nagios to read it correctly. In the code it will look something like :
Code: Select all
exit(0) //if state is OK
exit(1) //if state is warning
exit(2) //if state is critical
exit(3) //if state is unknown
Are you intending for the following data to be graphed?
If not, you need to remove the '|' as part of your plugin output.'aw-test.txt'=1;0;1;
Does that make sense?