I ran #system-config-securitylevel - The firewall setting is disabled.
At the moment the main difficulty i am facing is simply reading the cgi files....lets just forget about any monitoring for a sec and try to view cgi pages. Here's a new error message im gettin:
Whoops!
Error: Could not open CGI config file '/usr/local/nagios/etc/cgi.cfg' for reading!
Here are some things you should check in order to resolve this error:
Make sure you've installed a CGI config file in its proper location. See the error message about for details on where the CGI is expecting to find the configuration file. A sample CGI configuration file (named cgi.cfg) can be found in the sample-config/ subdirectory of the Nagios source code distribution.
Make sure the user your web server is running as has permission to read the CGI config file.
Make sure you read the documentation on installing and configuring Nagios thoroughly before continuing. If all else fails, try sending a message to one of the mailing lists. More information can be found at
http://www.nagios.org.
My webserver is running as apache which is part of the nagcmd group. Cgi files are in sbin
After doing: #ls -l /usr/local/nagios
i get:
drwxrwxr-x 2 nagios nagcmd 4096 Apr 25 14:57 bin
drwxr-xr-x 4 nagios nagcmd 4096 Apr 27 16:27 etc
drwxr-xr-x 2 nagios nagcmd 4096 Apr 26 16:35 libexec
drwxrwxr-x 2 nagios nagcmd 4096 Apr 27 13:33 sbin
drwxrwxr-x 9 nagios nagcmd 4096 Apr 27 12:35 share
drwxrwxr-x 3 nagios nagcmd 4096 Apr 27 16:50 var
Any ideas??? - SORRY FOR THE HASSLE!!!
P.S
When i do: #su - apache /usr/local/nagios/sbin/status.cgi :- i get a message saying "This account is currently not available"
and when i look in /etc/passwd i see: apache:x:48:48:Apache:/var/www:/sbin/nologin
Could this be the reason for the account not being available and also the nagios cgi files not being read?