Page 1 of 1

nagios timestamp is not right in /var/log/messages

PostPosted: Tue May 15, 2018 3:05 pm
by vvz
Hi!
My system time is updated and OK
/etc/localtime -> /usr/share/zoneinfo/America/Santiago

#date output
Tue May 15 16:02:53 -04 2018

while in /var/log/messages
May 15 17:03:09 callme-crt-archive1 nagios: PASSIVE SERVICE CHECK: vnode2-concert-site;SMG1-TimingLogger;0;OK. SMG1 <--> 52254 TimingLogger messages at 16:02

As you can see 1 hour difference between date output and Nagios lines in system log

How can I fix it?

Sorry, forgot to mention - Nagios Core 3.5.1

thank you,

Vassiliy

Re: nagios timestamp is not right in /var/log/messages

PostPosted: Tue May 15, 2018 4:21 pm
by npolovenko
Hello, @vvz. What's the timezone in your php.ini file?
Code: Select all
cat /etc/php.ini |grep date.timezone

Have you considered installing the NTP on your server?

Re: nagios timestamp is not right in /var/log/messages

PostPosted: Tue May 15, 2018 4:28 pm
by vvz
ntpd is running

looks like php.ini is problem date.timezone = empty

Thank you for your help

we can close the thread

Re: nagios timestamp is not right in /var/log/messages

PostPosted: Tue May 15, 2018 4:38 pm
by npolovenko
[use]vvz[/user], Sounds good. Closing the thread.