Page 1 of 1

Committing a change stalls out/ timeout of cmd.cgi

Posted: Sat Nov 04, 2017 11:02 pm
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.

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

Posted: Mon Nov 06, 2017 3:39 pm
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?

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

Posted: Tue Nov 07, 2017 8:15 am
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.

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

Posted: Tue Nov 07, 2017 10:11 am
by kyang
Sounds good! Glad you figured it out.

Are we okay to close this thread? Or did you have more questions?

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

Posted: Tue Nov 07, 2017 10:17 am
by agentguerry
close.

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

Posted: Tue Nov 07, 2017 10:18 am
by kyang
Closing this topic.

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

Thank you for using the Nagios Support Forum!