Search found 2 matches

by ibdv
Mon May 20, 2024 9:27 pm
Forum: Nagios XI
Topic: [API] Possible to add multiple contacts when creating a service?
Replies: 3
Views: 661

Re: [API] Possible to add multiple contacts when creating a service?

snapier3 wrote: Mon May 20, 2024 2:56 pm I do this a ton in Python...

Modify your list format
"contacts": ["slack_support", "support"],
Change to this and see what you get ;)

Code: Select all

"contacts": ["slack_support, support"],
--SN
Oh my word, this did the trick it looks like. Thank you!
by ibdv
Mon May 20, 2024 1:07 pm
Forum: Nagios XI
Topic: [API] Possible to add multiple contacts when creating a service?
Replies: 3
Views: 661

[API] Possible to add multiple contacts when creating a service?

Hello, I couldn't find an answer for this, but it seems that when creating a service (or updating one via put) the contact is only set as the last value given in a list. The following code creates the service: body = { "host_name": "edge", "service_description": "P...