Page 1 of 1

resync all service check with system date/clock

Posted: Tue Dec 03, 2013 3:30 am
by zaji_nms
Dear Expert,

i have noticed that once i have reboot my XI server all check went unsync some of them matched with system time and some not...how do i resync all service / host check with latest system clock time ???

due to which i got bulf following messages
"rrdcached[1798]: queue_thread_main: rrd_update_r (/usr/local/nagios/share/perfdata/xx.rrd) failed with status -1. (/usr/local/nagios/share/perfdata/xx.rrd: illegal attempt to update using time 1386052411 when last update time is 1386055426 (minimum one second step))"

my system time was 10:57 am and nagios showing last check time 11:29 how and why ?? how do i avoid such kind of an error in future ...it is leading impact on all my performance graphs data..

Re: resync all service check with system date/clock

Posted: Tue Dec 03, 2013 10:59 am
by slansing
Your php time is likely off.. run the following and show the output here:

Code: Select all

cat /etc/php.ini | grep timezone
What timezone are you in?

Re: resync all service check with system date/clock

Posted: Wed Dec 04, 2013 12:34 am
by zaji_nms
cat /etc/php.ini
date.timezone = Asia/Kuwait

[root@masterxi1 ~]# date
Wed Dec 4 08:32:13 AST 2013
[root@masterxi1 ~]# clock
Wed 04 Dec 2013 08:32:15 AM AST -0.187803 seconds
------------------------------------------------------------------
but after reboot date become 1 hr back why ?? my question is how do i re sync all the host/service check is there anyway ?

Re: resync all service check with system date/clock

Posted: Wed Dec 04, 2013 10:44 am
by sreinhardt
Are you using ntp or any other service to sync the clocks on your systems?