-
Notifications
You must be signed in to change notification settings - Fork 240
Conversation
@Guillaume28 dans tes fonction GetObjectByName or ByInstance, tu n'as pas de filtre pour sélectionner uniquement les ressources actives |
Comments format are not as expected |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing clapi documentation
@@ -1,8 +1,3 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not remove these lines
2c28971
to
75a1e9f
Compare
@Guillaume28 also could you rebase against 2.8.x and resolve conflicts ? |
b66ba95
to
46dc2c5
Compare
"postman.setGlobalVariable(\"fixed\", \"1\");", | ||
"", | ||
"var date = new Date();", | ||
"var datetime_start = date.getFullYear() + \"/\" + ('0' + (date.getMonth()+1)).slice(-2) + \"/\" + ('0' + date.getDate()).slice(-2) + \" \" + ('0' + dateEnd.getHours()).slice(-2) + \":\" + ", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make a function.
], | ||
"body": { | ||
"mode": "raw", | ||
"raw": "{\n \"action\": \"add\",\n \"object\": \"RTDOWNTIME\",\n \"values\": \"HOST;esx-alger-01;{{actual_start_time}};{{end_time}};1;3600;0;Faut pas renifler de la confiture sinon ça fait tousser\"\n}\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use a better comment
require_once realpath(dirname(__FILE__) . '/../centreonHostgroups.class.php'); | ||
require_once realpath(dirname(__FILE__) . '/../centreonServicegroups.class.php'); | ||
require_once realpath(dirname(__FILE__) . '/../centreonInstance.class.php'); | ||
require_once realpath(dirname(__FILE__).'/../centreonExternalCommand.class.php'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style, add space
Now we have the capacity to add a realtime downtime with CLAPI commands for the hosts, services, hostgroups, servicegroups and instances.
In addition newman acceptance tests are included.