Page 1 of 1

incorrect Duration time displayed on hosts/services

Posted: Mon Dec 10, 2012 2:20 pm
by pteegarden
I downloaded and installed the vSphere OVF Template (A 32-bit OVF template running CentOS 6.x with Nagios XI 2012 installed; Version; 2012R1.2 Nov 8, 2012; 729 MB). It ran, but had a timezone of UTC. So I adjusted the times for PHP and the system by modifying /etc/php.ini, /etc/sysconfig/clock and /etc/timezone, started NTPd and rebooted. Now, while the duration(s) displayed for host and service status for newly added hosts/services are fine, the preinstalled "localhost" entries are displaying times like "465d 15h 40m 40s". Clearly, something is confused. What must I do to correct the "Duration" time for localhost so that it diaplays something more belivable?

Re: incorrect Duration time displayed on hosts/services

Posted: Mon Dec 10, 2012 2:25 pm
by scottwilkerson
you can reset them all by doing the following

from the command line

Code: Select all

service nagios stop
rm -rf /usr/local/nagios/var/retention.dat
service nagios start
This will reset all of the status data and the checks should all populate after each item has been checked 1 time.

Re: incorrect Duration time displayed on hosts/services

Posted: Mon Dec 10, 2012 2:41 pm
by pteegarden
This has worked. Duration Times are now believable.
Thank you for the quick response.