Add --event

This commit is contained in:
2023-08-12 17:12:04 -04:00
parent 40408bb10a
commit f09467966b
+2
View File
@@ -34,6 +34,7 @@ print_help() {
echo " -Q does a quick version of HARD CRITICAL"
echo " -n <#> selects the alert number, no default"
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 " --from <from time>, default=today at midnight"
echo " --to <to time>, default=now"
@@ -69,6 +70,7 @@ while [ -n "$1" ]; do
-Q) severity="HARD"; state="CRITICAL"; shift 1;;
-n|--num) num="$2"; shift 2;;
--type) aType="$2"; shift 2;;
--event) aType="EVENT HANDLER"; shift 1;;
--src|--source) aSource="$2"; shift 2;;
--from) fromTime="$2"; shift 2;;
--to) toTime="$2"; shift 2;;