Page 1 of 1

Nagios Server change System Time

Posted: Thu Oct 18, 2018 12:41 pm
by romenesescr
Hi All
This is the information about my Nagios XI:
1 - Linux Distribution and version?
CentOS Linux release 7.5.1804 (Core)

2 - 32 or 64bit?
Linux monitoreo.racsa.go.cr 3.10.0-862.6.3.el7.x86_64 #1 SMP Tue Jun 26 16:32:21 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
64 Bits

3 - VMware Image or Manual Install of XI?
VMware Image

4 -Are there special configurations on your system
No

Issue:
The issue is that system change time.
I follow this manual:
https://assets.nagios.com/downloads/nag ... m_Time.pdf

But after some hours or days, the system change the time "Local time" to "Universal Time", I configured NTP to check the time to our ntp server, but this fail after hours or days. Also trying using public NTP, but doesn't work, NTP port is open in the firewall. I have to change or restart ntpd when this happen and follow all the instruction on the manual to restart DB.

This is the information that I have in the configuration according to the Manual:

Date/Time (Information from "System Settings" Nagios Web)

PHP Timezone: America/Costa_Rica
PHP Time: Thu, 18 Oct 2018 11:31:10 -0600
System Time: Thu, 18 Oct 2018 11:31:10 -0600

[root@monitoreo ~]# timedatectl
Local time: Thu 2018-10-18 11:32:44 CST
Universal time: Thu 2018-10-18 17:32:44 UTC
RTC time: Thu 2018-10-18 17:32:44
Time zone: America/Costa_Rica (CST, -0600)
NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: no
DST active: n/a
[root@monitoreo ~]#

[root@monitoreo ~]# cat /etc/php.ini | grep date.timezone
; http://php.net/date.timezone
date.timezone = America/Costa_Rica
[root@monitoreo ~]#

[root@monitoreo ~]# systemctl status ntpd
● ntpd.service - Network Time Service
Loaded: loaded (/usr/lib/systemd/system/ntpd.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2018-10-18 17:28:48 CST; 5h 53min left
Process: 13277 ExecStart=/usr/sbin/ntpd -u ntp:ntp $OPTIONS (code=exited, status=0/SUCCESS)
Main PID: 13278 (ntpd)
CGroup: /system.slice/ntpd.service
└─13278 /usr/sbin/ntpd -u ntp:ntp -g

Oct 18 17:28:48 monitoreo.racsa.go.cr systemd[1]: Starting Network Time Servi...
Oct 18 17:28:48 monitoreo.racsa.go.cr systemd[1]: Started Network Time Service.
Oct 18 17:28:48 monitoreo.racsa.go.cr ntpd[13278]: proto: precision = 0.093 usec
Oct 18 17:28:48 monitoreo.racsa.go.cr ntpd[13278]: 0.0.0.0 c01d 0d kern kerne...
Hint: Some lines were ellipsized, use -l to show in full.
[root@monitoreo ~]#

Thanks for your help
Regards

Re: Nagios Server change System Time

Posted: Thu Oct 18, 2018 3:54 pm
by cdienger
You probably need to disable time sync between the vmware host and the server. Follow https://kb.vmware.com/s/article/1189 to do so.

Re: Nagios Server change System Time

Posted: Tue Oct 23, 2018 10:19 am
by romenesescr
After made the change, this solved the problem

Thanks a lot

Regards

Re: Nagios Server change System Time

Posted: Tue Oct 23, 2018 3:25 pm
by cdienger
Thanks for posting your results!