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

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
vvz
Posts: 187
Joined: Wed Oct 30, 2013 5:15 pm

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

Post 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
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

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

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
vvz
Posts: 187
Joined: Wed Oct 30, 2013 5:15 pm

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

Post by vvz »

ntpd is running

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

Thank you for your help

we can close the thread
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

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

Post by npolovenko »

[use]vvz[/user], Sounds good. Closing the thread.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked