Linux Distribution and version?
CentOS release 6.9 (Final)
32 or 64bit?
64bit
VMware Image or Manual Install of XI?
Manual Install
So we recently did some OS patching. I've attached a list of those patches. After the patch, the VM was rebooted. Everything seemed fine till we discovered the next day that there was no activity in Nagios. The event log showed no activity after the reboot as well as the monitoring engine event queue. I could use a hand troubleshooting this. Thanks
No Activity in Monitoring Engine Event Queue After Reboot
No Activity in Monitoring Engine Event Queue After Reboot
You do not have the required permissions to view the files attached to this post.
- tacolover101
- Posts: 432
- Joined: Mon Apr 10, 2017 11:55 am
Re: No Activity in Monitoring Engine Event Queue After Reboo
what happens if you run service nagios start? any error returned?
Re: No Activity in Monitoring Engine Event Queue After Reboo
when I run service nagios start, I get the following
Running configuration check...
Nagios Core 3.5.1
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-30-2013
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Error in configuration file '/etc/nagios/nagios.cfg' - Line 309 (UNKNOWN VARIABLE)
Error processing main config file!
So I look to see what it's referencing on line 309 of /etc/nagios/nagios.cfg which is this
log_current_states=1
If I comment that out and try service nagios start it seems to work.
sudo service nagios restart
Running configuration check...
Stopping nagios: done.
Starting nagios: done.
Running configuration check...
Nagios Core 3.5.1
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-30-2013
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Error in configuration file '/etc/nagios/nagios.cfg' - Line 309 (UNKNOWN VARIABLE)
Error processing main config file!
So I look to see what it's referencing on line 309 of /etc/nagios/nagios.cfg which is this
log_current_states=1
If I comment that out and try service nagios start it seems to work.
sudo service nagios restart
Running configuration check...
Stopping nagios: done.
Starting nagios: done.
Re: No Activity in Monitoring Engine Event Queue After Reboo
I forgot to mention that the problem with the monitoring engine still persists.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: No Activity in Monitoring Engine Event Queue After Reboo
This is not the correct version of nagios for a 5.4.10 nagios XI installation, my guess is you install nagios core from RPM, run this to checkmcwhorts wrote:Running configuration check...
Nagios Core 3.5.1
Code: Select all
rpm -q nagios
Code: Select all
yum remove nagios
Code: Select all
cd /tmp
rm -rf nagiosxi xi* /etc/init.d/nagios
wget https://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
tar xzf xi*.tar.gz
cd /tmp/nagiosxi/subcomponents/nagioscore/
./install
Code: Select all
service nagios start
Re: No Activity in Monitoring Engine Event Queue After Reboo
Installing the correct version of nagios core fixed the problem. Thanks for your help.
Re: No Activity in Monitoring Engine Event Queue After Reboo
Glad that you got this resolved with installing the new version of Nagios Core!
Is it ok to close to thread?
Is it ok to close to thread?