Private GIT

Skip to content
Snippets Groups Projects
Commit 4f45d580 authored by loiclau's avatar loiclau Committed by Kev
Browse files

fix host/service relation

parent 1f4a645b
Branches
Tags
No related merge requests found
......@@ -118,7 +118,7 @@ Real time Downtime for : addservice, addservicegroup
If you want to associate a service or service group to a real time downtime, use the **ADD** action::
To set the value of the start/end, use following format : YYYY/MM/DD HH:mm::
[root@centreon ~]# ./centreon -u admin -p centreon -o RTDOWNTIME -a add -v "SVC;central|ping;2017/09/24 10:00;2017/09/24 12:00;1;3600;my comments"
[root@centreon ~]# ./centreon -u admin -p centreon -o RTDOWNTIME -a add -v "SVC;central,ping|central,memory;2017/09/24 10:00;2017/09/24 12:00;1;3600;my comments"
[root@centreon ~]# ./centreon -u admin -p centreon -o RTDOWNTIME -a add -v "SG;servicegroup1;2017/09/24 10:00;2017/09/24 12:00;1;3600;my comments"
The required parameters are the following :
......
......@@ -118,7 +118,7 @@ Real time Downtime for : addservice, addservicegroup
If you want to associate a service or service group to a real time downtime, use the **ADD** action::
To set the value of the start/end, use following format : YYYY/MM/DD HH:mm::
[root@centreon ~]# ./centreon -u admin -p centreon -o RTDOWNTIME -a add -v "SVC;central|ping;2017/09/24 10:00;2017/09/24 12:00;1;3600;my comments"
[root@centreon ~]# ./centreon -u admin -p centreon -o RTDOWNTIME -a add -v "SVC;central,ping|central,memory;2017/09/24 10:00;2017/09/24 12:00;1;3600;my comments"
[root@centreon ~]# ./centreon -u admin -p centreon -o RTDOWNTIME -a add -v "SG;servicegroup1;2017/09/24 10:00;2017/09/24 12:00;1;3600;my comments"
The required parameters are the following :
......
......@@ -115,7 +115,7 @@ class CentreonRtDowntime extends CentreonObject
private function parseParameters($parameters)
{
// Make safe the inputs
list($type, $resource, $start, $end, $fixed, $duration, $withServices, $comment) = explode(';', $parameters);
list($type, $resource, $start, $end, $fixed, $duration, $comment, $withServices) = explode(';', $parameters);
// Check if object type is supported
if (!in_array(strtoupper($type), $this->downtimeType)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment