ZC-PROBLEM-GET(1) - General Commands Manual
NAME
zc-problem-get - fetch problems from a zabbix server
SYNOPSIS
zc problem get [-ars] [-b timestamp] [-e timestamp] [-l severity] [-t tag|tag=value]
DESCRIPTION
The zc-problem-get command, can be used for retrieving a list of problems from a zabbix server. By default, the zc-problem-get command will output the currently open problems that are not acknowledged in the form of event id, clock, severity and problem name. The fields are separated by a tabulation character.
Options are as follow:
-a
Show only acknowledged problems.
-r
Show recent problems, either in PROLBEM or RESOLVED state.
-s
Show only suppressed problems
-b timestamp
Show problems created after timestamp.
-e timestamp
Show problems created before timestamp.
-l severity
Filter problems by given severity. Levels are:
nc
Trigger not classified.
info
Informational.
warn
Warning.
avg
Average.
high
High problem.
dis
Disaster.
Filtering by more severities can be done by simply specifying more -l flags on the command line.
-t *tag | tag=value* |
---|
Show problems with a tag matching tag and, optionally with a value matching value.
Multiple tags may be specified with more -t flags.
Timestamp for the -b and -e flags, are in the format:
YYYY-MM-DDTHH:MM:SS
as specified in the ISO 8601 standard.
EXIT STATUS
The zc-problem-get utility exits 0 on success, and >0 if an error occurs.
SEE ALSO
zc-event(1), zc-problem(1), zc-problem-ack(1), zc-problem-annotate(1), zc-problem-close(1), zc-problem-escalate(1), zc-problem-unack(1)
AUTHORS
Andrea Biscuola <a@abiscuola.com>
OpenBSD 6.9 - August 25, 2020