![]() |
Nagios plugin development question.
Hi,
How do nagios decide to turn certain input into red and decide they are critical? Are they evaluated against -c and -w arguments? if so at what point. We take custom out put for our applications, but where there is no output it just shows nothing. Now we want it to go red and send alerts. What I have tired is 1-send '-c' argument which I chose it to be 3. 2- on libexec side, I printed 4. But all it does is print 4. That it. So what I do to see if the things is on critical level and stuff. Thanks |
Hello,
Nagios uses plugins for the host and service checks. They provide four different return values: O (OK), 1 (WARNING), 2 (CRITICAL), and 3 (UNKNOWN). That's how Nagios get's feedback from the plugins. You can read some more about it here (old article but still valid info). Nagios Basics Quote:
Kind regards, Eric |
Thanks Eric.
I found the solution. What ever the return value plugin produce thats get evaluated. What I did before was Code:
Code:
#!/bin/bash Bye. |
Hi,
That's great! If you consider this thread as solved you can mark it as such using the thread tools. Have fun with Linux! Kind regards, Eric |
All times are GMT -5. The time now is 06:03 AM. |