/[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.3 - (hide annotations) (download)
Mon Mar 9 12:22:12 2009 UTC (15 years, 3 months ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-zabbix-agent-0_1-22_el4_sme
Changes since 1.2: +7 -2 lines
Fix typo in sudoers template

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

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