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

Annotation 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.8 - (hide annotations) (download)
Mon Apr 20 10:51:35 2009 UTC (15 years, 7 months ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-zabbix-agent-0_1-27_el4_sme
Changes since 1.7: +13 -2 lines
See changelog

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

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