]> git.immae.eu Git - perso/Immae/Config/Nix.git/blame - modules/private/monitoring/plugins/notify_eban_url
Adjustments for monitoring
[perso/Immae/Config/Nix.git] / modules / private / monitoring / plugins / notify_eban_url
CommitLineData
2edbb2d8
IB
1#!/usr/bin/env bash
2
2edbb2d8 3if [ "$SERVICESTATE" = "CRITICAL" -o "$SERVICESTATE" = "UNKNOWN" -o "$HOSTSTATE" = "DOWN" -o "$HOSTSTATE" = "UNREACHABLE" ]; then
c41d0de8
IB
4 MESSAGE="$STATUS_NAME seems down!"
5 curl -X GET -G --data-urlencode "user=$USER" --data-urlencode "pass=$PASSWORD" --data-urlencode "msg=$MESSAGE" https://smsapi.free-mobile.fr/sendmsg
2edbb2d8 6fi