Add --event

dev
Eric Loyd 2 years ago
parent 40408bb10a
commit f09467966b

@ -34,6 +34,7 @@ print_help() {
echo " -Q does a quick version of HARD CRITICAL" echo " -Q does a quick version of HARD CRITICAL"
echo " -n <#> selects the alert number, no default" echo " -n <#> selects the alert number, no default"
echo " --type <alert type (ALERT, EVENT, NOTIFICATION)>, default=all" echo " --type <alert type (ALERT, EVENT, NOTIFICATION)>, default=all"
echo " --event set alert type to EVENT HANDLER"
echo " --src|--source <alert source (HOST, SERVICE)>, default=all" echo " --src|--source <alert source (HOST, SERVICE)>, default=all"
echo " --from <from time>, default=today at midnight" echo " --from <from time>, default=today at midnight"
echo " --to <to time>, default=now" echo " --to <to time>, default=now"
@ -69,6 +70,7 @@ while [ -n "$1" ]; do
-Q) severity="HARD"; state="CRITICAL"; shift 1;; -Q) severity="HARD"; state="CRITICAL"; shift 1;;
-n|--num) num="$2"; shift 2;; -n|--num) num="$2"; shift 2;;
--type) aType="$2"; shift 2;; --type) aType="$2"; shift 2;;
--event) aType="EVENT HANDLER"; shift 1;;
--src|--source) aSource="$2"; shift 2;; --src|--source) aSource="$2"; shift 2;;
--from) fromTime="$2"; shift 2;; --from) fromTime="$2"; shift 2;;
--to) toTime="$2"; shift 2;; --to) toTime="$2"; shift 2;;

Loading…
Cancel
Save