Page 3 of 3
Re: check_nagiosxiserver.php issue from NagiosXI
Posted: Tue Oct 20, 2015 6:29 pm
by rajasegar
ssax wrote:For the check_nagiosxiserver.php one:
It looks like the body and headers are empty from the debug output that you posted, the script uses curl to access the data, the http_code of 0 usually means that it had trouble connecting.
Back up your current /usr/local/nagios/libexec/check_nagiosxiserver.php, replace it with the one attached, force the check and then post the output from the XI interface.
Thank you
I was changing the worker configuration from 2 to 1 for another problem
https://support.nagios.com/forum/viewto ... 64#p157764
Suddenly the services became ok while nagios was restarting??
The strange thing is these checks are not using gearman.
Re: check_nagiosxiserver.php issue from NagiosXI
Posted: Tue Oct 20, 2015 6:57 pm
by Box293
rajasegar wrote:I was changing the worker configuration from 2 to 1 for another problem
viewtopic.php?f=16&t=35138&p=157764#p157764
Suddenly the services became ok while nagios was restarting??
The strange thing is these checks are not using gearman.
Does changing it back make the problem re-occur.
Re: check_nagiosxiserver.php issue from NagiosXI
Posted: Tue Oct 20, 2015 7:08 pm
by rajasegar
Box293 wrote:rajasegar wrote:I was changing the worker configuration from 2 to 1 for another problem
viewtopic.php?f=16&t=35138&p=157764#p157764
Suddenly the services became ok while nagios was restarting??
The strange thing is these checks are not using gearman.
Does changing it back make the problem re-occur.
I will check when there is a downtime.
Re: check_nagiosxiserver.php issue from NagiosXI
Posted: Wed Oct 21, 2015 9:04 am
by hsmith
Let us know.
Thanks.
Re: check_nagiosxiserver.php issue from NagiosXI
Posted: Wed Oct 21, 2015 6:26 pm
by rajasegar
hsmith wrote:Let us know.
Thanks.
The checks is still ok after I changed the worker count back to 2.
So still no idea how this problem vanished.
Re: check_nagiosxiserver.php issue from NagiosXI
Posted: Wed Oct 21, 2015 7:26 pm
by Box293
Perhaps there were multiple nagios processes running?
Re: check_nagiosxiserver.php issue from NagiosXI
Posted: Wed Oct 21, 2015 7:32 pm
by rajasegar
Box293 wrote:Perhaps there were multiple nagios processes running?
Multiple nagios only impacting check_esx3 and check_nagiosxiserver.php?
Next time I will double check this.
Re: check_nagiosxiserver.php issue from NagiosXI
Posted: Thu Oct 22, 2015 2:47 pm
by tmcdonald
It's certainly possible, especially with checks that write temp files to maintain state between runs, or otherwise touch things outside of their own memory.
Re: check_nagiosxiserver.php issue from NagiosXI
Posted: Thu Oct 22, 2015 7:01 pm
by rajasegar
tmcdonald wrote:It's certainly possible, especially with checks that write temp files to maintain state between runs, or otherwise touch things outside of their own memory.
Ok. Wonder why nagios does not check before starting multiple instance. It would be easier this way.
Anyway please close this case.