]>
Commit | Line | Data |
---|---|---|
2edbb2d8 IB |
1 | #!/usr/bin/env bash |
2 | ||
2edbb2d8 | 3 | if [ "$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 | 6 | fi |