jobwatch/app/sample.job.yml

24 lines
337 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: "User logged in at console (%v)"
hide_output: True
last_run_warn:
val: 8
unit: "h"
last_run_crit:
val: 16
unit: "h"