Nagios Monitoring Engine

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nagiostool
Posts: 72
Joined: Wed Jul 20, 2011 2:17 am

Nagios Monitoring Engine

Post by nagiostool »

Hi,
Sometimes whem i'm configuring new hosts i get an error stating "Monitoring Engine Stopped".

How can i check the log files related to nagios XI services, whats the location they are stored ?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios Monitoring Engine

Post by lmiltchev »

What is the version of Nagios XI that you are running and what is the distro, that Nagios is installed on?
Can you elaborate a little bit more on "sometimes when I'm configuring new hosts..."? Are you running a new Monitoring Wizard, or you are modifying existing hosts/services through the Core Config Manager, etc.?
Do you get any error when you try to apply the configuration?
Run the following two commands and post the output:

Code: Select all

# tail /usr/local/nagios/var/nagios.log
# tail /var/log/messages
Be sure to check out our Knowledgebase for helpful articles and solutions!
nagiostool
Posts: 72
Joined: Wed Jul 20, 2011 2:17 am

Re: Nagios Monitoring Engine

Post by nagiostool »

lmiltchev wrote:What is the version of Nagios XI that you are running and what is the distro, that Nagios is installed on?
Can you elaborate a little bit more on "sometimes when I'm configuring new hosts..."? Are you running a new Monitoring Wizard, or you are modifying existing hosts/services through the Core Config Manager, etc.?
Do you get any error when you try to apply the configuration?
Run the following two commands and post the output:

Code: Select all

# tail /usr/local/nagios/var/nagios.log
# tail /var/log/messages
I'm running xi-2011r1.8.tar.gz and its being run on Centos 5.0

the below are the required log messages for

tail /usr/local/nagios/var/nagios.log
[1323665637] Warning: Host 'ESD-CORE-Servers' has no default contacts or contactgroups defined!
[1323665637] Warning: Host 'Hitech-Servers' has no default contacts or contactgroups defined!
[1323665637] Warning: Host 'Orbita-Servers' has no default contacts or contactgroups defined!
[1323665637] Lockfile '/usr/local/nagios/var/nagios.lock' looks like its already held by another instance of Nagios (PID 4770). Bailing out...
[1323665637] livestatus: deinitializing
[1323665637] Event broker module '/usr/lib/check_mk/livestatus.o' deinitialized successfully.
[1323665637] ndomod: Shutdown complete.
[1323665637] Event broker module '/usr/local/nagios/bin/ndomod.o' deinitialized successfully.
[1323665647] SERVICE ALERT: BBD10DBS13;CPU Usage;WARNING;SOFT;6;CPU Load 88% (5 min average)
[1323665707] SERVICE ALERT: BBD10DBS13;CPU Usage;WARNING;SOFT;7;CPU Load 88% (5 min average)

tail /var/log/messages
Dec 12 10:23:57 station nagios: Warning: Host 'Hitech-Servers' has no default contacts or contactgroups defined!
Dec 12 10:23:57 station nagios: Warning: Host 'Orbita-Servers' has no default contacts or contactgroups defined!
Dec 12 10:23:57 station nagios: Lockfile '/usr/local/nagios/var/nagios.lock' looks like its already held by another instance of Nagios (PID 4770). Bailing out...
Dec 12 10:23:57 station nagios: livestatus: deinitializing
Dec 12 10:23:57 station nagios: Event broker module '/usr/lib/check_mk/livestatus.o' deinitialized successfully.
Dec 12 10:23:57 station nagios: ndomod: Shutdown complete.
Dec 12 10:23:57 station nagios: Event broker module '/usr/local/nagios/bin/ndomod.o' deinitialized successfully.
Dec 12 10:24:07 station nagios: SERVICE ALERT: BBD10DBS13;CPU Usage;WARNING;SOFT;6;CPU Load 88% (5 min average)
Dec 12 10:25:07 station nagios: SERVICE ALERT: BBD10DBS13;CPU Usage;WARNING;SOFT;7;CPU Load 88% (5 min average)
Dec 12 10:26:07 station nagios: SERVICE ALERT: BBD10DBS13;CPU Usage;WARNING;SOFT;8;CPU Load 87% (5 min average)
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Nagios Monitoring Engine

Post by mguthrie »

M guess is that you have multiple instances of Nagios running, and that's causing issues with the restart. We haven't documented integration with mklivestatus either, so I'm not sure if that's causing an issue with the Nagios init script. I'd try running:

Code: Select all

service nagios restart
and have a running tail on the nagios.log to see what happens.
Locked