resync all service check with system date/clock

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

resync all service check with system date/clock

Post 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..
Zajil NMS
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: resync all service check with system date/clock

Post 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?
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

Re: resync all service check with system date/clock

Post 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 ?
Zajil NMS
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: resync all service check with system date/clock

Post by sreinhardt »

Are you using ntp or any other service to sync the clocks on your systems?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked