Page 1 of 1

nagios core running; nagiosXI not

Posted: Tue Dec 10, 2013 6:31 pm
by lanlnagiosadmin
Before Thanksgiving I was testing a new install of NagiosXI 2012R2.4. I didn't use any of the wizards to create tests. I successfully imported the cfg files we use on a Nagios v2.12 application. It was so successful that it started alarming. The new installation's IP was not allowed by the firewall and email was being sent. On command line I "service nagios stop". After that I read where I could set enable_notifications=0 and retain_state_information=0 in the nagios.cfg file. On command line again "service nagios start". The service is running because I can see successful pings and as it should be, other tests are failing due to the firewall. I want to create new tests and accounts with the Nagios XI wizards, but in System Status the Monitoring Engine is not running. Hovering over the red circle, it says "no lock file found in /usr/local/nagios/var/nagios.lock." But it is there and it is owned by nagios. When I use the Action gear to start the service, it says that "Your request was not processed in a timely manner. It may still execute, as the server may be temporarily busy." The server is definitely not busy. I found a thread in the forum for "Monitor engine won't start". Sounded like my problem so I tried his fix. Went to the CCM and applied the configuration. He says this restarted the monitoring engine. Didn't work for me. I clicked on Apply Configuration and the "Waiting for configuration verification" spins until my session times out. I ran the command nagios -v nagios.cfg (no paths included) and received Total Warnings and Errors as 0s.

This feels like I can use either NagiosXI or Nagios Core but not both.

Any suggestions?
Thanks, lanlnagiosadmin

Re: nagios core running; nagiosXI not

Posted: Wed Dec 11, 2013 10:15 am
by slansing
Just a heads up you can change nagios system settings "nagios.cfg primarily" through the web interface. Lets start by doing the following:

Code: Select all

service nagios stop

killall -9 nagios

rm -rf /usr/local/nagios/var/nagios.lock

service nagios start
Does this resolve the issue?

Re: nagios core running; nagiosXI not

Posted: Wed Dec 11, 2013 4:22 pm
by lanlnagiosadmin
I ran the commands. Here is the lock file
-rw-r--r-- 1 nagios nagios 6 Dec 11 14:15 nagios.lock

The System Status still shows Monitoring Engine as not running. The hovering over the red circle still shows no lock file found.

??

Re: nagios core running; nagiosXI not

Posted: Wed Dec 11, 2013 5:17 pm
by lmiltchev
Run the following commands, and show the output:

Code: Select all

/usr/local/nagios/bin/nagios -v
service nagios status
service ndo2db status

Re: nagios core running; nagiosXI not

Posted: Thu Dec 12, 2013 4:11 pm
by lanlnagiosadmin
# service nagios status
nagios (pid 22699) is running...
# service ndo2db status
ndo2db (pid 1135) is running...

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Nagios Core 3.5.0
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 03-15-2013
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Warning: Could not get passwd entry for 'nagios'
Processing object config directory '/usr/local/nagios/etc/static'...
Processing object config file '/usr/local/nagios/etc/static/xitemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitest.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xiobjects.cfg'...
Processing object config file '/usr/local/nagios/etc/contacttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/contactgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/timeperiods.cfg'...
Processing object config file '/usr/local/nagios/etc/commands.cfg'...
Processing object config file '/usr/local/nagios/etc/hostgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/servicegroups.cfg'...
Processing object config file '/usr/local/nagios/etc/hosttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/servicetemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/servicedependencies.cfg'...
Processing object config file '/usr/local/nagios/etc/serviceescalations.cfg'...
Processing object config file '/usr/local/nagios/etc/hostdependencies.cfg'...
Processing object config file '/usr/local/nagios/etc/hostescalations.cfg'...
Processing object config file '/usr/local/nagios/etc/hostextinfo.cfg'...
Processing object config file '/usr/local/nagios/etc/serviceextinfo.cfg'...
Processing object config directory '/usr/local/nagios/etc/hosts'...
.. many more Processing lines. Removed; host name included.
.
Warning: Duplicate definition found for service ...
.
. several duplicate warnings. Removed; host name included.
.
Read object config files okay...

Running pre-flight check on configuration data...
Warning: Duplicate definition found for service ...

Checking services...
Checked 308 services.
Checking hosts...
Checked 178 hosts.
Checking host groups...
Checked 65 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 30 contacts.
Checking contact groups...
Checked 11 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 161 commands.
Checking time periods...
Checked 12 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0

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

Re: nagios core running; nagiosXI not

Posted: Thu Dec 12, 2013 4:53 pm
by lmiltchev
Is upgrading to the latest version of Nagios XI (2012R2.7) an option for you?

Re: nagios core running; nagiosXI not

Posted: Fri Dec 13, 2013 7:07 pm
by lanlnagiosadmin
Yes, I will do a fresh install using the latest version.

Thanks, lanlnagiosadmin

Re: nagios core running; nagiosXI not

Posted: Mon Dec 16, 2013 9:43 am
by tmcdonald
Come back and let us know if this works for you. Til then please don't reply unless you have a question, so we can keep this thread off our radar until it becomes relevant again.