Nagios 2.0 init.d/nagios and daemonizing...

Chris Stankaitis chris.stankaitis at datawire.net
Thu Dec 16 19:59:17 CET 2004


jeff vier wrote:
> On Thu, 2004-12-16 at 11:49 -0600, Chris Stankaitis wrote:
> 
>>I can't seem to get Nagios 2.0 to daemonize.
>>
>>I try it both with the init.d script and from command line, and
>>neither  
>>seem to work.
>>
>>/usr/bin/nagios -d /etc/nagios/nagios.cfg
>>
>>just returns, nothing logged to /var/log/messages, nothing in the  
>>process list.
>>
>>using the Init.d Script it complains that nagios can't write it's
>>lock  
>>(PID) to /var/run/nagios.pid, then says it starts, but again no
>>process  
>>will appear, and from the web interface it is calling the CGI's
>>
>>my current work around is that I am just running Nagios from command
>>line:
>>
>>/usr/bin/nagios /etc/nagios/nagios.cfg
>>
>>Which is working fine...
>>
>>
>>Anyone else seen this? and is there a work around?
> 
> 
> what does '/usr/bin/nagios -v /etc/nagios/nagios.cfg' say?

Things look okay - No serious problems were detected during the 
pre-flight check

It's not a config issue.. if it was running Nagios from Command Line 
without the -d options wouldn't work.

--Chris



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list