schedule downtime issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
sitaonair
Posts: 55
Joined: Wed Jan 06, 2016 3:36 am

Re: schedule downtime issue

Post by sitaonair »

Hi,

I've ask to my team to schedule the update. Will occur between the 02/29 and 03/04. I'll let you know if the problem is fixed.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: schedule downtime issue

Post by rkennedy »

Sounds good, I'll leave this thread open and we will await your response.
Former Nagios Employee
sitaonair
Posts: 55
Joined: Wed Jan 06, 2016 3:36 am

Re: schedule downtime issue

Post by sitaonair »

Hi,

Update has to be delayed. It was done today.
The schedule downtime is still not working. I'll do the same tests with this version to capture data and send it to you.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: schedule downtime issue

Post by hsmith »

Let us know what you come up with. Thanks!
Former Nagios Employee.
me.
sitaonair
Posts: 55
Joined: Wed Jan 06, 2016 3:36 am

Re: schedule downtime issue

Post by sitaonair »

Hi,

Here is the request trace. Still the same issue.

Code: Select all

<html>
<head>
<link rel="shortcut icon" href="http://onair-tel-ops-nagxi-01/nagiosxi/includes/components/nagioscore/ui/images/favicon.ico" type="image/ico">
<title>
External Command Interface
</title>
<script type='text/javascript' src='http://onair-tel-ops-nagxi-01/nagiosxi/includes/components/nagioscore/ui/js/coreui.js?1455902749'></script>
<script type='text/javascript' src='/nagiosxi/includes/js/jquery/jquery-1.11.2.min.js'></script>
<link rel='stylesheet' type='text/css' href='http://onair-tel-ops-nagxi-01/nagiosxi/includes/components/nagioscore/ui/css/common.css' />
<LINK REL='stylesheet' TYPE='text/css' HREF='http://onair-tel-ops-nagxi-01/nagiosxi/includes/components/nagioscore/ui/css/cmd.css'>
</head>
<body CLASS='cmd'>

<!-- Produced by Nagios (https://www.nagios.org).  Copyright (c) 1999-2007 Ethan Galstad. -->
<table border=0 width=100%>
<tr>
<td align=left valign=top width=33%>
<TABLE CLASS='infoBox' BORDER=1 CELLSPACING=0 CELLPADDING=0>
<TR><TD CLASS='infoBox'>
<DIV CLASS='infoBoxTitle'>External Command Interface</DIV>
Last Updated: Wed Mar 16 10:18:39 UTC 2016<BR>
Nagios® Core™ 4.1.1 - <A HREF='https://www.nagios.org' TARGET='_new' CLASS='homepageURL'>www.nagios.org</A><BR>
Logged in as <i>tsenay</i><BR>
</TD></TR>
</TABLE>
</td>
<td align=center valign=top width=33%>
</td>
<td align=right valign=bottom width=33%>
</td>
</tr>
</table>
<P><DIV CLASS='errorMessage'>Start or end time not valid</DIV></P>
<P><DIV CLASS='errorDescription'>Go <A HREF='javascript:window.history.go(-1)'>back</A> and verify that you entered all required information correctly.<BR>
<A HREF='javascript:window.history.go(-2)'>Return from whence you came</A></DIV></P>

<!-- Produced by Nagios (https://www.nagios.org).  Copyright (c) 1999-2007 Ethan Galstad. -->
</body>
</html>

jstoddart
Posts: 46
Joined: Fri Apr 11, 2014 5:52 am

Re: schedule downtime issue

Post by jstoddart »

We are seeing the same on our Nagios XI 5.2.5, is there any progress on this?

Moderator Note:

I have split this into two topics, one for each user's problem:

@sitonair please continue in this thread as normal
@jstoddart please continue in the new thread here: https://support.nagios.com/forum/viewto ... 04#p176102

This is done to reduce confusion, and eliminate the need to troubleshoot two people in one thread.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: schedule downtime issue

Post by ssax »

Ok, now we're getting somewhere: "Start or end time not valid"

sitaonair, when you select the downtime date/time box, what format is it showing in (YYYY-MM-DD HH:MM:SS, etc)?


What is the output of these commands:

Code: Select all

date
locale
sitaonair
Posts: 55
Joined: Wed Jan 06, 2016 3:36 am

Re: schedule downtime issue

Post by sitaonair »

here is the result :

Code: Select all

# date
Thu Mar 17 14:01:34 UTC 2016
# 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=
and about the dates, here are the values submitted by the form:
DEBUG: start_time:2016-03-16 10:18:22, end_time:2016-03-16 12:18:22
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: schedule downtime issue

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
sitaonair
Posts: 55
Joined: Wed Jan 06, 2016 3:36 am

Re: schedule downtime issue

Post by sitaonair »

here is the args dump.

Code: Select all

array(9) {
  ["cmd_typ"]=>
  string(2) "56"
  ["cmd_mod"]=>
  string(1) "2"
  ["host"]=>
  string(24) "amss-onair-nxt-portal-03"
  ["com_data"]=>
  string(13) "test downtime"
  ["trigger"]=>
  string(1) "0"
  ["start_time"]=>
  string(19) "2016-03-19 11:25:56"
  ["end_time"]=>
  string(19) "2016-03-19 13:25:56"
  ["fixed"]=>
  string(1) "1"
  ["service"]=>
  string(12) "/ Disk Usage"
}
Locked