Lists events for one or more devices and one or more tests configured on those devices for a certain time frame. By specifying a certain type of event in the eventType
parameter, it is possible to display only events where the previous or current state was of that type.
event.list
["deviceName=<regexp>"]
[, "testName=<regexp>" | "testSerial=<value>"]
[, "startTime=<YYYYMMDDhhmm>"]
[, "endTime=<YYYYMMDDhhmm>"]
[, "eventType=<ok|warning|critical|fail|unreachable|unknown>"]
[, "testType=<regexp>"]
[, "subType=<regexp>"]
Example
event.list "devicename=Branch Office Router", "testname=CPU-1 Load", "starttime=201705221400"
OK 203 request accepted, records returned: 1
Output is in the following format:
"deviceName=Branch Office Router","deviceSerialNumber=4620000","testName=CPU-1 Load","testSerialNumber=4620018","testType=snmp","testSubType=cpu","eventTime=20170522143145","timeInCurrentState=484033","previousSeverity=Ok","currentSeverity=Warning","message=","currentValue=5"
The event_duration
is provided in milliseconds.