Search found 4 matches
- Tue Nov 13, 2018 2:13 pm
- Forum: Nagios XI
- Topic: REST API mixing sequential service DELETEs and POSTs
- Replies: 7
- Views: 1025
Re: REST API mixing sequential service DELETEs and POSTs
Hi @npolovenko, it's still a bug, just one in the (missing) validation of the REST API 
- Tue Nov 13, 2018 9:47 am
- Forum: Nagios XI
- Topic: REST API mixing sequential service DELETEs and POSTs
- Replies: 7
- Views: 1025
Re: REST API mixing sequential service DELETEs and POSTs
Hi @npolovenko, I think I figured out what confused me and caused me to not believe POSTing actually updates an existing service, but instead went down the delete-then-re-create route: if your service_description has a backslash character in it, it will always create a new, possibly duplicate, servi...
- Fri Nov 09, 2018 4:45 pm
- Forum: Nagios XI
- Topic: REST API mixing sequential service DELETEs and POSTs
- Replies: 7
- Views: 1025
Re: REST API mixing sequential service DELETEs and POSTs
Hi npolovenko, Sorry for the long initial post, but I did mention near the end: Note that this also happens if I defer applying the config until the end of all processing. I.e. this bash also recreates: curl -sS -XDELETE "https://nagios.domain.name/nagiosxi/api/v1/config/service?apiKey=<redacte...
- Fri Nov 09, 2018 3:41 pm
- Forum: Nagios XI
- Topic: REST API mixing sequential service DELETEs and POSTs
- Replies: 7
- Views: 1025
REST API mixing sequential service DELETEs and POSTs
Our automated deployment is creating/updating Nagios services using the REST API. Since there is no mechanism to update/modify a service, you have to delete and re-post the service. However, if you do this too quickly, as automation will do, the deletes and posts will get mixed up, and you'll only h...