Possible Bug: Status Details

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Flava
Posts: 68
Joined: Wed Feb 01, 2012 10:06 am

Possible Bug: Status Details

Post by Flava »

Hi All,

Just noticed, when host changes states, i.e. rebooting a host, NagiosXI reports really odd duration time. NagiosXI reports host has been in the current state for hours when I know this is not the case.

Thanks
Thanks
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Possible Bug: Status Details

Post by scottwilkerson »

Can you go to Admin -> System Profile and post back here what is displayed in the "Date/Time" section
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Flava
Posts: 68
Joined: Wed Feb 01, 2012 10:06 am

Re: Possible Bug: Status Details

Post by Flava »

Date/Time
PHP Timezone: Europe/London
PHP Time: Fri, 04 May 2012 17:23:28 +0100
System Time: Fri, 04 May 2012 16:23:28 +0000
Thanks
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Possible Bug: Status Details

Post by mguthrie »

PHP Time: Fri, 04 May 2012 17:23:28 +0100
System Time: Fri, 04 May 2012 16:23:28 +0000
This may not be the only thing wrong, but it's probably a part of it. You typically want your php timezone to match the system timezone, or else you'll get some unpredictable results in some places.
Flava
Posts: 68
Joined: Wed Feb 01, 2012 10:06 am

Re: Possible Bug: Status Details

Post by Flava »

Thanks for update, I have fixed this problem, both php timezone and system timezone are in sync now. I have deployed the VM image for NagiosXI, the solution is simple:

check current timezone configuration, if it is incorrect remove it and link to the correct timezone.

Code: Select all

ls -ltr /etc/local*
-rw-r--r--. 1 root root 362 Nov 12  2010 /etc/locales.conf
lrwxrwxrwx  1 root root  23 Oct 31  2011 /etc/localtime -> /usr/share/zoneinfo/UTC
In my case I have to remove the link and create a new link to the correct timezone.

Code: Select all

rm  /etc/localtime
ln -s /usr/share/zoneinfo/Europe/London /etc/localtime
New settings:

Code: Select all

PHP Timezone: Europe/London
PHP Time: Tue, 08 May 2012 09:14:24 +0100
System Time: Tue, 08 May 2012 09:14:24 +0100
Thanks
Flava
Posts: 68
Joined: Wed Feb 01, 2012 10:06 am

Re: Possible Bug: Status Details

Post by Flava »

Also, all my stats are completely whack...I have to either figure out a way to flush the database and/or reset the nagios status logs because I am still getting weird duration stats in all the views. Can you help with this?
Thanks
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Possible Bug: Status Details

Post by scottwilkerson »

You can flush it by doing the following

Code: Select all

service nagios stop
rm -f /usr/local/nagios/var/retention.dat
service nagios start
This will flush the retention. All services will go to pending state until the next check
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked