/[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.2 - (show annotations) (download)
Mon Mar 2 23:53:30 2009 UTC (15 years, 8 months ago) by slords
Branch: MAIN
CVS Tags: smeserver-zabbix-agent-0_1-21_el4_sme
Changes since 1.1: +4 -2 lines
Spec updates

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

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