Nagios hangs on startup

Jim Avery jim at jimavery.me.uk
Thu Jul 1 15:05:43 CEST 2010


On 1 July 2010 01:18, Eric Cables <ecables at gmail.com> wrote:
> Sorry to bug the list, but my 3.2.1 installation of Nagios has all of a
> sudden stopped starting.  I noticed a lack of alerts over the last day, and
> when I checked the GUI it indicated that the "next" scheduled check for a
> service was in the past.  I proceeded to stop/start Nagios, but both have
> failed.
>
> Currently when I try to start Nagios using the init script it just hangs:
> [nagios at psdbsd01 (~/etc)]$ /usr/local/etc/rc.d/nagios.sh start
> Starting nagios:
>
> I've enabled debug logging (-1 level, 2 verbosity), but this is all that
> shows up in nagios.debug when I issue the above start request (uid 1003 =
> nagios):
> [1277942532.270096] [001.0] [pid=46503] drop_privileges() start
> [1277942532.270194] [004.0] [pid=46503] Original UID/GID: 1003/1003
>
> I can run nagios -v nagios.cfg, and it reports no errors.
>
> Here's the output if I run nagios nagios.cfg manually, without invoking
> daemon mode:
> [nagios at psdbsd01 (~/etc)]$ ../bin/nagios ./nagios.cfg
>
> Nagios Core 3.2.1
> Copyright (c) 2009-2010 Nagios Core Development Team and Community
> Contributors
> Copyright (c) 1999-2009 Ethan Galstad
> Last Modified: 03-09-2010
> License: GPL
>
> Website: http://www.nagios.org
>
> Any tips?  I am not sure what the next steps are since both logging and
> debugging aren't producing output, and Nagios has never taken more than a
> few seconds to start in the past.

What, if anything, shows up in your nagios.log file?

Check you don't already have a nagios daemon running (ps -ef | grep
nagios) before you start it again.

Check that the lock file isn't there from the previous invocation (if
you did a standard install from source tarballs the file is
/var/lock/subsys/nagios).

Check that the Nagios command file /usr/local/nagios/var/rw/nagios.cmd
doesn't exist before you start nagios.

Use full pathnames when attempting to verify your config, for example:

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
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