Page 1 of 1

Using API to disable a host from CCM

Posted: Fri Apr 14, 2017 1:16 pm
by da1701d
I have version 5.4.3 installed on our system and have been using the API for good number of things at this point.

We now have a need "disable the host". Now, don't get confused by what I'm asking. I'm not talking about disabling notificaitons or disabling host checks because I already know how to do that. What we want to do is actually disable the object so that host actually gets removed from monitoring and disappears from the normal interface.

So in the CCM interface, if you click on Hosts and pick a host, it's easy to just click the "Active" status of said host to a NO and apply the config. This leaves the host object behind in a disabled state so that it would be easy to enable it again with all the same settings it had before.

From what I can tell, it seems the API may not support this particular action. Has anyone else figured how to do this from API? If there is no support for it, can this command be added to the API?

Thanks,
Dan

Re: Using API to disable a host from CCM

Posted: Fri Apr 14, 2017 2:16 pm
by tmcdonald
You are correct, this is not currently supported by the API. I have spoken to the developers and I will be filing have filed a feature request for this, though it is already planned for a future release. The FR ID is 11571.