Using API to disable a host from CCM
Posted: Fri Apr 14, 2017 1:16 pm
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
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