Duplicate definition in CCM via API (SVC on a HG)

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sigmainformatique
Posts: 74
Joined: Mon Apr 23, 2018 8:11 am

Duplicate definition in CCM via API (SVC on a HG)

Post by sigmainformatique »

Hello,

When i deploy via API an existing service to a host, the service is overwriten 8-)
When i deploy via API an existing service to a hostgroup i have duplicate definition in the CCM :cry:
i send json file without host_name key but with the hostgroup_name key

Is there a way to overwrite the existing service via api ?

Thanks.

Mickaël.
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Duplicate definition in CCM via API (SVC on a HG)

Post by mbellerue »

When needing to overwrite an existing host/service/hostgroup/servicegroup definition, you should use a PUT operation. Is that what you're using? Can you post both of the API commands that you are sending?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
sigmainformatique
Posts: 74
Joined: Mon Apr 23, 2018 8:11 am

Re: Duplicate definition in CCM via API (SVC on a HG)

Post by sigmainformatique »

Hello,

Api does not support PUT operation, we need to update our solution.

Thanks for your help
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Duplicate definition in CCM via API (SVC on a HG)

Post by benjaminsmith »

Hi Mickaël.,

It looks like the PUT operation in the API has a slightly different structure than the POST operation. Have you figured out a workaround in your solution?

If not please post your entire API command, and I can ask the team here possible options/solutions here.

Thanks,
Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked