Nagios stopped working : process running, no errors, but nothing in the web server

Jim Avery jim at jimavery.me.uk
Tue Mar 17 13:51:39 CET 2009


2009/3/17 Toussaint OTTAVI <t.ottavi at medi.fr>:
> Hi,
>
> I've been running Nagios for months, without any problem. Today, I tried to
> restart it, as I do each time I do a change in the config files. But it does
> not want to work anymore !
>
> - Web server always displays "Error: Could not read host and service status
> information", the same as when Nagios process is not running
> - The Nagios process is running, "ps -A | grep nagios" shows a process (and
> only one)
> - It answers correctly to start and stop commands (/etc/rc.d/nagios
> start|stop|status|restart on OpenSuse)
> - Restarting the server did not change anything
> - Of course, there are no errors in my config. Checking config is
> successful, there's nothing special in /var/log/nagios/config.err
>
> Moreover, nagios.log does not display any error. Here's what the latest
> entries look like :
>
>     Informational Message[03-17-2009 12:05:30] Finished daemonizing... (New
> PID=2874)
>     Informational Message[03-17-2009 12:05:29] Event broker module
> '/usr/lib/nagios/brokers/ndomod.o' initialized successfully.
>     Informational Message[03-17-2009 12:05:29] ndomod: Successfully
> connected to data sink. 0 queued items to flush.
>     Informational Message[03-17-2009 12:05:29] ndomod: NDOMOD 1.4b7
> (10-31-2007) Copyright (c) 2005-2007 Ethan Galstad (nagios at nagios.org)
>     Informational Message[03-17-2009 12:05:29] LOG VERSION: 2.0
>     Informational Message[03-17-2009 12:05:29] Local time is Tue Mar 17
> 12:05:29 CET 2009
>     Program Start[03-17-2009 12:05:29] Nagios 3.0.1 starting... (PID=2815)
>
> I tried some google search and lisr archive browsing, but most of these
> errors are caused by Nagios process not starting due to a configuration
> mistake. That 's not the case for me, because the process starts, and it
> does not complain about configuration errors...
>
> Any idea ? Are there any other log or debug files where I could have a look
> to see what's going wrong ?

I guess it could be there's a problem with your MySQL database.  I'd
check the MySQL logs and maybe try disabling the event broker
temporarily (event_broker_options and broker_module directives in your
nagios.cfg) to make sure Nagios will work okay without ndomod - if it
does then your problem lies somewhere in the ndomod config or MySQL
database.

hth,

Jim

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-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