Committing a change stalls out/ timeout of cmd.cgi

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
agentguerry
Posts: 9
Joined: Mon Feb 23, 2015 10:37 am

Committing a change stalls out/ timeout of cmd.cgi

Post by agentguerry »

Has anyone seen this type of issue before where via the web page, you will try to enable notifications on a host, or a host group, and when you click "commit". The process just hangs and then you get a time out?

viewing the /var/log/http/error_log this is what I see when trying to "commit" a change.

Seems to be headed toward the cmd.cgi file, but I don't see anything really out of the ordinary.

[Sat Nov 04 23:51:08 2017] [warn] [client x.x.x.x] Timeout waiting for output from CGI script /usr/local/nagios/sbin/cmd.cgi, referer: http://x.x.x.x/nagios/cgi-bin/cmd.cgi?c ... rd-servers
[Sat Nov 04 23:51:08 2017] [error] [client x.x.x.x] Script timed out before returning headers: cmd.cgi, referer: http://x.x.x.x/nagios/cgi-bin/cmd.cgi?c ... rd-servers

Thanks for the assistance.
kyang

Re: Committing a change stalls out/ timeout of cmd.cgi

Post by kyang »

What version of Nagios do you have installed? Which OS?

Can you run this command and show us the output.

Code: Select all

ls -l /usr/local/nagios/var/rw/nagios.cmd
Does it happen anywhere else other than enabling notifications?
agentguerry
Posts: 9
Joined: Mon Feb 23, 2015 10:37 am

Re: Committing a change stalls out/ timeout of cmd.cgi

Post by agentguerry »

So, what happened was during a yum update, nagios was updated. but it did not correctly use the start command to the new cfg file. it was trying to use the old one still....

Once we corrected that, and had to chown the nagios log file then things started working correctly.
kyang

Re: Committing a change stalls out/ timeout of cmd.cgi

Post by kyang »

Sounds good! Glad you figured it out.

Are we okay to close this thread? Or did you have more questions?
agentguerry
Posts: 9
Joined: Mon Feb 23, 2015 10:37 am

Re: Committing a change stalls out/ timeout of cmd.cgi

Post by agentguerry »

close.
kyang

Re: Committing a change stalls out/ timeout of cmd.cgi

Post by kyang »

Closing this topic.

If you have more questions, feel free to create another thread!

Thank you for using the Nagios Support Forum!
Locked