Page 3 of 3
Re: Schedule Downtime - Wrong Date
Posted: Mon Mar 07, 2016 2:07 pm
by lmiltchev
I just posted a "workaround". Try this:
https://support.nagios.com/forum/viewto ... 71#p174671
Please let me know if this helped.
Re: Schedule Downtime - Wrong Date
Posted: Wed Mar 09, 2016 5:39 am
by rajasegar
It helped but I got another problem now.
We have 3 instances and each instance is only accepting the following format in hostgroup based downtime.
XI1 - DD/MM/YYYY
XI2 - MM/DD/YYYY
All of them have the same date setting in the OS and for XI users.
Please advice how to troubleshoot this issue.
Re: Schedule Downtime - Wrong Date
Posted: Wed Mar 09, 2016 12:09 pm
by lmiltchev
Let's try troubleshooting one instance at a time. What is the Nagios XI version that you are currently using? What is the date format (both - system-wide, and user)?
Admin->System Settings->User Defaults->Date Format
Home->click on the username in the upper-right corner->Date Format
What is the output of the following command?
Show us the "Date/Time" section of your profile:
Admin->System Profile->Show Profile
Go to:
Home->Hostgroup Summary->View Hostgroup Commands
Click on:
Schedule downtime for all hosts in this hostgroup
or
Schedule downtime for all services in this hostgroup
and show us a screenshot of this page.
Next, type a comment, and click "Commit". Go to "Home->Scheduled Downtime->In Effect", and show us a screenshot of the page.
Re: Schedule Downtime - Wrong Date
Posted: Wed Mar 09, 2016 7:39 pm
by rajasegar
Locale for all 3 servers is the same
Code: Select all
[nagios@nagiosprodxi1 ~]$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
The version is 5.2.5 as per my signature.
2016-03-10_08-29-16.jpg
2016-03-10_08-27-54.jpg
The third server is the same as above
All server have the same setting as below
2016-03-10_08-27-54.jpg
Re: Schedule Downtime - Wrong Date
Posted: Wed Mar 09, 2016 7:40 pm
by rajasegar
Server1
2016-03-10_08-32-41.jpg
Server 2 & 3
2016-03-10_08-32-55.jpg
The date format is different
Re: Schedule Downtime - Wrong Date
Posted: Wed Mar 09, 2016 9:50 pm
by Box293
In /usr/local/nagios/etc/nagios.cfg can you please let us know what is set for date_format=
Re: Schedule Downtime - Wrong Date
Posted: Wed Mar 09, 2016 9:54 pm
by rajasegar
Box293 wrote:In /usr/local/nagios/etc/nagios.cfg can you please let us know what is set for date_format=
In the first is date_format=euro
In the other 2 it is date_format=us
Our date format is DD/MM/YYYY which is euro.
Re: Schedule Downtime - Wrong Date
Posted: Wed Mar 09, 2016 10:33 pm
by Box293
We had another customer report this yesterday (they also use date_format=euro) and we can reproduce the problem.
The devs are going to be looking at this shortly.
Re: Schedule Downtime - Wrong Date
Posted: Wed Mar 09, 2016 10:40 pm
by rajasegar
Box293 wrote:We had another customer report this yesterday (they also use date_format=euro) and we can reproduce the problem.
The devs are going to be looking at this shortly.
We want to use DD/MM/YYYY format and key in this format also.
Right now it is not the case.
Please advice a setting that will accomplish this once the devs sort it out.
Re: Schedule Downtime - Wrong Date
Posted: Wed Mar 09, 2016 11:10 pm
by Box293
Once the devs sort it out all of that should be resolved and you should be able to use what you want.