/[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.6 - (show annotations) (download)
Tue Mar 24 22:29:10 2009 UTC (15 years, 2 months ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-zabbix-agent-0_1-25_el4_sme
Changes since 1.5: +8 -2 lines
Add description for each UserParameter

1 # $Id: smeserver-zabbix-agent.spec,v 1.5 2009/03/24 17:50:29 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 25
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
51 BuildArchitectures: noarch
52 BuildRequires: e-smith-devtools
53 BuildRoot: /var/tmp/%{name}-%{version}
54 Requires: e-smith-release >= 7.0
55 Requires: zabbix-agent
56 Requires: smeserver-remoteuseraccess
57 AutoReqProv: no
58
59 %description
60 smserver integration of zabbix agent.
61 Zabbix is an entreprise-class open source distributed monitoring
62 solution
63
64 %changelog
65 * Tue Mar 24 2009 Daniel B. <daniel@firewall-services.com> 0.1-25
66 - Add comments for each UserParameter for configuration on the server side
67 (Type of information, unit, etc...)
68
69 * Tue Mar 24 2009 Daniel B. <daniel@firewall-services.com> 0.1-24
70 - Add raid.sw.status userparameter to report software raid array status
71 - Remove rabs from spec
72 - Permission cleanup on scripts
73
74 * Wed Mar 18 2009 Daniel B. <daniel@firewall-services.com> 0.1-23
75 - Correct mysql.size parameter (sudo -u mysql)
76
77 * Mon Mar 09 2009 Daniel B. <daniel@firewall-services.com> 0.1-22
78 - Fix typo in sudoers template (ZABBIX_AGENT_MYSQL)
79
80 * Mon Mar 02 2009 Daniel B. <daniel@firewall-services.com> 0.1-21
81 - Add smeserver-remoteuseraccess as a dependencie (sudoer templates issue)
82
83 * Mon Mar 02 2009 Daniel B. <daniel@firewall-services.com> 0.1-20
84 - Adjust masq service on zabbix-agent-update event
85 - Add description of Timout directive
86 - Add BufferSend and BufferSize directive to optimize
87 agent <-> server communication
88
89 * Sun Mar 01 2009 Daniel B. <daniel@firewall-services.com> 0.1-19
90 - Add size of mysql data (mysql.size)
91
92 * Fri Feb 20 2009 Daniel B. <daniel@firewall-services.com> 0.1-18
93 - Add stats for InternalInterface and ExternalInterface
94
95 * Tue Feb 17 2009 Daniel B. <daniel@firewall-services.com> 0.1-17
96 - Ignore local delivery from outgoing mail stats
97
98 * Tue Feb 17 2009 Daniel B. <daniel@firewall-services.com> 0.1-16
99 - Fix a typo in mail.out.failure UserParameters
100
101 * Tue Feb 17 2009 Daniel B. <daniel@firewall-services.com> 0.1-15
102 - Add UserParameters for outhoing mails statistics
103
104 * Tue Feb 17 2009 Daniel B. <daniel@firewall-services.com> 0.1-14
105 - add missing other_denied UserParameters for mailStats
106 - Fix expand-template for /etc/sudoers during zabbix-agent-update event
107
108 * Tue Feb 17 2009 Daniel B. <daniel@firewall-services.com> 0.1-13
109 - Add incoming mails statistics
110 - Rename signal-event to zabbix-agent-update (to prevent a conflict on
111 sudoers files which needs to be expanded for server and agent)
112
113 * Wed Feb 11 2009 Daniel B. <daniel@firewall-services.com> 0.1-12
114 - Remove Useless buffers and cache mem
115 - Add vm.memory.size.pused (used memory in %)
116 - Add ups.battery.charge for ups
117 - Added "passive" db parameter
118 - default access is private
119
120 * Tue Feb 10 2009 Daniel B. <daniel@firewall-services.com> 0.1-11
121 - Fix permissions on mysqladmin_status script
122
123 * Tue Feb 10 2009 Daniel B. <daniel@firewall-services.com> 0.1-10
124 - Change used swap key
125
126 * Tue Feb 10 2009 Daniel B. <daniel@firewall-services.com> 0.1-9
127 - Added userparameters for used swap space used in bytes
128
129 * Tue Feb 10 2009 Daniel B. <daniel@firewall-services.com> 0.1-8
130 - Correct a type in memory statistics (for cached memory)
131
132 * Tue Feb 10 2009 Daniel B. <daniel@firewall-services.com> 0.1-7
133 - Report also free, buffers and cached mem so stats are more accurate
134
135 * Tue Feb 10 2009 Daniel B. <daniel@firewall-services.com> 0.1-6
136 - substract cache/buffer from used mem
137
138 * Tue Feb 10 2009 Daniel B. <daniel@firewall-services.com> 0.1-5
139 - Change key name for used memory
140 - Report Used mem instead of total
141
142 * Tue Feb 10 2009 Daniel B. <daniel@firewall-services.com> 0.1-4
143 - Escape brackets in template
144
145 * Tue Feb 10 2009 Daniel B. <daniel@firewall-services.com> 0.1-3
146 - Add UserParameters to repport amount of used memory
147
148 * Mon Feb 9 2009 Daniel B. <daniel@firewall-services.com> 0.1-2
149 - Add UserParameters to monitor real external IP, UPS status,
150 mysql stats
151
152 * Fri Feb 6 2009 Daniel B. <daniel@firewall-services.com> 0.1-1
153 - add Hostname directive in zabbix_agentd.conf
154
155 * Mon Feb 04 2009 Daniel B. <daniel@firewall-services.com> 0.1-0
156 - initial release
157
158 %prep
159 %setup
160 %patch0 -p1
161 %patch1 -p1
162 %patch2 -p1
163 %patch3 -p1
164 %patch4 -p1
165 %patch5 -p1
166 %patch6 -p1
167 %patch7 -p1
168 %patch8 -p1
169 %patch9 -p1
170 %patch10 -p1
171 %patch11 -p1
172 %patch12 -p1
173 %patch13 -p1
174 %patch14 -p1
175 %patch15 -p1
176 %patch16 -p1
177 %patch17 -p1
178 %patch18 -p1
179 %patch19 -p1
180 %patch20 -p1
181 %patch21 -p1
182 %patch22 -p1
183 %patch23 -p1
184 %patch24 -p1
185 %patch25 -p1
186 %patch26 -p1
187 %patch27 -p1
188 %patch28 -p1
189 %patch29 -p1
190 %patch30 -p1
191 %patch31 -p1
192 %patch32 -p1
193 %patch33 -p1
194
195 %build
196 perl ./createlinks
197 %{__mkdir_p} root/var/lib/zabbix/tmp/{smelog,qmail}
198
199
200 %install
201 rm -rf $RPM_BUILD_ROOT
202 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
203 rm -f %{name}-%{version}-filelist
204 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
205 --file /var/lib/zabbix/bin/mysqladmin_status 'attr(0750,root,zabbix)' \
206 --file /var/lib/zabbix/bin/logtail.pl 'attr(0755,root,root)' \
207 --file /var/lib/zabbix/bin/parse_mail_in.pl 'attr(0755,root,root)' \
208 --file /var/lib/zabbix/bin/parse_mail_out.pl 'attr(0755,root,root)' \
209 --file /var/lib/zabbix/bin/mail_in.sh 'attr(0755,root,root)' \
210 --file /var/lib/zabbix/bin/mail_out.sh 'attr(0755,root,root)' \
211 --file /var/lib/zabbix/bin/mdstat-parser.pl 'attr(0755,root,root)' \
212 --dir /var/lib/zabbix/tmp 'attr(0755,zabbix,zabbix)' \
213 --dir /var/lib/zabbix/tmp/smelog 'attr(0770,zabbix,smelog)' \
214 --dir /var/lib/zabbix/tmp/qmail 'attr(0770,zabbix,nofiles)' \
215 > %{name}-%{version}-filelist
216
217 %files -f %{name}-%{version}-filelist
218 %defattr(-,root,root)
219
220 %clean
221 rm -rf $RPM_BUILD_ROOT
222
223
224 %postun
225 #uninstall
226 if [ $1 = 0 ] ; then
227 /sbin/e-smith/db configuration setprop zabbix-agent status disabled
228 /etc/init.d/zabbix-agent stop
229 fi
230
231 true

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