Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Zabbix Network Monitoring Essentials

You're reading from   Zabbix Network Monitoring Essentials Your one-stop solution to efficient network monitoring with Zabbix

Arrow left icon
Product type Paperback
Published in Feb 2015
Publisher
ISBN-13 9781784399764
Length 178 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Toc

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...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image