varnish / varnish-nagios

Nagios plugin for Varnish
Other
21 stars 9 forks source link

Unknown parameter 'usage' && 'uptime' #6

Closed davidak closed 9 years ago

davidak commented 9 years ago

i have sucessfully built the check on ubuntu 14.04 with varnish 4 from their repo.

# ./check_varnish -p ratio -w 80: -c 60:
VARNISH CRITICAL: Cache hit ratio (51)|ratio=51
# ./check_varnish -p usage
Unknown parameter 'usage'
# ./check_varnish -p uptime
Unknown parameter 'uptime'
denisbr commented 9 years ago

Hi david,

check_varnish relies on the internal varnish counters (that are also used by varnishstat) to get its numbers. In Varnish 4 there is no usage counter anymore. Your best bet is to do varnishstat -l and find the counter you would like to monitor. You might want to monitor the Bytes available counter, but its name depends on your storage pool name, on my setup this works: check_varnish -p SMA.s0.g_space

davidak commented 9 years ago

@denisbr thanks for the info. the output of check_varnish -h should then be updated.

In addition, the following parameters are available:

keith4 commented 9 years ago

"In Varnish 4 there is no usage counter anymore."

From what I see, there's no "usage" counter in Varnish 3(.0.2) either? (uptime works fine though)

./check_varnish -p usage Unknown parameter 'usage'

varnishd -V

varnishd (varnish-3.0.2 revision 55e70a4)