Host Status not Updating
Host Status not Updating
Hi Support,
I have the following problem; none of the host checks are updating and are stuck on the 1 May. There are no active checks in the queue or in the I am receiving alerts via email and can see the checks in /var/log/messages, but not in the event log. Thank you!
I have the following problem; none of the host checks are updating and are stuck on the 1 May. There are no active checks in the queue or in the I am receiving alerts via email and can see the checks in /var/log/messages, but not in the event log. Thank you!
You do not have the required permissions to view the files attached to this post.
Re: Host Status not Updating
Can you Click Admin > Monitoring Engine Status and make sure Active Checks are enabled?
Can you provide a screen shot that too?
Can you provide a screen shot that too?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Host Status not Updating
Hi,
As requested here is the screen shot, everything is running as well as the all the components
As requested here is the screen shot, everything is running as well as the all the components
You do not have the required permissions to view the files attached to this post.
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Host Status not Updating
Can you tail the last 40 or so lines of /usr/local/nagios/var/nagios.log and show us that?
Re: Host Status not Updating
Here is the last 40 lines
You do not have the required permissions to view the files attached to this post.
Re: Host Status not Updating
It looks like your ndomod connection may be broken - it's possible that your nagios user expired. Please check the age of the 'nagios' user to ensure that's not the case:
Otherwise, we'll want to turn on ndo2db debugging and restart ndo2db:
Check on the logs we've enabled:
Code: Select all
chage -l nagiosCode: Select all
sed -i 's/debug_level=0/debug_level=-1/g' /usr/local/nagios/etc/ndo2db.cfgCode: Select all
service ndo2db restartCode: Select all
tail -n50 /usr/local/nagios/var/ndo2db.debugCode: Select all
head /usr/local/nagios/var/ndo2db.debugRe: Host Status not Updating
Here is the output;
password seems fine but,
ndo2db seems a bit broken
here is the output for the logs
password seems fine but,
Code: Select all
[root@tsamarnagios ~]# chage -l nagios
Last password change : May 12, 2014
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7
Code: Select all
[root@tsamarnagios ~]# service ndo2db restart
ndo2db was not running... could not stop
Starting ndo2db:Could not bind socket: Address already in use
done.
[root@tsamarnagios ~]# service ndo2db status
ndo2db is not running but subsystem locked
You do not have the required permissions to view the files attached to this post.
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Host Status not Updating
Code: Select all
[jdalrymple@localhost nagiosxi]$ sudo pkill -9 ndo2db
[jdalrymple@localhost nagiosxi]$ sudo rm /usr/local/nagios/var/ndo2db.lock
[jdalrymple@localhost nagiosxi]$ sudo /etc/init.d/ndo2db start
Starting ndo2db: done.
[jdalrymple@localhost nagiosxi]$ sudo /etc/init.d/nagios restart
Running configuration check...
Stopping nagios:. done.
Starting nagios: done.Re: Host Status not Updating
Code: Select all
[root@tsamarnagios ~]# sudo pkill -9 ndo2db
[root@tsamarnagios ~]# sudo rm /usr/local/nagios/var/ndo2db.lock
You have new mail in /var/spool/mail/root
[root@tsamarnagios ~]# sudo /etc/init.d/ndo2db start
Starting ndo2db:Could not bind socket: Address already in use
done.
[root@tsamarnagios ~]# sudo /etc/init.d/nagios restart
Running configuration check...done.
Stopping nagios: .done.
Starting nagios: done.
[root@tsamarnagios ~]#
Code: Select all
[root@tsamarnagios var]# rm ndo2db.lock
rm: remove regular empty file `ndo2db.lock'? y
[root@tsamarnagios var]# rm ndo.sock
rm: remove socket `ndo.sock'? y
You have mail in /var/spool/mail/root
[root@tsamarnagios var]# /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
[root@tsamarnagios var]# sudo /etc/init.d/ndo2db stop
Stopping ndo2db: done.
[root@tsamarnagios var]# sudo /etc/init.d/ndo2db start
Starting ndo2db: done.
Re: Host Status not Updating
I am glad your issue has been resolved! Do you want us to keep the topic open for a while in case the issue resurfaces?
Be sure to check out our Knowledgebase for helpful articles and solutions!