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
Possible Bug: Status Details
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Possible Bug: Status Details
Can you go to Admin -> System Profile and post back here what is displayed in the "Date/Time" section
Re: Possible Bug: Status Details
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
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
Re: Possible Bug: Status Details
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.PHP Time: Fri, 04 May 2012 17:23:28 +0100
System Time: Fri, 04 May 2012 16:23:28 +0000
Re: Possible Bug: Status Details
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.
In my case I have to remove the link and create a new link to the correct timezone.
New settings:
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
Code: Select all
rm /etc/localtime
ln -s /usr/share/zoneinfo/Europe/London /etc/localtime
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
Re: Possible Bug: Status Details
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
You can flush it by doing the following
This will flush the retention. All services will go to pending state until the next check
Code: Select all
service nagios stop
rm -f /usr/local/nagios/var/retention.dat
service nagios start