Create a gist now

Instantly share code, notes, and snippets.

Command configuration for the script notify_by_pushover.sh
# Command: Pushover for host
define command {
command_name host-notify-by-pushover
command_line /usr/local/bin/notify_by_pushover.sh -u idXXXXXXXXXXXXXXX -a aXXXXXXXXXXXXXXXX -t "Icinga" -m "$HOSTNAME$: $HOSTSTATE$ ngfy://krizic/$HOSTNAME$"
}
# Command: Pushover for service
define command {
command_name service-notify-by-pushover
command_line /usr/local/bin/notify_by_pushover.sh -u idXXXXXXXXXXXXXXX -a aXXXXXXXXXXXXXXXX -t "Icinga" -m "$HOSTNAME$ – $SERVICEDESC$ : $SERVICESTATE$. Additional info: '$SERVICEOUTPUT$'" -x "$HOSTNAME$" -y "$SERVICEDESC$" -z "krizic"
# ngfy://krizic/$HOSTNAME$/$(echo "$SERVICEDESC$" | sed -e 's/ /+/g')"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment