Host Status not Updating

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jwessels
Posts: 16
Joined: Mon May 12, 2014 5:57 am

Host Status not Updating

Post by jwessels »

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
nagiosatt2.png
I am receiving alerts via email and can see the checks in /var/log/messages, but not in the event log.
nagiosatt1.png
Thank you!
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Host Status not Updating

Post by tgriep »

Can you Click Admin > Monitoring Engine Status and make sure Active Checks are enabled?
Can you provide a screen shot that too?
Be sure to check out our Knowledgebase for helpful articles and solutions!
jwessels
Posts: 16
Joined: Mon May 12, 2014 5:57 am

Re: Host Status not Updating

Post by jwessels »

Hi,

As requested here is the screen shot, everything is running
nagiosactivechecks.png
as well as the all the components
nagioscomp.png
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

Post by jdalrymple »

Can you tail the last 40 or so lines of /usr/local/nagios/var/nagios.log and show us that?
jwessels
Posts: 16
Joined: Mon May 12, 2014 5:57 am

Re: Host Status not Updating

Post by jwessels »

Here is the last 40 lines
40lines.png
You do not have the required permissions to view the files attached to this post.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Host Status not Updating

Post by jolson »

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:

Code: Select all

chage -l nagios
Otherwise, we'll want to turn on ndo2db debugging and restart ndo2db:

Code: Select all

sed -i 's/debug_level=0/debug_level=-1/g' /usr/local/nagios/etc/ndo2db.cfg

Code: Select all

service ndo2db restart
Check on the logs we've enabled:

Code: Select all

tail -n50 /usr/local/nagios/var/ndo2db.debug

Code: Select all

head /usr/local/nagios/var/ndo2db.debug
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
jwessels
Posts: 16
Joined: Mon May 12, 2014 5:57 am

Re: Host Status not Updating

Post by jwessels »

Here is the output;
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
ndo2db seems a bit broken

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
here is the output for the logs
ndolog.txt
headndo.txt
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

Post by jdalrymple »

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.
jwessels
Posts: 16
Joined: Mon May 12, 2014 5:57 am

Re: Host Status not Updating

Post by jwessels »

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 ~]#
I did the following:

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.
rebooted server & Nagios is running again
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Host Status not Updating

Post by lmiltchev »

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!
Locked