1 |
vip-ire |
1.1 |
--- smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_squid.userparam_squid 2010-05-03 18:38:42.000000000 +0200 |
2 |
|
|
+++ smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_squid 2010-05-03 18:39:03.000000000 +0200 |
3 |
|
|
@@ -0,0 +1,53 @@ |
4 |
|
|
+# Squid |
5 |
|
|
+ |
6 |
|
|
+# Description: Squid Request Hit Ratio |
7 |
|
|
+# Type: Agent or Agent (active) |
8 |
|
|
+# Key: squid.request_hit_ratio |
9 |
|
|
+# Type of information: Numeric (float) |
10 |
|
|
+# Units: % |
11 |
|
|
+# Custom multiplier: Do not use |
12 |
|
|
+# Store Value: As is |
13 |
|
|
+ |
14 |
|
|
+UserParameter=squid.request_hit_ratio,squidclient mgr:info|grep 'Request Hit Ratios:'|cut -d':' -f3|cut -d',' -f1|tr -d ' %' |
15 |
|
|
+ |
16 |
|
|
+# Description: Squid Byte Hit Ratio |
17 |
|
|
+# Type: Agent or Agent (active) |
18 |
|
|
+# Key: squid.byte_hit_ratio |
19 |
|
|
+# Type of information: Numeric (float) |
20 |
|
|
+# Units: % |
21 |
|
|
+# Custom multiplier: Do not use |
22 |
|
|
+# Store Value: As is |
23 |
|
|
+ |
24 |
|
|
+UserParameter=squid.byte_hit_ratio,squidclient mgr:info|grep 'Byte Hit Ratios:'|cut -d':' -f3|cut -d',' -f1|tr -d ' %' |
25 |
|
|
+ |
26 |
|
|
+# Description: Squid Average HTTP request per minute |
27 |
|
|
+# Type: Agent or Agent (active) |
28 |
|
|
+# Key: squid.avg_http_req_per_min |
29 |
|
|
+# Type of information: Numeric (float) |
30 |
|
|
+# Units: Req/min |
31 |
|
|
+# Custom multiplier: Do not use |
32 |
|
|
+# Store Value: As is |
33 |
|
|
+ |
34 |
|
|
+UserParameter=squid.avg_http_req_per_min,squidclient mgr:info|grep 'Average HTTP requests per minute since start:'|cut -d':' -f2| tr -d ' \t' |
35 |
|
|
+ |
36 |
|
|
+# Description: Squid Disk Cache Size |
37 |
|
|
+# Type: Agent or Agent (active) |
38 |
|
|
+# Key: squid.cache_size_disk |
39 |
|
|
+# Type of information: Numeric (integer 64bits) |
40 |
|
|
+# Units: Bytes |
41 |
|
|
+# Custom multiplier: 1024 |
42 |
|
|
+# Store Value: As is |
43 |
|
|
+ |
44 |
|
|
+UserParameter=squid.cache_size_disk,squidclient mgr:info|grep 'Storage Swap size:' | awk '\{print $4\}' |
45 |
|
|
+ |
46 |
|
|
+# Description: Squid Memory Cache Size |
47 |
|
|
+# Type: Agent or Agent (active) |
48 |
|
|
+# Key: squid.cache_size_mem |
49 |
|
|
+# Type of information: Numeric (integer 64bits) |
50 |
|
|
+# Units: Bytes |
51 |
|
|
+# Custom multiplier: 1024 |
52 |
|
|
+# Store Value: As is |
53 |
|
|
+ |
54 |
|
|
+UserParameter=squid.cache_size_mem,squidclient mgr:info|grep 'Storage Mem size:' | awk '\{print $4\}' |
55 |
|
|
+ |
56 |
|
|
+ |