Files
zabbix-server/scripts/zabscripts/zviewer.sh
Vassiliy Yegorov 941b13aa49 Initial commit
2019-07-13 10:50:20 +07:00

11 lines
390 B
Bash
Executable File

#/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