O'Reilly logo

Zabbix Network Monitoring Essentials by Andrea Dalle Vacche, Stefano Kewan Lee

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix B. Collecting Squid Metrics

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required