Icinga / icinga2

The core of our monitoring platform with a powerful configuration language and REST API.
https://icinga.com/docs/icinga2/latest
GNU General Public License v2.0
1.99k stars 573 forks source link

Missing notification contacts for objects/hosts and object/services query endpoint #10007

Open cmaile opened 7 months ago

cmaile commented 7 months ago

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'

Al2Klimov commented 4 months ago

Hello @cmaile!

Have you tried querying the notifications and joining the hosts and services?

Best, A/K

cmaile commented 4 months ago

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.

Al2Klimov commented 3 months ago
  1. Notification objects should be filterable by their users.
  2. Notification objects should be queryable via API, whether sent or not.