Initial commit

This commit is contained in:
Vassiliy Yegorov
2019-07-13 10:50:20 +07:00
commit 941b13aa49
20 changed files with 1148 additions and 0 deletions

10
scripts/zabscripts/zviewer.sh Executable file
View 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