Sometimes you want to write a simple script to check a few things and have this script work with Nagios. Well, one of the 1st things you need to understand are the return codes. Below are the basic return codes your script should return.
Read the following if you really want to start writing your own plugins. Let me know know too and I will even test them. Ref: http://nagiosplug.sourceforge.net/developer-guidelines.html
|
Numeric |
Services |
Status Description |
| 0 | OK | Plugin executed and results are within parameters |
| 1 | WARNING | Plugin executed and results are in warning range, or are not functioning properly |
| 2 | CRITICAL | Plugin detected the service is not running, or the service is in the critical threshold |
| 3 | UNKNOWN | Typically invalid check parameters, missing values, missing plugin components, etc. |