Created
January 2, 2014 23:44
-
-
Save dkrizic/8229560 to your computer and use it in GitHub Desktop.
Command configuration for the script notify_by_pushover.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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