5 Page parameters
Overview
Most Zabbix web interface pages support various HTTP GET parameters that control what will be displayed. They may be passed by specifying parameter=value pairs after the URL, separated from the URL by a question mark (?) and from each other by ampersands (&).
Status of triggers
Accessed as Monitoring → Triggers, page name tr_status.php.
To set the filter, parameter filter_set=1 must
be passed. Fields that are not specified will be reset to default
values.
Generic parameters
- groupid
- hostid
- fullscreen
Page specific parameters
- show_triggers - filter option Triggers status, 1 - Recent problem, 2 - Any, 3 - Problem
- show_events - filter option Events, 1 - Hide all, 2 - Show all, 3 - Show unacknowledged
- ack_status - filter option Acknowledge status, 1 - Any, 2 - With unacknowledged events, 3 - With last event unacknowledged
- show_severity - filter option Min severity, 0-5 - corresponding severity
- show_details - filter option Show details, 0 - do not show, 1 - show
- status_change_days - filter option Age less than, in days
- status_change - filter option Age less than, 0 - disabled, 1 - enabled (status_change_days will be used)
- txt_select - filter option Filter by name, freeform string
- application - filter option Application, freeform string
- show_maintenance - filter option Show hosts in maintenance, 0 - do not show hosts in maintenance, 1 - show hosts in maintenance
Inventory filter
Since Zabbix 2.4.0, triggers can also be filtered by inventory. Here the syntax is a bit more complicated. Inventory fields and their values are added as zero-based index entries, for example:
inventory[0][field]=type_full
inventory[0][value]=Virtual machine
inventory[1][field]=os_full
inventory[1][value]=Linux
These must be URL-encoded, though. The passed values would look like:
inventory%5B0%5D%5Bfield%5D=type_full
inventory%5B0%5D%5Bvalue%5D=Virtual machine
inventory%5B1%5D%5Bfield%5D=os_full
inventory%5B1%5D%5Bvalue%5D=Linux
Inventory field codes can be found in the Zabbix API host object documentation.
Trigger events
Access to events of a specific trigger, which may be useful for notifications is to use a URL like:
http://<server_ip_or_name>/zabbix/events.php?triggerid={TRIGGER.ID}&filter_set=1