Nagios don't start


#1

Hello

I installed Nagios while completely following official documentation on the official site of Nagios. I started again httpd, it does not have no problem there. I checked the configuration of Nagios (/usr/local/nagios/bin/nagios - v /usr/local/nagios/etc/nagios.cfg), it does not have no problem there.

But, I want to restart Nagios but Nagios don’t start (ps -ef | grep nagios).

If I do /etc/init.d/nagios status :

ERROR : list of process IDs must follow –p

If I go on the web interface, I connect me with my login and my password but if I want to consult the menus, a message appears :

NOT FOUND: The requested URL /usr/local/nagios/sbin/tac.cgi status.cgi … was not found on this server.

All my CGI are in /usr/local/nagios/sbin.

Can you help me please ?


#2

nagios.sourceforge.net/docs/2_0/installweb.html

Contents of /etc/httpd/conf.d/nagios.conf

ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/
<Directory “/usr/local/nagios/sbin/”>
AllowOverride AuthConfig
Options ExecCGI
Order allow,deny
Allow from all

Alias /nagios/ /usr/local/nagios/share/
<Directory “/usr/local/nagios/share”>
Options None
AllowOverride AuthConfig
Order allow,deny
Allow from all


#3

If I do /etc/init.d/nagios status :

ERROR : list of process IDs must follow –p

Looks like nagios didn’t compile correctly for your system. Try again, and pay attention to the output of ./configure and make.


#4

OK I try to compile Nagios and to verify the errors.

In my nagios.cfg file, I have the same things than the official documentation of Nagios.