Delete service using REST API error on XI version 5.6.5

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
JosephH
Posts: 34
Joined: Fri Oct 12, 2018 10:04 am

Re: Delete service using REST API error on XI version 5.6.5

Post by JosephH »

Hi lmiltchev,

There is a service configuration for "Virtual Memory Usage" and added to zero or one host and multiple manage host groups assigned.

Thanks
Joseph
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Delete service using REST API error on XI version 5.6.5

Post by scottwilkerson »

JosephH wrote:Hi lmiltchev,

There is a service configuration for "Virtual Memory Usage" and added to zero or one host and multiple manage host groups assigned.

Thanks
Joseph
This is the problem. the API cannot delete the service from the host in the way you are attempting because the host isn't added to the service, the hostgroup is...

To accomplish removing this host from the service, in the CCM, edit the service
then click "Manage Hosts"
Select the host you do not want the service added to and click "Add Selected"
then on the right side, check the box next to the ! symbol (this means exclude this host)
Click Close
Click Save
Apply Configuration
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
JosephH
Posts: 34
Joined: Fri Oct 12, 2018 10:04 am

Re: Delete service using REST API error on XI version 5.6.5

Post by JosephH »

Hi scottwilkerson,

Thank you for the info and I have followed the procedures and deleted the services through CCM. As you stated that I can not using API in this case.

Thanks
Joseph
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Delete service using REST API error on XI version 5.6.5

Post by scottwilkerson »

JosephH wrote:Hi scottwilkerson,

Thank you for the info and I have followed the procedures and deleted the services through CCM. As you stated that I can not using API in this case.

Thanks
Joseph
Sounds good..

Closing case
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked