Urgent nagios plugin testing issue
Posted: Sun Feb 20, 2011 7:23 am
Hello everyone,
I use Nagios on a linux server and I wrote my own plugin in php.
I need a quick solution for these problems:
1. I need a way to make nagios run my php script by demand so I can debug it faster.
I tried setting all the intervals to 1 second so that Nagios will try invoking the script as it starts up but it doesn't work. I need to wait each time.
2. Nagios doesn't print to log service alerts if their status is OK. I need the output so I can know for sure that the test was executed.
3. Sometimes Nagios returns Return code of 126 is out of bounds - plugin may be missing. The script isn't missing and I don't know why.
Thanks for the help,
Shaul.
I use Nagios on a linux server and I wrote my own plugin in php.
I need a quick solution for these problems:
1. I need a way to make nagios run my php script by demand so I can debug it faster.
I tried setting all the intervals to 1 second so that Nagios will try invoking the script as it starts up but it doesn't work. I need to wait each time.
2. Nagios doesn't print to log service alerts if their status is OK. I need the output so I can know for sure that the test was executed.
3. Sometimes Nagios returns Return code of 126 is out of bounds - plugin may be missing. The script isn't missing and I don't know why.
Thanks for the help,
Shaul.