icinga2 icon indicating copy to clipboard operation
icinga2 copied to clipboard

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

Open cmaile opened this issue 1 year ago • 3 comments

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'

cmaile avatar Feb 19 '24 13:02 cmaile

Hello @cmaile!

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

Best, A/K

Al2Klimov avatar Apr 25 '24 11:04 Al2Klimov

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.

cmaile avatar Apr 26 '24 19:04 cmaile

  1. Notification objects should be filterable by their users.
  2. Notification objects should be queryable via API, whether sent or not.

Al2Klimov avatar May 28 '24 14:05 Al2Klimov