I need to be notified when our proxy server goes down. Currently I have a bash script that tests the proxy functionality:
CHECKRESULT=(curl -s --proxy 4.83.58.205:80 checkip.dyndns.com | awk '{print $6}' | sed 's/<\/body><\/html>\r//g';)
if [ "$CHECKRESULT" != "4.83.58.205" ]
then
echo "FAILED: proxy 4.83.58.205 returned \" $CHECKRESULT\""
FAILEDCOUNT=$(($FAILEDCOUNT+1))
fi
I would like to use Zabbix to run a similar check, but how?