schedule downtime issue - jstoddart

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jstoddart
Posts: 46
Joined: Fri Apr 11, 2014 5:52 am

schedule downtime issue - jstoddart

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: schedule downtime issue - jstoddart

Post 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
jstoddart
Posts: 46
Joined: Fri Apr 11, 2014 5:52 am

Re: schedule downtime issue - jstoddart

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: schedule downtime issue - jstoddart

Post by tmcdonald »

Can you please run the date and locale commands and post their output?
Former Nagios employee
jstoddart
Posts: 46
Joined: Fri Apr 11, 2014 5:52 am

Re: schedule downtime issue - jstoddart

Post 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 ~]#
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: schedule downtime issue - jstoddart

Post 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
jstoddart
Posts: 46
Joined: Fri Apr 11, 2014 5:52 am

Re: schedule downtime issue - jstoddart

Post by jstoddart »

Just tried that but no file being produced in /tmp, will investigate further
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: schedule downtime issue - jstoddart

Post 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
Former Nagios employee
jstoddart
Posts: 46
Joined: Fri Apr 11, 2014 5:52 am

Re: schedule downtime issue - jstoddart

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: schedule downtime issue - jstoddart

Post 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!
Former Nagios employee
Locked