We're trying to build an uptime dashboard for our servers using the API. We have a trigger which belongs to a template which is linked to all our servers. The trigger description is '{HOSTNAME} - Unreachable'.
Using the trigger.get method we cannot see how to retrieve all triggers which are instances of the above trigger template. I notice that if I hover over the trigger template in the web interface is has its own ID, but specifying that in the triggerids parameter doesn't work. I've also looked at the trigger.getobjects method but it doesn't allow you to filter by host group.
I need to return triggers (and their associated host info) where the trigger template = x and the hosts belongs to group 'web servers'. Is this possible with the API?
Using the trigger.get method we cannot see how to retrieve all triggers which are instances of the above trigger template. I notice that if I hover over the trigger template in the web interface is has its own ID, but specifying that in the triggerids parameter doesn't work. I've also looked at the trigger.getobjects method but it doesn't allow you to filter by host group.
I need to return triggers (and their associated host info) where the trigger template = x and the hosts belongs to group 'web servers'. Is this possible with the API?