Skip to content

Instantly share code, notes, and snippets.

@dkrizic
Created January 2, 2014 23:44
Show Gist options
  • Save dkrizic/8229560 to your computer and use it in GitHub Desktop.
Save dkrizic/8229560 to your computer and use it in GitHub Desktop.
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