check_nagiosxiserver.php issue from NagiosXI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: check_nagiosxiserver.php issue from NagiosXI

Post 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.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: check_nagiosxiserver.php issue from NagiosXI

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: check_nagiosxiserver.php issue from NagiosXI

Post 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.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: check_nagiosxiserver.php issue from NagiosXI

Post by hsmith »

Let us know.

Thanks.
Former Nagios Employee.
me.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: check_nagiosxiserver.php issue from NagiosXI

Post 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.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: check_nagiosxiserver.php issue from NagiosXI

Post by Box293 »

Perhaps there were multiple nagios processes running?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: check_nagiosxiserver.php issue from NagiosXI

Post 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.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: check_nagiosxiserver.php issue from NagiosXI

Post 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.
Former Nagios employee
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: check_nagiosxiserver.php issue from NagiosXI

Post 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.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
Locked