Nagios NA wrong time ?
Nagios NA wrong time ?
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 ?
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Nagios NA wrong time ?
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.
Code: Select all
date.timezone = US/Central
; http://www.php.net/manual/en/datetime.c ... e.timezone
Just to be extra sure, what is the output of:
Code: Select all
date
hwclockRe: Nagios NA wrong time ?
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 ~]#
You do not have the required permissions to view the files attached to this post.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Nagios NA wrong time ?
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/
https://chrisjean.com/2009/03/03/change ... in-centos/
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.