You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im trying to remove all downtime for a host + its services via the API
I can remove host ok:
/hosts/HOSTNAME/cmd/del_active_host_downtimes
But for services I cant figure out how to specify "all" i.e. I can do it one by one by pulling the list of services but its not a very efficent way of doing it
I cant seem to get the filter here to recognise regex:
"message" : "cannot send command, affected backend list is empty. no object found by filter: host=HOSTNAME service=*"
or "message" : "cannot send command, affected backend list is empty. no object found by filter: host=HOSTNAME service=.*"
Im trying to remove all downtime for a host + its services via the API
I can remove host ok:
/hosts/HOSTNAME/cmd/del_active_host_downtimes
But for services I cant figure out how to specify "all" i.e. I can do it one by one by pulling the list of services but its not a very efficent way of doing it
/services/HOSTNAME/*/cmd/del_active_service_downtimes"
I cant seem to get the filter here to recognise regex:
"message" : "cannot send command, affected backend list is empty. no object found by filter: host=HOSTNAME service=*"
or
"message" : "cannot send command, affected backend list is empty. no object found by filter: host=HOSTNAME service=.*"
I can do it with the system command:
/system/cmd/del_downtime_by_host_name" -d "hostname=HOSTNAME"
But I dont really want to give this user that level of power
The text was updated successfully, but these errors were encountered: