"error": "Could not find a unique id for this service."
Posted: Thu Jul 04, 2019 10:06 am
Hi
I am trying to delete the service from Nagios through REST API command. But getting the below error.
curl -XDELETE "http://xxxx/nagiosxi/api/v1/config/serv ... lyconfig=1
"error": "Could not find a unique id for this service."
Also tried using ccm script, which throws up the below error
./ccm_delete_object.php --type service –-config=xxxx
When using type 'service' you must specifiy one:
-i|--id (object id)
-c|--config (confg name)
What is this unique and object id that we are seeing here.
Ideally, we wanted to delete all services for a given host. But we wanted to test for one service before we proceeding with multiple services.
Please advice.
Thanks
Deepan.
I am trying to delete the service from Nagios through REST API command. But getting the below error.
curl -XDELETE "http://xxxx/nagiosxi/api/v1/config/serv ... lyconfig=1
"error": "Could not find a unique id for this service."
Also tried using ccm script, which throws up the below error
./ccm_delete_object.php --type service –-config=xxxx
When using type 'service' you must specifiy one:
-i|--id (object id)
-c|--config (confg name)
What is this unique and object id that we are seeing here.
Ideally, we wanted to delete all services for a given host. But we wanted to test for one service before we proceeding with multiple services.
Please advice.
Thanks
Deepan.