LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Nagios start problem. (https://www.linuxquestions.org/questions/linux-general-1/nagios-start-problem-815688/)

aalvarez 06-22-2010 10:35 AM

Nagios start problem.
 
Hello,
I have a problem when I try to service nagios start, error is the following;

No lock file found in /var/run/nagios.pid

So when I verified the sample Nagios configuration files whit /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg, get:

-bash: /usr/local/nagios/bin/nagios: No such file or directory

can some one help me?

centosboy 06-22-2010 10:56 AM

Quote:

Originally Posted by aalvarez (Post 4011515)
Hello,
I have a problem when I try to service nagios start, error is the following;

No lock file found in /var/run/nagios.pid

So when I verified the sample Nagios configuration files whit /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg, get:

-bash: /usr/local/nagios/bin/nagios: No such file or directory

can some one help me?


did you add these steps when installing>?

Code:

chkconfig --add nagios

chkconfig nagios on

make install-init


marozsas 06-22-2010 03:40 PM

Quote:

Originally Posted by aalvarez (Post 4011515)
-bash: /usr/local/nagios/bin/nagios: No such file or directory

Also, what is the output of command:
Code:

which nagios
try to use it instead /usr/local/nagios/bin/nagios in original command.

aalvarez 06-24-2010 11:41 AM

Hello,
My problem was resulted, I had a error in the configuration file object.

Tankyou Very much


All times are GMT -5. The time now is 04:36 PM.