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

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

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

Postby vvz » Tue May 15, 2018 3:05 pm

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
vvz
 
Posts: 183
Joined: Wed Oct 30, 2013 5:15 pm

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

Postby npolovenko » Tue May 15, 2018 4:21 pm

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.
User avatar
npolovenko
Support Tech
 
Posts: 2084
Joined: Mon May 15, 2017 5:00 pm

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

Postby vvz » Tue May 15, 2018 4:28 pm

ntpd is running

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

Thank you for your help

we can close the thread
vvz
 
Posts: 183
Joined: Wed Oct 30, 2013 5:15 pm

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

Postby npolovenko » Tue May 15, 2018 4:38 pm

[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.
User avatar
npolovenko
Support Tech
 
Posts: 2084
Joined: Mon May 15, 2017 5:00 pm


Return to Nagios Core

Who is online

Users browsing this forum: Google [Bot] and 14 guests