Skip to content

Problem

acknowledge_event

acknowledge_event <EVENT_IDS> [OPTIONS]

Acknowledge events by ID.

Arguments

EVENT_IDS
Comma-separated list of event ID(s)
Type: text
Required:

Options

--message, -m <MESSAGE>
Message to add to the event
Type: text
Default: [Zabbix-CLI] Acknowledged via acknowledge_events

--close, -c
Close the event after acknowledging it
Type: boolean (flag)
Default: False


acknowledge_trigger_last_event

acknowledge_trigger_last_event <TRIGGER_IDS> [OPTIONS]

Acknowledge the the last event for the given triggers.

Examples

Acknowledge the last event for trigger 12345

acknowledge_trigger_last_event 12345

Acknowledge the last event for trigger 12345 with a message and close it

acknowledge_trigger_last_event 12345 --message 'Acked via CLI' --close

Acknowledge multiple triggers

acknowledge_trigger_last_event 12345,12346

Arguments

TRIGGER_IDS

Type: text
Required:

Options

--message <MESSAGE>
Acknowledgement message
Type: text

--close, -c
Close event
Type: boolean (flag)
Default: False


show_alarms

show_alarms [OPTIONS]

Show the latest events for the given triggers, hosts, and/or host groups.

At least one trigger ID, host or host group must be specified.

Options

--description <DESCRIPTION>
Description of alarm(s) to show.
Type: text

--priority <PRIORITY>
Priority of alarm(s) to show.
Type: choice
Choices: unclassified, information, warning, average, high, disaster, 0, 1, 2, 3, 4, 5

--hostgroup <HOSTGROUPS>
Host group(s) to show alarms for. Comma-separated.
Type: text

--unack/--ack
Show only alarms whose last event is unacknowledged.
Type: boolean (flag)
Default: True


show_trigger_events

show_trigger_events [OPTIONS]

Show the latest events for the given triggers, hosts, and/or host groups.

At least one trigger ID, host or host group must be specified.

Examples

Show recent events for host foo.example.com

show_trigger_events --host foo.example.com

Show recent events for hosts in host group 'Linux servers'

show_trigger_events --hostgroup 'Linux servers'

Show 20 most recent events for triggers 12345 & 12346

show_trigger_events --trigger-id 12345,12346 --limit 20

Options

--trigger-id <TRIGGER_ID>
ID of trigger(s) to show events for.
Type: text

--hostgroup <HOSTGROUPS>
Host group(s) to show events for.
Type: text

--host <HOSTS>
Host(s) to show events for.
Type: text

--limit, -l <LIMIT>
Maximum number of events to show.
Type: integer
Default: 10