Nagios Server change System Time

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
romenesescr
Posts: 4
Joined: Wed Aug 22, 2018 4:18 pm

Nagios Server change System Time

Post 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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios Server change System Time

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
romenesescr
Posts: 4
Joined: Wed Aug 22, 2018 4:18 pm

Re: Nagios Server change System Time

Post by romenesescr »

After made the change, this solved the problem

Thanks a lot

Regards
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios Server change System Time

Post by cdienger »

Thanks for posting your results!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked