When i deploy via API an existing service to a host, the service is overwriten
When i deploy via API an existing service to a hostgroup i have duplicate definition in the CCM
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 ?
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!
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!