#!/bin/bash
if type squidclient > /dev/null 2>&1 ; then
PORT_SQUID=$(netstat -ntlp | grep squid | awk '{gsub(".*:","",$4);print $4}')
if [ ! -z "${PORT_SQUID}" ] ; then
echo "<<<check_squid>>>"
squidclient -p ${PORT_SQUID} -T2 mgr:5min | grep =
fi