incorrect Duration time displayed on hosts/services

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
pteegarden
Posts: 27
Joined: Thu Dec 06, 2012 6:13 pm

incorrect Duration time displayed on hosts/services

Post 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?
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

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
pteegarden
Posts: 27
Joined: Thu Dec 06, 2012 6:13 pm

Re: incorrect Duration time displayed on hosts/services

Post by pteegarden »

This has worked. Duration Times are now believable.
Thank you for the quick response.
Locked