Skip to main content

The command-line API command to add a real downtime has a bug imho.
To make it work you must use the exact name (it is case-sensitive) of a host object. If you use a name which doesn't match the exact host object name it will not show you any error but a downtime will not be created.
centreon -u admin -p 'centreon' -o RTDOWNTIME -a add -v "HOST;central;2017/09/24 10:00;2017/09/24 12:00;1;3600;my comments;1"

I didn’t observe it using other CLAPI commands. This should be fixed I think.

 

Best regards,

Jaroslaw Kesy

Hi @Jaroslaw Kesy, Thank you for your idea proposal. I would invite you to reformulate it according to the guidelines you can find here. This would help the product manager team to better evaluate your proposal. Thanks for your understanding 


Making the CLAPI command for adding real downtimes more flexible and useful.

  • Centreon administrator.

  • The command-line API command to add a real downtime is case-sensitive regarding host object names. This leads to additional effort to prepare CLAPI commands for many objects with correct names (names can include a mixture of small and capital letters). This behaviour wasn’t observed in other CLAPI commands.

  • The command-line API command to add a real downtime should be not case-sensitive regarding host object names.

  • I think it can be fixed only by a change in the CLAPI code.


Hello, we’re declining this idea as it relates more to a bug. That bug is in our backlog and should be fixed as soon as possible.


NewDeclined

It is still present today in 23.10.11, while even more bug have been introduced! (it is now adding escaped single quote instead of simple quote around the comment).

For an API that is supposed to be stable this is crazy, and not the pleasant kind of craziness 😤

It is not OK to always add more and more features in Centreon while leaving bugs and even introduce some more on the basic functionalities. Very not OK IMHO.

Functionality without stability is useless.


Another new bug, again​​​​

There should not be simple quote here to begin with, as there were no quotes in the CLAPI command…

There isn’t any when adding the downtime via the UI:
 

« Fun » fact: the v2 API can’t put a realtime downtime on a host group or service group. Using the v2 API is not even an option.