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.
Committing a change stalls out/ timeout of cmd.cgi
-
- Posts: 9
- Joined: Mon Feb 23, 2015 10:37 am
Re: Committing a change stalls out/ timeout of cmd.cgi
What version of Nagios do you have installed? Which OS?
Can you run this command and show us the output.
Does it happen anywhere else other than enabling notifications?
Can you run this command and show us the output.
Code: Select all
ls -l /usr/local/nagios/var/rw/nagios.cmd
-
- Posts: 9
- Joined: Mon Feb 23, 2015 10:37 am
Re: Committing a change stalls out/ timeout of cmd.cgi
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.
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
Sounds good! Glad you figured it out.
Are we okay to close this thread? Or did you have more questions?
Are we okay to close this thread? Or did you have more questions?
-
- Posts: 9
- Joined: Mon Feb 23, 2015 10:37 am
Re: Committing a change stalls out/ timeout of cmd.cgi
Closing this topic.
If you have more questions, feel free to create another thread!
Thank you for using the Nagios Support Forum!
If you have more questions, feel free to create another thread!
Thank you for using the Nagios Support Forum!