incorrect Duration time displayed on hosts/services
-
pteegarden
- Posts: 27
- Joined: Thu Dec 06, 2012 6:13 pm
incorrect Duration time displayed on hosts/services
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?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: incorrect Duration time displayed on hosts/services
you can reset them all by doing the following
from the command line
This will reset all of the status data and the checks should all populate after each item has been checked 1 time.
from the command line
Code: Select all
service nagios stop
rm -rf /usr/local/nagios/var/retention.dat
service nagios start-
pteegarden
- Posts: 27
- Joined: Thu Dec 06, 2012 6:13 pm
Re: incorrect Duration time displayed on hosts/services
This has worked. Duration Times are now believable.
Thank you for the quick response.
Thank you for the quick response.