Skip to content

Instantly share code, notes, and snippets.

@ekristen
Last active February 7, 2024 22:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ekristen/31f9beb299aebd8d972e17ee855408da to your computer and use it in GitHub Desktop.
Save ekristen/31f9beb299aebd8d972e17ee855408da to your computer and use it in GitHub Desktop.
Very Basic Nagios/Icinga Pushover Notification Script
#!/bin/sh
PUSHOVERUSER=$1
PUSHOVERTOKEN=$2
PUSHOVERTITLE=$3
PUSHOVERMESSAGE=$4
curl -XPOST \
-F "token=${PUSHOVERTOKEN}" \
-F "user=${PUSHOVERUSER}" \
-F "title=${PUSHOVERTITLE}" \
-F "message=${PUSHOVERMESSAGE}" \
https://api.pushover.net/1/messages
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment