zabbix-agent-addons/zabbix_conf/squid.conf

53 lines
1.7 KiB
SquidConf
Raw Normal View History

2013-04-11 22:02:59 +02:00
# Squid
# Description: Squid Request Hit Ratio
# Type: Agent or Agent (active)
# Key: squid.request_hit_ratio
# Type of information: Numeric (float)
# Units: %
# Custom multiplier: Do not use
# Store Value: As is
UserParameter=squid.request_hit_ratio,squidclient mgr:info|grep -P '(Hits as % of all requests)|(Request Hit Ratios):'|cut -d':' -f3|cut -d',' -f1|tr -d ' %'
2013-04-11 22:02:59 +02:00
# Description: Squid Byte Hit Ratio
# Type: Agent or Agent (active)
# Key: squid.byte_hit_ratio
# Type of information: Numeric (float)
# Units: %
# Custom multiplier: Do not use
# Store Value: As is
UserParameter=squid.byte_hit_ratio,squidclient mgr:info|grep -P '(Hits as % of bytes sent)|(Byte Hit Ratios):'|cut -d':' -f3|cut -d',' -f1|tr -d ' %'
2013-04-11 22:02:59 +02:00
# Description: Squid Average HTTP request per minute
# Type: Agent or Agent (active)
# Key: squid.avg_http_req_per_min
# Type of information: Numeric (float)
# Units: Req/min
# Custom multiplier: Do not use
# Store Value: As is
UserParameter=squid.avg_http_req_per_min,squidclient mgr:info|grep 'Average HTTP requests per minute since start:'|cut -d':' -f2| tr -d ' \t'
# Description: Squid Disk Cache Size
# Type: Agent or Agent (active)
# Key: squid.cache_size_disk
# Type of information: Numeric (integer 64bits)
# Units: Bytes
# Custom multiplier: 1024
# Store Value: As is
UserParameter=squid.cache_size_disk,squidclient mgr:info|grep 'Storage Swap size:' | awk '{print $4}'
# Description: Squid Memory Cache Size
# Type: Agent or Agent (active)
# Key: squid.cache_size_mem
# Type of information: Numeric (integer 64bits)
# Units: Bytes
# Custom multiplier: 1024
# Store Value: As is
UserParameter=squid.cache_size_mem,squidclient mgr:info|grep 'Storage Mem size:' | awk '{print $4}'