Squid metric script
Here, you can find the script we discussed in Chapter 3, Monitoring Your Network Services, and create the script in the usual location, that is, at /home/zabbix/bin/squidcheck.sh
.
Create the script with the following content:
cat squidcheck.sh #!/bin/bash VERSION="1.0" function usage() { echo "squidcheck version: $VERSION" echo "usage:" echo " $0 http_requests - Number of HTTP requests received" echo " $0 clients - Number of clients accessing cache" echo " $0 icp_received - Number of ICP messages received" echo " $0 icp_sent - Number of ICP messages sent" echo " $0 icp_queued - Number of queued ICP replies" echo " $0 htcp_received - Number of HTCP messages received" echo " $0 htcp_sent - Number of HTCP messages sent" echo " $0...