Initial commit
This commit is contained in:
10
scripts/zabscripts/zviewer.sh
Executable file
10
scripts/zabscripts/zviewer.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#/bin/bash
|
||||
if [ $# -eq 0 ] ; then echo 'FAIL: Params not defined.' && echo 'Usage: zbxviewer.sh Token Subject Message' && exit 1 ; fi
|
||||
|
||||
if wget -V >/dev/null 2>&1 ; then
|
||||
#use wget
|
||||
wget -q "https://zbx.vovanys.com/push/sendPush.php?token=$1&title=$2&desc=$3"
|
||||
else
|
||||
#if wget not found, use curl
|
||||
curl -kdG "https://zbx.vovanys.com/push/sendPush.php?token=$1&title=$2&desc=$3"
|
||||
fi
|
Reference in New Issue
Block a user