Last active
February 7, 2024 22:05
-
-
Save ekristen/31f9beb299aebd8d972e17ee855408da to your computer and use it in GitHub Desktop.
Very Basic Nagios/Icinga Pushover Notification Script
This file contains hidden or 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
#!/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