Using API to disable a host from CCM

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
da1701d
Posts: 23
Joined: Tue Jun 25, 2013 3:57 pm

Using API to disable a host from CCM

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Using API to disable a host from CCM

Post 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.
Former Nagios employee
Locked