icinga2
icinga2 copied to clipboard
Missing notification contacts for objects/hosts and object/services query endpoint
Describe the feature
When querying the Icinga2 API endpoints /object/host and /object/service, it is currently no possibility to lookup or filter the notification contacts. At least a filter as to whether an alarm has a receiver would be useful.
To Reproduce
curl -k -s -S -i -u root:icinga 'https://localhost:5665/v1/objects/hosts'
Hello @cmaile!
Have you tried querying the notifications and joining the hosts and services?
Best, A/K
Hi @Al2Klimov
Unfortunately, this is not the direction I need. I would like to query a list of services and filter by stored contacts. When I query notifications and joining to services / hosts, I only get the notifications that have been sent.
- Notification objects should be filterable by their users.
- Notification objects should be queryable via API, whether sent or not.