Page 1 of 2
Scheduled Downtime using my browser time?
Posted: Tue Feb 28, 2017 9:09 am
by monit_burb
Hi,
I've my Nagiosxi server time set up to GMT London time and If I check my System profile I can see it's ok. The thing is when I go to Incident Management -> Scheduled Downtime all the downtime are shown using the local time of my laptop (GMT+1) instead of the GMT and is causing a little bit of confusion.
If I go to check the host, I can see the comment of the downtime with the correct GMT time
Is this something that be changed? I didn't see on the user profile anything about changing the timer zone.
Re: Scheduled Downtime using my browser time?
Posted: Tue Feb 28, 2017 3:53 pm
by dwhitfield
When you say System Profile, do you mean the System Settings circled on page 2 of
https://assets.nagios.com/downloads/nag ... m_Time.pdf ?
That document actually has info for changing your time zone in all the pieces. PHP is the one I suspect here.
Re: Scheduled Downtime using my browser time?
Posted: Wed Mar 01, 2017 6:53 am
by monit_burb
I didn't meant the System Settings but there is the time set properly to GMT London time. I mean in System Config -> System profile -> View system info. Attached screenshot.
I was also thinking about php or apache config but couldn't find anything so far but in th screenshot you could see php have the right time
Re: Scheduled Downtime using my browser time?
Posted: Wed Mar 01, 2017 11:00 am
by dwhitfield
Please start on the CentOS 7 portion of page 3 of
https://assets.nagios.com/downloads/nag ... m_Time.pdf and work your way to the end.
Sometimes people change the times and don't restart the services, so it's important you work all the way through the document...obviously changing to the appropriate time zone.
Re: Scheduled Downtime using my browser time?
Posted: Thu Mar 02, 2017 3:41 am
by monit_burb
dwhitfield wrote:Please start on the CentOS 7 portion of page 3 of
https://assets.nagios.com/downloads/nag ... m_Time.pdf and work your way to the end.
Sometimes people change the times and don't restart the services, so it's important you work all the way through the document...obviously changing to the appropriate time zone.
My server have been since the OS was installed in the same time zone, using the same ntp servers and rebooted multiple times. As you can see in the previous screenshot, it shows the correct time zone por the system and php.
I checked my current time zone with the commands "date" and with ls commands.
ls -l /etc/localtime
lrwxrwxrwx 1 root root 33 Feb 13 17:31 /etc/localtime -> /usr/share/zoneinfo/Europe/London
Also tried to restart the httpd and ntpd services but is still not fixed.
This is not something that is only happening to me but to every users of our Nagios platform that it's in a different time zone than the system so I guess I can discard browser or cache issues.
Re: Scheduled Downtime using my browser time?
Posted: Thu Mar 02, 2017 11:40 am
by bwallace
I think we've got a misunderstanding of this here. When you login to XI the time is always local (of course) and when configuring scheduled downtime for another server in a different timezone you'll have to manually account for the time diff.
I'm in CST and a server is in PST and I want downtime to begin at 8pm for that server. Since CST is an hour behind I'd select 19:00 when setting scheduling this downtime.
Re: Scheduled Downtime using my browser time?
Posted: Fri Mar 03, 2017 2:51 am
by monit_burb
bwallace wrote:I think we've got a misunderstanding of this here. When you login to XI the time is always local (of course) and when configuring scheduled downtime for another server in a different timezone you'll have to manually account for the time diff.
I'm in CST and a server is in PST and I want downtime to begin at 8pm for that server. Since CST is an hour behind I'd select 19:00 when setting scheduling this downtime.
Yes, I'm afraid we are not understanding each other. If I go to "Incident Management" and schedule a downtime for a host lest say from 9AM to 10AM, once is set up if I browse the list of scheduled downtime and look for that host it will display that the downtime is set from 10AM to 11AM. As a test a just created a new downtime from 9AM to 10AM and checked from my laptop and a laptop in the same time zone as the Nagios server. Mine is displaying from 10AM to 11AM, the one in the Nagios time zone is displaying from 9AM to 10AM so as I was suspecting, is using the laptop timezone to show the scheduled downtimes.
Re: Scheduled Downtime using my browser time?
Posted: Fri Mar 03, 2017 3:36 pm
by dwhitfield
I submitted internal feature request 11238 for this. If you wish to check on the status in the future, please use that #.
Did you have anything else to add to the request, or should we lock this up?
Re: Scheduled Downtime using my browser time?
Posted: Mon Mar 06, 2017 3:40 am
by monit_burb
dwhitfield wrote:I submitted internal feature request 11238 for this. If you wish to check on the status in the future, please use that #.
Did you have anything else to add to the request, or should we lock this up?
Not really, I guess this could be configured on each user profile so they can globally select if they want to see everything on the Nagios server time zone or they own defined time zone.
What I can tell you is that we didn't face this issue with our old Nagios server that was running on Centos 6 and Nagios 2014 R1.2
Re: Scheduled Downtime using my browser time?
Posted: Mon Mar 06, 2017 1:29 pm
by cdienger
Thanks for the additional information. We'll include it on the feature request and lock this thread.