/[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.5 - (hide annotations) (download)
Tue Mar 24 17:50:29 2009 UTC (15 years, 8 months ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-zabbix-agent-0_1-24_el4_sme
Changes since 1.4: +48 -40 lines
sw Raid status userparameter and script

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

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