Page 1 of 1
Nagios NA wrong time ?
Posted: Tue Nov 04, 2014 4:24 am
by zeenmc
Hi, again, simple question, I installed clean Nagios NA, but in system I have wrong configuration of Nagios time (system time i ok), How can I find and fix the problem ?
Re: Nagios NA wrong time ?
Posted: Tue Nov 04, 2014 10:37 am
by slansing
So it sounds like your php time may be off, you can change your date.timezone settings with the following line in /etc/php.ini:
You can find the proper timezone sets here:
;
http://www.php.net/manual/en/datetime.c ... e.timezone
Just to be extra sure, what is the output of:
You workstation's time settings can also effect some browser display elements.
Re: Nagios NA wrong time ?
Posted: Wed Nov 05, 2014 4:25 am
by zeenmc
Im form Belgrade, Serbia, time in Serbia is +1, now 10:17, I will know change a clock 1 hour forward

...
[root@veselin-t500 ~]# clock
Wed 05 Nov 2014 09:04:24 AM EST -0.648142 seconds
[root@veselin-t500 ~]# date
Wed Nov 5 09:16:29 EST 2014
[root@veselin-t500 ~]# hwclock
Wed 05 Nov 2014 09:16:38 AM EST -0.490507 seconds
[root@veselin-t500 ~]#
Re: Nagios NA wrong time ?
Posted: Wed Nov 05, 2014 4:16 pm
by sreinhardt
You need to correct the local systems timezone from the looks of those commands. It currently has you in EST which certainly doesn't seem correct. The link below should cover resetting your timezone, you will want to do a system restart or restart daemons after that to be sure they pick up the change.
https://chrisjean.com/2009/03/03/change ... in-centos/