Linux technical support - [email protected]


Zabbix remote port monitoring

UserParameter=custom.myParam, /local/bin/apache_check.sh

/local/bin/apache_check.sh

#!/bin/bash

res=`nc -z -w2 foo.com 80`

if [ $? == "0" ]
then
echo "0"
else
echo "1"
fi

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>