Schedule Downtime - Wrong Date

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Schedule Downtime - Wrong Date

Post by lmiltchev »

I just posted a "workaround". Try this:

https://support.nagios.com/forum/viewto ... 71#p174671

Please let me know if this helped.
Be sure to check out our Knowledgebase for helpful articles and solutions!
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Schedule Downtime - Wrong Date

Post 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.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Schedule Downtime - Wrong Date

Post 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?

Code: Select all

locale
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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Schedule Downtime - Wrong Date

Post 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
You do not have the required permissions to view the files attached to this post.
Last edited by rajasegar on Wed Mar 09, 2016 7:43 pm, edited 1 time in total.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Schedule Downtime - Wrong Date

Post 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
You do not have the required permissions to view the files attached to this post.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Schedule Downtime - Wrong Date

Post by Box293 »

In /usr/local/nagios/etc/nagios.cfg can you please let us know what is set for date_format=
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Schedule Downtime - Wrong Date

Post 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.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Schedule Downtime - Wrong Date

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Schedule Downtime - Wrong Date

Post 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.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Schedule Downtime - Wrong Date

Post by Box293 »

Once the devs sort it out all of that should be resolved and you should be able to use what you want.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked