Nagios NA wrong time ?

This support forum board is for support questions relating to Nagios Network Analyzer, our network traffic and bandwidth analysis solution.
Locked
zeenmc
Posts: 18
Joined: Wed Oct 15, 2014 8:52 am

Nagios NA wrong time ?

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

Re: Nagios NA wrong time ?

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

Code: Select all

date.timezone = US/Central
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:

Code: Select all

date

hwclock
You workstation's time settings can also effect some browser display elements.
zeenmc
Posts: 18
Joined: Wed Oct 15, 2014 8:52 am

Re: Nagios NA wrong time ?

Post 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 ~]#
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 ?

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