/[smecontribs]/rpms/smeserver-zabbix-agent/contribs7/smeserver-zabbix-agent.spec
ViewVC logotype

Contents of /rpms/smeserver-zabbix-agent/contribs7/smeserver-zabbix-agent.spec

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


Revision 1.7 - (show annotations) (download)
Fri Mar 27 12:56:38 2009 UTC (15 years, 7 months ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-zabbix-agent-0_1-26_el4_sme
Changes since 1.6: +8 -2 lines
Add monitoring of MegaRaid based raid array

1 # $Id: smeserver-zabbix-agent.spec,v 1.6 2009/03/24 22:29:10 vip-ire Exp $
2 # Authority: vip-ire
3 # Name: Daniel Berteaud
4
5 %define name smeserver-zabbix-agent
6 %define version 0.1
7 %define release 26
8 Summary: sme server integration of zabbix agent
9 Name: %{name}
10 Version: %{version}
11 Release: %{release}%{?dist}
12 License: GNU GPL version 2
13 URL: http://www.zabbix.com/
14 Group: SMEserver/addon
15 Source: %{name}-%{version}.tar.gz
16 Patch0: smeserver-zabbix-agent-0.1-hostname.patch
17 Patch1: smeserver-zabbix-agent-0.1-template_rename.patch
18 Patch2: smeserver-zabbix-agent-0.1-userparam_ext_ip.patch
19 Patch3: smeserver-zabbix-agent-0.1-userparam_ups.patch
20 Patch4: smeserver-zabbix-agent-0.1-userparam_mysql.patch
21 Patch5: smeserver-zabbix-agent-0.1-userparam_usedMem.patch
22 Patch6: smeserver-zabbix-agent-0.1-userparam_usedMem_brackets.patch
23 Patch7: smeserver-zabbix-agent-0.1-userparam_usedMem_key.patch
24 Patch8: smeserver-zabbix-agent-0.1-userparam_usedMem_Used.patch
25 Patch9: smeserver-zabbix-agent-0.1-userparam_usedMem_Used2.patch
26 Patch10: smeserver-zabbix-agent-0.1-userparam_MemStats.patch
27 Patch11: smeserver-zabbix-agent-0.1-userparam_MemStatsTypo.patch
28 Patch12: smeserver-zabbix-agent-0.1-userparam_Swap.patch
29 Patch13: smeserver-zabbix-agent-0.1-userparam_Swap_key.patch
30 Patch14: smeserver-zabbix-agent-0.1-userparam_removeUselessMemStats.patch
31 Patch15: smeserver-zabbix-agent-0.1-userparam_pusedMem.patch
32 Patch16: smeserver-zabbix-agent-0.1-userparam_upsCharge.patch
33 Patch17: smeserver-zabbix-agent-0.1-disable_passive_mode.patch
34 Patch18: smeserver-zabbix-agent-0.1-mail_in_stats.patch
35 Patch19: smeserver-zabbix-agent-0.1-event_zabbix_agent_update.patch
36 Patch20: smeserver-zabbix-agent-0.1-mail_in_stats_other_denied.patch
37 Patch21: smeserver-zabbix-agent-0.1-fix_expand_sudoers.patch
38 Patch22: smeserver-zabbix-agent-0.1-mail_out_stats.patch
39 Patch23: smeserver-zabbix-agent-0.1-mail_out_stats_typo.patch
40 Patch24: smeserver-zabbix-agent-0.1-mail_out_stats_ignore_local.patch
41 Patch25: smeserver-zabbix-agent-0.1-net_stats.patch
42 Patch26: smeserver-zabbix-agent-0.1-userparam_mysql_size.patch
43 Patch27: smeserver-zabbix-agent-0.1-adjust_masq.patch
44 Patch28: smeserver-zabbix-agent-0.1-timeout_comment.patch
45 Patch29: smeserver-zabbix-agent-0.1-buffers.patch
46 Patch30: smeserver-zabbix-agent-0.1-sudoers_mysql.patch
47 Patch31: smeserver-zabbix-agent-0.1-mysql_size_fixe.patch
48 Patch32: smeserver-zabbix-agent-0.1-userparam_swRaid_status.patch
49 Patch33: smeserver-zabbix-agent-0.1-userparam_comment.patch
50 Patch34: smeserver-zabbix-agent-0.1-userparam_megaraid.patch
51
52 BuildArchitectures: noarch
53 BuildRequires: e-smith-devtools
54 BuildRoot: /var/tmp/%{name}-%{version}
55 Requires: e-smith-release >= 7.0
56 Requires: zabbix-agent
57 Requires: smeserver-remoteuseraccess
58 AutoReqProv: no
59
60 %description
61 smserver integration of zabbix agent.
62 Zabbix is an entreprise-class open source distributed monitoring
63 solution
64
65 %changelog
66 * Fri Mar 27 2009 Daniel B. <daniel@firewall-services.com> 0.1-26
67 - Add raid.mega.status UserParameters to monitor status of MegaRaid based
68 raid array
69
70 * Tue Mar 24 2009 Daniel B. <daniel@firewall-services.com> 0.1-25
71 - Add comments for each UserParameter for configuration on the server side
72 (Type of information, unit, etc...)
73
74 * Tue Mar 24 2009 Daniel B. <daniel@firewall-services.com> 0.1-24
75 - Add raid.sw.status userparameter to report software raid array status
76 - Remove rabs from spec
77 - Permission cleanup on scripts
78
79 * Wed Mar 18 2009 Daniel B. <daniel@firewall-services.com> 0.1-23
80 - Correct mysql.size parameter (sudo -u mysql)
81
82 * Mon Mar 09 2009 Daniel B. <daniel@firewall-services.com> 0.1-22
83 - Fix typo in sudoers template (ZABBIX_AGENT_MYSQL)
84
85 * Mon Mar 02 2009 Daniel B. <daniel@firewall-services.com> 0.1-21
86 - Add smeserver-remoteuseraccess as a dependencie (sudoer templates issue)
87
88 * Mon Mar 02 2009 Daniel B. <daniel@firewall-services.com> 0.1-20
89 - Adjust masq service on zabbix-agent-update event
90 - Add description of Timout directive
91 - Add BufferSend and BufferSize directive to optimize
92 agent <-> server communication
93
94 * Sun Mar 01 2009 Daniel B. <daniel@firewall-services.com> 0.1-19
95 - Add size of mysql data (mysql.size)
96
97 * Fri Feb 20 2009 Daniel B. <daniel@firewall-services.com> 0.1-18
98 - Add stats for InternalInterface and ExternalInterface
99
100 * Tue Feb 17 2009 Daniel B. <daniel@firewall-services.com> 0.1-17
101 - Ignore local delivery from outgoing mail stats
102
103 * Tue Feb 17 2009 Daniel B. <daniel@firewall-services.com> 0.1-16
104 - Fix a typo in mail.out.failure UserParameters
105
106 * Tue Feb 17 2009 Daniel B. <daniel@firewall-services.com> 0.1-15
107 - Add UserParameters for outhoing mails statistics
108
109 * Tue Feb 17 2009 Daniel B. <daniel@firewall-services.com> 0.1-14
110 - add missing other_denied UserParameters for mailStats
111 - Fix expand-template for /etc/sudoers during zabbix-agent-update event
112
113 * Tue Feb 17 2009 Daniel B. <daniel@firewall-services.com> 0.1-13
114 - Add incoming mails statistics
115 - Rename signal-event to zabbix-agent-update (to prevent a conflict on
116 sudoers files which needs to be expanded for server and agent)
117
118 * Wed Feb 11 2009 Daniel B. <daniel@firewall-services.com> 0.1-12
119 - Remove Useless buffers and cache mem
120 - Add vm.memory.size.pused (used memory in %)
121 - Add ups.battery.charge for ups
122 - Added "passive" db parameter
123 - default access is private
124
125 * Tue Feb 10 2009 Daniel B. <daniel@firewall-services.com> 0.1-11
126 - Fix permissions on mysqladmin_status script
127
128 * Tue Feb 10 2009 Daniel B. <daniel@firewall-services.com> 0.1-10
129 - Change used swap key
130
131 * Tue Feb 10 2009 Daniel B. <daniel@firewall-services.com> 0.1-9
132 - Added userparameters for used swap space used in bytes
133
134 * Tue Feb 10 2009 Daniel B. <daniel@firewall-services.com> 0.1-8
135 - Correct a type in memory statistics (for cached memory)
136
137 * Tue Feb 10 2009 Daniel B. <daniel@firewall-services.com> 0.1-7
138 - Report also free, buffers and cached mem so stats are more accurate
139
140 * Tue Feb 10 2009 Daniel B. <daniel@firewall-services.com> 0.1-6
141 - substract cache/buffer from used mem
142
143 * Tue Feb 10 2009 Daniel B. <daniel@firewall-services.com> 0.1-5
144 - Change key name for used memory
145 - Report Used mem instead of total
146
147 * Tue Feb 10 2009 Daniel B. <daniel@firewall-services.com> 0.1-4
148 - Escape brackets in template
149
150 * Tue Feb 10 2009 Daniel B. <daniel@firewall-services.com> 0.1-3
151 - Add UserParameters to repport amount of used memory
152
153 * Mon Feb 9 2009 Daniel B. <daniel@firewall-services.com> 0.1-2
154 - Add UserParameters to monitor real external IP, UPS status,
155 mysql stats
156
157 * Fri Feb 6 2009 Daniel B. <daniel@firewall-services.com> 0.1-1
158 - add Hostname directive in zabbix_agentd.conf
159
160 * Mon Feb 04 2009 Daniel B. <daniel@firewall-services.com> 0.1-0
161 - initial release
162
163 %prep
164 %setup
165 %patch0 -p1
166 %patch1 -p1
167 %patch2 -p1
168 %patch3 -p1
169 %patch4 -p1
170 %patch5 -p1
171 %patch6 -p1
172 %patch7 -p1
173 %patch8 -p1
174 %patch9 -p1
175 %patch10 -p1
176 %patch11 -p1
177 %patch12 -p1
178 %patch13 -p1
179 %patch14 -p1
180 %patch15 -p1
181 %patch16 -p1
182 %patch17 -p1
183 %patch18 -p1
184 %patch19 -p1
185 %patch20 -p1
186 %patch21 -p1
187 %patch22 -p1
188 %patch23 -p1
189 %patch24 -p1
190 %patch25 -p1
191 %patch26 -p1
192 %patch27 -p1
193 %patch28 -p1
194 %patch29 -p1
195 %patch30 -p1
196 %patch31 -p1
197 %patch32 -p1
198 %patch33 -p1
199 %patch34 -p1
200
201 %build
202 perl ./createlinks
203 %{__mkdir_p} root/var/lib/zabbix/tmp/{smelog,qmail}
204
205
206 %install
207 rm -rf $RPM_BUILD_ROOT
208 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
209 rm -f %{name}-%{version}-filelist
210 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
211 --file /var/lib/zabbix/bin/mysqladmin_status 'attr(0750,root,zabbix)' \
212 --file /var/lib/zabbix/bin/logtail.pl 'attr(0755,root,root)' \
213 --file /var/lib/zabbix/bin/parse_mail_in.pl 'attr(0755,root,root)' \
214 --file /var/lib/zabbix/bin/parse_mail_out.pl 'attr(0755,root,root)' \
215 --file /var/lib/zabbix/bin/mail_in.sh 'attr(0755,root,root)' \
216 --file /var/lib/zabbix/bin/mail_out.sh 'attr(0755,root,root)' \
217 --file /var/lib/zabbix/bin/mdstat-parser.pl 'attr(0755,root,root)' \
218 --dir /var/lib/zabbix/tmp 'attr(0755,zabbix,zabbix)' \
219 --dir /var/lib/zabbix/tmp/smelog 'attr(0770,zabbix,smelog)' \
220 --dir /var/lib/zabbix/tmp/qmail 'attr(0770,zabbix,nofiles)' \
221 > %{name}-%{version}-filelist
222
223 %files -f %{name}-%{version}-filelist
224 %defattr(-,root,root)
225
226 %clean
227 rm -rf $RPM_BUILD_ROOT
228
229
230 %postun
231 #uninstall
232 if [ $1 = 0 ] ; then
233 /sbin/e-smith/db configuration setprop zabbix-agent status disabled
234 /etc/init.d/zabbix-agent stop
235 fi
236
237 true

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