26 lines
375 B
YAML
26 lines
375 B
YAML
cmd: /usr/bin/w
|
|
args:
|
|
- -i
|
|
exitcode_map:
|
|
- from: 23
|
|
to: 3
|
|
- from: -1
|
|
to: 1
|
|
- from: 0
|
|
to: 1
|
|
log_matches:
|
|
- regex: .*192.168.*.*
|
|
state: 1
|
|
- regex: "-"
|
|
state: 2
|
|
alt_msg: "%v -> a user is logged in at console"
|
|
- regex: .+
|
|
state: 0
|
|
hide_output: False
|
|
last_run_warn:
|
|
val: 8
|
|
unit: "h"
|
|
last_run_crit:
|
|
val: 16
|
|
unit: "h"
|