Different Time Zones for schedule downtim and Recurring Down

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
manimurugesan
Posts: 145
Joined: Wed Oct 03, 2018 9:15 am

Different Time Zones for schedule downtim and Recurring Down

Post by manimurugesan »

Hi Team,

I have found that there are different timezones showing in schedule downtime and recurring downtime.

System Time Zone is London, But scheduled downtime is showing in IST please find the screenshot


[root@~]# timedatectl
Local time: Wed 2018-12-19 14:10:31 GMT
Universal time: Wed 2018-12-19 14:10:31 UTC
RTC time: Wed 2018-12-19 14:10:31
Time zone: Europe/London (GMT, +0000)
NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: no
DST active: no
Last DST change: DST ended at
Sun 2018-10-28 01:59:59 BST
Sun 2018-10-28 01:00:00 GMT
Next DST change: DST begins (the clock jumps one hour forward) at
Sun 2019-03-31 00:59:59 GMT
Sun 2019-03-31 02:00:00 BST
You do not have the required permissions to view the files attached to this post.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Different Time Zones for schedule downtim and Recurring

Post by npolovenko »

@manimurugesan, Most likely you need to adjust the timezone in the /etc/php.ini file. Open the file with a text editor and change:
date.timezone = Europe/London
Save and exit. Then restart apache with:
service httpd restart
Also, open the Admin menu and make sure that you have the right timezone under Timezone Settings.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Different Time Zones for schedule downtim and Recurring

Post by lmiltchev »

@manimurugesan, I believe the scheduled downtime is correct but there is a display issue in Nagios XI - somehow the timestamps are not converted properly. Let's try to verify it. Log in the Nagios Core interface:

Code: Select all

http://ip address/nagios
click on the "Downtime" link under the "System" menu on the left, and check the downtime. Are start and end times correct? If they are, this means that we have a display issue in XI, which our developers will be fixing as soon as they can.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Different Time Zones for schedule downtim and Recurring

Post by lmiltchev »

One more thing...
System Time Zone is London, But scheduled downtime is showing in IST please find the screenshot
What is your computer time? Is it IST? The entry/start/end time is converted in Nagios XI to your computer time. If you changed your desktop's time to London time, these values should show up correctly.

Note: In a future, we will be adding an option to select localtime or server time. It would be less confusing.
Be sure to check out our Knowledgebase for helpful articles and solutions!
manimurugesan
Posts: 145
Joined: Wed Oct 03, 2018 9:15 am

Re: Different Time Zones for schedule downtim and Recurring

Post by manimurugesan »

"date.timezone is proper in /etc/php.ini file"
==> date.timezone = Europe/London

"@manimurugesan, I believe the scheduled downtime is correct but there is a display issue in Nagios XI - somehow the timestamps are not converted properly. Let's try to verify it. Log in the Nagios Core interface:"

==> Downtime time is proper as per London Time


"What is your computer time? Is it IST? The entry/start/end time is converted in Nagios XI to your computer time. If you changed your desktop's time to London time, these values should show up correctly. "

==> date
Thu 20 Dec 18:05:56 GMT 2018


everything is configured properly as u mentioned properly.

The only difference is the recurring downtime showing in IST apart from that everything in GMT London
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Different Time Zones for schedule downtim and Recurring

Post by lmiltchev »

"What is your computer time? Is it IST? The entry/start/end time is converted in Nagios XI to your computer time. If you changed your desktop's time to London time, these values should show up correctly. "

==> date
Thu 20 Dec 18:05:56 GMT 2018
Is your workstation in IST? If you are using Windows, click on the date/time in the bottom right and show us a screenshot. Where is the IST coming from? Did you run the "date" command on the Nagios XI server or on your workstation (in case you are using Linux)? I am just trying to get some clarification. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked