Open leoncx opened 11 years ago
Original Redmine Comment Author Name: Quentin Garnier (Quentin Garnier) Original Date: 2013-06-11T11:22:33Z
The ticket should be for centreon-clapi.
Original Redmine Comment Author Name: Florian Asche (Florian Asche) Original Date: 2013-06-11T11:41:52Z
Is there no other API? Webinterface?
Original Redmine Comment Author Name: Quentin Garnier (Quentin Garnier) Original Date: 2013-06-11T14:07:24Z
Not yet.
Original Redmine Comment Author Name: Mathieu Chouquet-Stringer (Mathieu Chouquet-Stringer) Original Date: 2013-06-27T14:36:46Z
You could just write to the centengine pipe (using Nagios command).
For instance to schedule downtime for a particular service:
http://old.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=119
It works for me: printf "[%lu] SCHEDULE_SVC_DOWNTIME;%s;%s;%lu;%lu;1;0;0;Mathieu;Some reason\n" $(date +%s) $host $svc $(date +%s) $(date -d '+1 hour' +%s) > centengine.cmd
Original Redmine Comment Author Name: Florian Asche (Florian Asche) Original Date: 2013-06-27T17:57:01Z
Hi, thats for that. But thats not what i am searching for. That ist just nagios or centengine, not centreon.
The Problem is, if i restart nagios all Downtimes are gone. Centreon is nice, and add them again. But if centreon didnt know then, centreon cant add them again. So i hope for an Enhancement of the clapi.
Author Name: Florian Asche (Florian Asche) Original Redmine Issue: 4529, https://forge.centreon.com/issues/4529 Original Date: 2013-06-11 Original Assignee: Sylvestre Ho
Hi Guys,
is there a way to set Downtime in Centreon, without Webfrontend/Login...?
In our Company there is a Change Management System. I wanna create a Script to copy all Maintenance Information to Centreon. I am searching now for a api to do that...