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

jeff vier boinger at tradingtechnologies.com
Thu Dec 16 20:08:38 CET 2004


On Thu, 2004-12-16 at 12:59 -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

what are the perms on /var/run?
Does the user your nagios daemon is running as have permission to write
there?
Is there an existing nagios.pid file in there? (if so, delete it)

> >>my current work around is that I am just running Nagios from
> >>command line: 
> >>Which is working fine... 

As the Nagios user?

> >>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.

Just making sure.  You never know.



-------------------------------------------------------
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