We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fa0375 commit 7111d0aCopy full SHA for 7111d0a
OSX_sms_ping.sh
@@ -0,0 +1,10 @@
1
+#!/bin/bash
2
+
3
+### ping ###
4
+/sbin/ping -t 1 -q -c 1 server > /dev/null
5
+retval=$?
6
7
+# If value = 2 (fail) [0 is succes] then send msg
8
+if [ $retval -eq 2 ]; then
9
+/usr/local/bin/wget -O - -q "https://smsapi.free-mobile.fr/sendmsg?user=00000000&pass=TOKEN&msg=Hostname%20down%20%21"
10
+fi
0 commit comments