/[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.4 - (show annotations) (download)
Wed Mar 18 12:09:21 2009 UTC (15 years, 7 months ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-zabbix-agent-0_1-23_el4_sme
Changes since 1.3: +7 -2 lines
Correct mysql.size command

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

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