Skip to content

Files

Latest commit

867e112 · Feb 24, 2022

History

History
This branch is 363 commits behind zabbix/community-templates:main.

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Feb 24, 2022
Nov 25, 2021

App Varnish by Zabbix agent

Description

Simple template for the Varnish cache using results from the varnishstat command. Ensure that "EnableRemoteCommands=1" is set in the host's agent config file.

Overview

Simple template for the Varnish cache using results from the varnishstat command. Ensure that "EnableRemoteCommands=1" is set in the host's agent config file.

Author

Dave Humphrey (dave@uesp.net)

Macros used

Name Description Default Type
{$VARNISH.PROCESS_NAME}

Process name of the Varnish server.

varnishd Text macro
{$VARNISH.RESPONSE_TIME.MAX.WARN}

Max response time before a warning is given.

5 Text macro
{$VARNISH.STATUS.HOST}

IP or hostname of the Varnish server.

127.0.0.1 Text macro
{$VARNISH.STATUS.PORT}

Port of the Varnish server.

80 Text macro

Template links

There are no template links in this template.

Discovery rules

There are no discovery rules in this template.

Items collected

Name Description Type Key and additional info
Varnish: Get status

-

Zabbix agent system.run[varnishstat -j]

Update: 1m

Varnish: Num purges

Number of purge operations executed

Dependent item varnish.objects.purges

Update: 0

Varnish: Backend failed

Backend connections failed

Dependent item varnish.backend.failed

Update: 0

Varnish: Threads limited

Threads hit max

Dependent item varnish.threads.limited

Update: 0

Varnish: Requests per second

-

Dependent item varnish.requests.rate

Update: 0

Varnish: Bytes per second

Calculated as change rate for 'Total bytes' stat.

Dependent item varnish.bytes.rate

Update: 0

Varnish: Client requests

Good client requests received

Dependent item varnish.client.requests

Update: 0

Varnish: Expired objects

Number of expired objects

Dependent item varnish.objects.expired

Update: 0

Varnish: Cache hit-pass

Cache hits for pass

Dependent item varnish.cache.hitpasses

Update: 0

Varnish: Backend unhealthy

Backend connections not attempted

Dependent item varnish.backend.unhealthy

Update: 0

Varnish: Uptime

Service uptime in seconds

Dependent item varnish.uptime

Update: 0

Varnish: Session dropped

Sessions dropped

Dependent item varnish.session.dropped

Update: 0

Varnish: Threads failed

Thread creation failure

Dependent item varnish.threads.failed

Update: 0

Varnish: Total request bytes

Total bytes received

Dependent item varnish.request.bytes

Update: 0

Varnish: Total response bytes

Total bytes sent

Dependent item varnish.response.bytes

Update: 0

Varnish: CPU utilization

Process CPU utilization percentage.

Zabbix agent proc.cpu.util["{$VARNISH.PROCESS_NAME}"]

Update: 1m

Varnish: Cache hits

Cache hits

Dependent item varnish.cache.hits

Update: 0

Varnish: Service response time

-

Zabbix agent net.tcp.service.perf[http,"{$VARNISH.STATUS.HOST}","{$VARNISH.STATUS.PORT}"]

Update: 1m

Varnish: Threads created

Threads created

Dependent item varnish.threads.created

Update: 0

Varnish: Number of processes running

-

Zabbix agent proc.num["{$VARNISH.PROCESS_NAME}"]

Update: 1m

Varnish: Service ping

-

Zabbix agent net.tcp.service[http,"{$VARNISH.STATUS.HOST}","{$VARNISH.STATUS.PORT}"]

Update: 1m

Varnish: Cache hit rate

Average hit rate since the cache was started

Dependent item varnish.hitrate

Update: 0

Varnish: Cache hit rate 5m

Average cache hit rate in the past 5m

Calculated varnish.hitrate5m

Update: 1m

Varnish: Cache misses

Cache misses

Dependent item varnish.cache.misses

Update: 0

Varnish: Backend requests

Backend requests made

Dependent item varnish.backend.requests

Update: 0

Varnish: Backend connections

Backend connections succeeded

Dependent item varnish.backend.connections

Update: 0

Varnish: Memory usage (vsize)

Virtual memory size used by process in bytes.

Zabbix agent proc.mem["{$VARNISH.PROCESS_NAME}",,,,vsize]

Update: 1m

Varnish: Memory usage (rss)

Resident set size memory used by process in bytes.

Zabbix agent proc.mem["{$VARNISH.PROCESS_NAME}",,,,rss]

Update: 1m

Varnish: LRU nuked objects

Number of LRU nuked objects

Dependent item varnish.objects.lrunuked

Update: 0

Triggers

There are no triggers in this template.