Last Check Time doesnt Change

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Last Check Time doesnt Change

Post by MSPk »

Hi,

We are using nagios XI version 2012R1.0 on RHEL. We have been facing an issue since this morning with the nagios montoring engine. The last check time on Hosts and services doesnt seem to be changing, though the the next change time changes periodically (every 5mins as set in check interval). This is leading us to a confusion on wheather a check has been made or not.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Last Check Time doesnt Change

Post by scottwilkerson »

This is odd behavior, can you go to Home -> Process Info and verify everything is green.

If that is the case, lets run the following from the console

Code: Select all

service nagios stop
killall -9 nagios
service nagios start
If the problem persists, please post you /usr/local/nagios/etc/nagios.cfg
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Re: Last Check Time doesnt Change

Post by MSPk »

I See this happen only witha particular host. This morning the server was restarted and all the services were showing as critical including ping but the host was UP. when i chked closly, all the services showed the correct last check time but when I click the host name and open the details page of the host, the last check time is more than a amonth old..!!! and the status is shown as OK. I have used the option 'ping the host' on that page and even that shows that all the packets were lost.

It Happens with about 4hosts in our system, last check time on the service look fine but not the host itself..!!
jwelch
Posts: 225
Joined: Wed Sep 05, 2012 12:49 pm

Re: Last Check Time doesnt Change

Post by jwelch »

How is the host confgured? Does it have a check command configured or is it inheriting a check from a template?
Also if it's using ping, I'd do a manual ping from the command line to verify that ping actually works for that host from the nagios system (assuming it's a local active check). Even if ping fails, I would expect the last check field to update when it runs.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Last Check Time doesnt Change

Post by scottwilkerson »

All of jwelch's questions are valid. I would also check that Active checks for this host haven't bee disabled from the host detail page -> Advanced tab
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Re: Last Check Time doesnt Change

Post by MSPk »

This server is configured using the windows host configuration wizard and it inherits "check_xi_host_ping"-check_icmp-command from the xiwizard_windowsserver_host template configured on this host.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Last Check Time doesnt Change

Post by scottwilkerson »

could you attach you /usr/local/nagios/etc/nagios.cfg

Thanks
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Re: Last Check Time doesnt Change

Post by MSPk »

nagios.cfg attached.
nagios.cfg.rtf
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Last Check Time doesnt Change

Post by scottwilkerson »

this all looks normal. Can you post the configuration for this host

Go to Configure -> CCM -> Hosts
click the disk icon for this host

If there is sensitive data, please feel free to obfuscate.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Re: Last Check Time doesnt Change

Post by MSPk »

Hi,

host config file attached.
host_config_file.doc
You do not have the required permissions to view the files attached to this post.
Locked