/check_varnish

nagios plugin for Varnish 4+

Primary LanguagePythonApache License 2.0Apache-2.0

check_varnish

Nagios plugin for Varnish 4+ Requires Python 2.7 with nagiosplugin and argparse python modules

Installation

  • Install dependencies:
    • yum install python-pip or apt-get install python-pip
    • pip install argparse nagiosplugin
  • Enjoy!
usage: check_varnish.py [-h] [-m METRIC] [-p PATH] [-w RANGE] [-c RANGE] [-l]
                        [-V]

Check Varnish 4 status using the varnishstat utility. Current version checks
only one metric with optional warning and critical ranges.

optional arguments:
  -h, --help            show this help message and exit
  -m METRIC, --metric METRIC
                        name of the metric to check
  -p PATH, --path PATH  path to varnishstat binary
  -w RANGE, --warning RANGE
                        (supports nagios-style ranges)
  -c RANGE, --critical RANGE
                        (supports nagios-style ranges)
  -l, --list            list all known metrics
  -V, --version         show program's version number and exit