I am having the problem of the CGI of nagios hanging when trying to do anything that needs to write to the nagios.cmd file.
I am basically setup doing the following:
Web front end is on a different server which access the status files, configruation file, etc. via an NFS mount to my nfs server.
Nagios writes and reads everything to the NFS server as well. Everything else works great, no issues. The CGIs’ are able to read everything and output as expected. Just when trying to add any comments, reschedule checks, etc that the CGI hangs and then eventually I get a page cannot be displayed.
the nagios server process is running as ‘nagios’, and the apache process runs as ‘daemon’.
Here are the permissions set for the directories and files:
drwxr-xr-x 3 nagios nagios 512 Feb 4 14:37 var
drwxr-xr-x 2 nagios daemon 512 Feb 3 15:28 rw
prwxrwxr-x 1 nagios daemon 0 Feb 3 15:28 nagios.cmd
I’m sure it’s some simple mistake I am missing, but I have been banging my head over this one for awhile.
Any help or suggestions will be greatly appreciated!