{"id":30865631,"url":"https://github.com/allenta/zabbix-template-for-varnish-cache","last_synced_at":"2026-02-12T12:49:48.898Z","repository":{"id":67455638,"uuid":"44536042","full_name":"allenta/zabbix-template-for-varnish-cache","owner":"allenta","description":"Zabbix template + script useful to monitor Varnish Enterprise instances","archived":false,"fork":false,"pushed_at":"2025-08-21T10:54:15.000Z","size":475,"stargazers_count":34,"open_issues_count":0,"forks_count":20,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-09-07T21:47:30.641Z","etag":null,"topics":["varnish-cache","zabbix","zabbix-templates"],"latest_commit_sha":null,"homepage":"","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/allenta.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.txt","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-10-19T13:18:29.000Z","updated_at":"2025-08-21T09:40:20.000Z","dependencies_parsed_at":"2023-09-03T17:32:51.510Z","dependency_job_id":"f4b2d517-ca1d-4f0b-bb50-2305c7481463","html_url":"https://github.com/allenta/zabbix-template-for-varnish-cache","commit_stats":null,"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"purl":"pkg:github/allenta/zabbix-template-for-varnish-cache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allenta%2Fzabbix-template-for-varnish-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allenta%2Fzabbix-template-for-varnish-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allenta%2Fzabbix-template-for-varnish-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allenta%2Fzabbix-template-for-varnish-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/allenta","download_url":"https://codeload.github.com/allenta/zabbix-template-for-varnish-cache/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allenta%2Fzabbix-template-for-varnish-cache/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29366370,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T08:51:36.827Z","status":"ssl_error","status_checked_at":"2026-02-12T08:51:26.849Z","response_time":55,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["varnish-cache","zabbix","zabbix-templates"],"created_at":"2025-09-07T21:46:36.504Z","updated_at":"2026-02-12T12:49:48.894Z","avatar_url":"https://github.com/allenta.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"**This is a Zabbix template + script useful to monitor Varnish Enterprise instances**:\n\n1. Copy ``zabbix-varnish-cache.py`` to ``/usr/local/bin/``.\n\n2. Add the ``varnish.discovery`` and ``varnish.stats`` user parameters to Zabbix::\n\n    UserParameter=varnish.discovery[*],sudo /usr/local/bin/zabbix-varnish-cache.py -i '$1' discover $2\n    UserParameter=varnish.stats[*],sudo /usr/local/bin/zabbix-varnish-cache.py -i '$1' stats\n\n   You'll have to grant ``zabbix`` user sudo permissions to execute ``/usr/local/bin/zabbix-varnish-cache.py`` in order to let the script perform ``varnishadm`` commands to discover the current active VCL, discover healthiness of each backend, etc.\n\n   If you'd rather not use sudo, then add ``zabbix`` user to the ``varnish`` group in order for the script to be able to retrieve as much data as possible::\n\n    $ sudo usermod -a --groups varnish zabbix\n\n3. Import the template. You may download the appropriate version from `the releases page \u003chttps://github.com/allenta/zabbix-template-for-varnish-cache/releases/latest/\u003e`_ or generate it using the Jinja2 skeleton::\n\n    $ pip install jinja2-cli\n    $ PYTHONPATH=. jinja2 \\\n        -D version={6.0,6.2,6.4,7.0,7.2,7.4} \\\n        [-D name='Varnish Cache'] \\\n        [-D description=''] \\\n        [-D release='trunk'] \\\n        --extension=extensions.zabbix.ZabbixExtension --strict -o template.xml template-app-varnish-cache.j2\n\n4. Link hosts to the template. Beware you must set a value for the ``{$VARNISH_CACHE.LOCATIONS}`` macro (comma-delimited list of Varnish Enterprise instance names). Usually you should leave its value blank when running a single Varnish Enterprise instance per server. Additional macros and contexts are available for further customizations.\n\nPlease note that **this template + script are exclusively intended for Varnish Enterprise instances**. It does not require many changes to work with Varnish Cache, but it will not work out of the box, especially if not using version 6.0 LTS: different ``varnishstat`` and ``varnishadm`` outputs, different sets of metrics, etc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallenta%2Fzabbix-template-for-varnish-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallenta%2Fzabbix-template-for-varnish-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallenta%2Fzabbix-template-for-varnish-cache/lists"}