/[smecontribs]/rpms/smeserver-zabbix-agent/contribs9/smeserver-zabbix-agent-0.1-userparam_comment.patch
ViewVC logotype

Annotation of /rpms/smeserver-zabbix-agent/contribs9/smeserver-zabbix-agent-0.1-userparam_comment.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Tue Feb 9 23:18:27 2016 UTC (8 years, 3 months ago) by stephdl
Branch: MAIN
CVS Tags: smeserver-zabbix-agent-0_1-53_el6_sme, smeserver-zabbix-agent--, HEAD
* Wed Feb 10 stephane de Labrusse <stephdl@de-labrusse.fr> - 0.1-53.sme
- New rpm for sme9

1 stephdl 1.1 --- smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_ups.userparam_comment 2009-03-24 22:39:23.000000000 +0100
2     +++ smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_ups 2009-03-24 23:23:40.000000000 +0100
3     @@ -1,6 +1,33 @@
4     # Monitor UPS status
5     +
6     +# Description: Nut UPS load
7     +# Type: Agent or Agent (active)
8     +# Key: ups.load
9     +# Type of information: Numeric (float)
10     +# Units: %
11     +# Multiplier: Do not use
12     +# Store Value: As is
13     UserParameter=ups.load,upsc UPS@localhost ups.load
14     +
15     +# Description: Nut UPS Battery Charge
16     +# Type: Agent or Agent (active)
17     +# Key: ups.battery.charge
18     +# Type of information: Numeric (float)
19     +# Units: %
20     +# Multiplier: Do not use
21     +# Store Value: As is
22     UserParameter=ups.battery.charge,upsc UPS@localhost battery.charge
23     +
24     +# Description: Nut UPS Status
25     +# Type: Agent or Agent (active)
26     +# Key: ups.status
27     +# Type of information: Character
28     +# Show Value: As is (you can also define a dictionnary OL=>On Line etc...)
29     UserParameter=ups.status,upsc UPS@localhost ups.status
30     +
31     +# Description: Nut UPS Model
32     +# Type: Agent or Agent (active)
33     +# Key: ups.model
34     +# Type of information: Text
35     UserParameter=ups.model,upsc UPS@localhost ups.model
36    
37     --- smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_swap.userparam_comment 2009-03-24 22:39:23.000000000 +0100
38     +++ smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_swap 2009-03-24 23:15:32.000000000 +0100
39     @@ -1,3 +1,12 @@
40     # Amount of used swap in bytes
41     +
42     +# Description: Used swap space
43     +# Type: Agent or Agent (active)
44     +# Key: system.swap.size.used
45     +# Type of information: Numeric (integer 64bit)
46     +# Units: B
47     +# Multiplier: do not use
48     +# Store Value: As is
49     +# Show Value: As is
50     UserParameter=system.swap.size.used,free -b | grep Swap | awk '\{print $3\}'
51    
52     --- smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_mailIn.userparam_comment 2009-03-24 22:39:23.000000000 +0100
53     +++ smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_mailIn 2009-03-24 22:52:11.000000000 +0100
54     @@ -1,5 +1,20 @@
55     # Incomming mails statistics
56    
57     +# Description: Incoming Mail <key>
58     +# Type: Agent or Agent (active)
59     +# Key: mail.in.<key> (for example mail.in.denied.dnsbl)
60     +# Type of information: Numeric (integer 64bit)
61     +# Units: mails/h
62     +# Use multiplier: Custom multiplier
63     +# Custom multiplier: 6
64     +# Update interval: 600
65     +# Store Value: As is
66     +# Show Value: As is
67     +
68     +# Choosing 6 as custom muliplier and 600 as interval allow you to get stats in mails/h
69     +# In fact, each key retrieve the number of emails since the last run. If you retrieve each value every 600 sec
70     +# (10 Min), you'll have stats in mails/10min. If you multiply this by 6 (6x10min), you'll get it in mails/h
71     +
72     UserParameter=mail.in.denied.dnsbl,/var/lib/zabbix/bin/mail_in.sh dnsbl
73     UserParameter=mail.in.denied.rhsbl,/var/lib/zabbix/bin/mail_in.sh rhsbl
74     UserParameter=mail.in.denied.clamav,/var/lib/zabbix/bin/mail_in.sh clamav
75     --- smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_memory.userparam_comment 2009-03-24 22:39:23.000000000 +0100
76     +++ smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_memory 2009-03-24 23:06:14.000000000 +0100
77     @@ -1,6 +1,24 @@
78     # Amount of used memory (the agent lacks this stats)
79     +
80     +# Description: Used Memory
81     +# Type: Agent or Agent (active)
82     +# Key: vm.memory.size.used
83     +# Type of information: Numeric (integer 64bit)
84     +# Units: B
85     +# Use multiplier: do not use
86     +# Store Value: As is
87     +# Show Value: As is
88     UserParameter=vm.memory.size.used,free -b | grep 'buffers/cache' | awk '\{print $3\}'
89    
90     # Amount of used memory in % (the agent lacks this stats)
91     +
92     +# Description: Used Memory in %
93     +# Type: Agent or Agent (active)
94     +# Key: vm.memory.size.pused
95     +# Type of information: Numeric (integer 64bit)
96     +# Units: %
97     +# Use multiplier: do not use
98     +# Store Value: As is
99     +# Show Value: As is
100     UserParameter=vm.memory.size.pused,echo $(($(free -b | grep 'buffers/cache' | awk '\{print $3\}')*100/$(free -b | grep 'Mem' | awk '\{print $2\}')))
101    
102     --- smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_netStats.userparam_comment 2009-03-24 22:39:23.000000000 +0100
103     +++ smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_netStats 2009-03-24 23:13:24.000000000 +0100
104     @@ -16,14 +16,44 @@
105    
106     $OUT .=<<"HERE";
107    
108     +# Description: In Internal
109     +# Type: Agent or Agent (active)
110     +# Key: net.if.in.internal
111     +# Type of information: Numeric (float)
112     +# Units: b/s
113     +# Custom multiplier: 8 (if you want the value in bits/s instead of Bytes/s)
114     +# Store Value: Delta (speed per second)
115     UserParameter=net.if.in.internal,cat /proc/net/dev | grep $internal | cut -d":" -f2 | awk '{print \$1}'
116     +
117     +# Description: Out Internal
118     +# Type: Agent or Agent (active)
119     +# Key: net.if.out.internal
120     +# Type of information: Numeric (float)
121     +# Units: b/s
122     +# Custom multiplier: 8 (if you want the value in bits/s instead of Bytes/s)
123     +# Store Value: Delta (speed per second)
124     UserParameter=net.if.out.internal,cat /proc/net/dev | grep $internal | cut -d":" -f2 | awk '{print \$9}'
125    
126     HERE
127    
128     if (($SystemMode || 'serveronly') ne 'serveronly'){
129     $OUT .=<<"HERE";
130     +# Description: In External
131     +# Type: Agent or Agent (active)
132     +# Key: net.if.in.external
133     +# Type of information: Numeric (float)
134     +# Units: b/s
135     +# Custom multiplier: 8 (if you want the value in bits/s instead of Bytes/s)
136     +# Store Value: Delta (speed per second)
137     UserParameter=net.if.in.external,cat /proc/net/dev | grep $external | cut -d":" -f2 | awk '{print \$1}'
138     +
139     +# Description: Out External
140     +# Type: Agent or Agent (active)
141     +# Key: net.if.out.external
142     +# Type of information: Numeric (float)
143     +# Units: b/s
144     +# Custom multiplier: 8 (if you want the value in bits/s instead of Bytes/s)
145     +# Store Value: Delta (speed per second)
146     UserParameter=net.if.out.external,cat /proc/net/dev | grep $external | cut -d":" -f2 | awk '{print \$9}'
147    
148     HERE
149     --- smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_mysql.userparam_comment 2009-03-24 22:39:23.000000000 +0100
150     +++ smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_mysql 2009-03-24 23:08:58.000000000 +0100
151     @@ -1,10 +1,16 @@
152    
153     # Some stats about MySQL
154     +
155     +# Description: MySQL <key>
156     +# Type: Agent or Agent (active)
157     +# Type of information: Numeric (float)
158     +# Unit: <depend on the key> (for example, qps)
159     +# Use multiplier: do not use
160     +# Store Value: As is
161     UserParameter=mysql.uptime,/var/lib/zabbix/bin/mysqladmin_status | cut -d" " -f2
162     UserParameter=mysql.threads,/var/lib/zabbix/bin/mysqladmin_status | cut -d" " -f5
163     UserParameter=mysql.questions,/var/lib/zabbix/bin/mysqladmin_status | cut -d" " -f8
164     UserParameter=mysql.slowqueries,/var/lib/zabbix/bin/mysqladmin_status | cut -d" " -f12
165     UserParameter=mysql.qps,/var/lib/zabbix/bin/mysqladmin_status | cut -d" " -f29
166     -UserParameter=mysql.qps,/var/lib/zabbix/bin/mysqladmin_status | cut -d" " -f29
167     UserParameter=mysql.size,/usr/bin/sudo -u mysql /usr/bin/du -s /var/lib/mysql | awk '\{print $1\}'
168    
169     --- smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_extIP.userparam_comment 2009-03-24 22:39:22.000000000 +0100
170     +++ smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_extIP 2009-03-24 22:44:35.000000000 +0100
171     @@ -1,4 +1,9 @@
172    
173     -# Retrieve rela external IP
174     +# Retrieve real external IP
175     +# Description: Ext IP
176     +# Type: Agent or Agent (active)
177     +# Key: ip.external
178     +# Type of information: Character
179     +# Show Value: As is
180     UserParameter=ip.external,/usr/bin/curl --connect-timeout 5 -s -o - -k "http://www.wimip.fr/?t="
181    
182     --- smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_swRaid.userparam_comment 2009-03-24 22:39:23.000000000 +0100
183     +++ smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_swRaid 2009-03-24 23:19:24.000000000 +0100
184     @@ -1,6 +1,18 @@
185    
186     # Report status of every Raid Array (parsing /proc/mdtstat)
187     -# Just add a key named raid.sw.status, type caracter. Then A new trigger with an expression like that:
188     -# \{hostname:raid.sw.status.str(CRITICAL)\}=1
189     +
190     +# Description: Software Raid Status
191     +# Type: Agent or Agent (active)
192     +# Key: raid.sw.status
193     +# Type of Information: Character
194     +# Show Value: As is
195     +
196     +# The value reported is like:
197     +# OK - md3 [UU] has 2 of 2 devices active (active=sdc1,sdd1 failed=none spare=none)
198     +# CRITICAL - md2 [_U] has 1 of 2 devices active (active=sdb2 failed=sda2 spare=none)
199     +# OK - md1 [UU] has 2 of 2 devices active (active=sda1,sdb1 failed=none spare=none)
200     +
201     +# Tips: You can add a simple trigger on this check like:
202     +# \{ hostname:raid.sw.status.str( CRITICAL ) \}=1
203     UserParameter=raid.sw.status,/var/lib/zabbix/bin/mdstat-parser.pl
204    
205     --- smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_mailOut.userparam_comment 2009-03-24 22:39:23.000000000 +0100
206     +++ smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_mailOut 2009-03-24 22:53:18.000000000 +0100
207     @@ -1,5 +1,20 @@
208     # Outgoing mails statistics
209    
210     +# Description: Incoming Mail <key>
211     +# Type: Agent or Agent (active)
212     +# Key: mail.out.<key> (for example mail.out.total)
213     +# Type of information: Numeric (integer 64bit)
214     +# Units: mails/h
215     +# Use multiplier: Custom multiplier
216     +# Custom multiplier: 6
217     +# Update interval: 600
218     +# Store Value: As is
219     +# Show Value: As is
220     +
221     +# Choosing 6 as custom muliplier and 600 as interval allow you to get stats in mails/h
222     +# In fact, each key retrieve the number of emails since the last run. If you retrieve each value every 600 sec
223     +# (10 Min), you'll have stats in mails/10min. If you multiply this by 6 (6x10min), you'll get it in mails/h
224     +
225     UserParameter=mail.out.total,/var/lib/zabbix/bin/mail_out.sh total
226     UserParameter=mail.out.success,/var/lib/zabbix/bin/mail_out.sh success
227     UserParameter=mail.out.deferral,/var/lib/zabbix/bin/mail_out.sh deferral

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed