Page 1 of 1

schedule downtime issue - jstoddart

Posted: Wed Mar 16, 2016 3:49 pm
by jstoddart
We are seeing the same on our Nagios XI 5.2.5, is there any progress on this?

Moderator Note: This topic was split from: https://support.nagios.com/forum/viewto ... 30#p175941

Re: schedule downtime issue - jstoddart

Posted: Wed Mar 16, 2016 5:03 pm
by ssax
Ok, now we're getting somewhere: "Start or end time not valid"

jstoddart, can you replicate that same trace and see if you are seeing the same thing?


What is the output of these commands:

Code: Select all

date
locale

Re: schedule downtime issue - jstoddart

Posted: Wed Mar 16, 2016 5:18 pm
by jstoddart
Tried the trace and just get "Start time or end time Invalid" when I try now and no trace file, have reverted the changes and still the same

Re: schedule downtime issue - jstoddart

Posted: Thu Mar 17, 2016 2:53 pm
by tmcdonald
Can you please run the date and locale commands and post their output?

Re: schedule downtime issue - jstoddart

Posted: Fri Mar 18, 2016 2:40 am
by jstoddart
CentOS release 6.3 (Final)
[NagiosX1:main.linux64 ~]# date
Fri Mar 18 07:39:15 GMT 2016
[NagiosX1:main.linux64 ~]# 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=
[NagiosX1:main.linux64 ~]#

Re: schedule downtime issue - jstoddart

Posted: Fri Mar 18, 2016 2:50 pm
by ssax
Please edit the file again and add this additional code after the code you added for the first trace:

Code: Select all

ob_start();
var_dump($args);
$cresult = ob_get_clean();
$cfile = '/tmp/downtime_args.txt';
file_put_contents($cfile, $cresult);
Then schedule downtime again and attach a sanitized copy of your /tmp/downtime_args.txt.

Thank you

Re: schedule downtime issue - jstoddart

Posted: Tue Mar 22, 2016 4:16 am
by jstoddart
Just tried that but no file being produced in /tmp, will investigate further

Re: schedule downtime issue - jstoddart

Posted: Tue Mar 22, 2016 2:05 pm
by tmcdonald
Are there any errors in /var/log/httpd/error_log about that log file? You might need to create it manually and give it appropriate permissions:

Code: Select all

touch /tmp/downtime_args.txt
chmod 777 /tmp/downtime_args.txt

Re: schedule downtime issue - jstoddart

Posted: Tue Apr 26, 2016 3:21 am
by jstoddart
Apologies for delay on getting back to this, we have just upgraded to 5.2.7 and this seems to all be Ok now.

Thanks

Jamie

Re: schedule downtime issue - jstoddart

Posted: Tue Apr 26, 2016 9:21 am
by tmcdonald
Great to hear. I'll be closing this thread now, but feel free to open another if you need anything in the future!