/[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.1 - (show annotations) (download)
Mon Mar 2 23:28:57 2009 UTC (15 years, 3 months ago) by slords
Branch: MAIN
Initial import of smeserver-zabbix-agent

1 %define name smeserver-zabbix-agent
2 %define version 0.1
3 %define release 21
4 Summary: sme server integration of zabbix agent
5 Name: %{name}
6 Version: %{version}
7 Release: %{release}%{?dist}
8 Distribution: SME Server
9 License: GNU GPL version 2
10 URL: http://www.zabbix.com/
11 Group: SMEserver/addon
12 Source: %{name}-%{version}.tar.gz
13 Patch0: smeserver-zabbix-agent-0.1-hostname.patch
14 Patch1: smeserver-zabbix-agent-0.1-template_rename.patch
15 Patch2: smeserver-zabbix-agent-0.1-userparam_ext_ip.patch
16 Patch3: smeserver-zabbix-agent-0.1-userparam_ups.patch
17 Patch4: smeserver-zabbix-agent-0.1-userparam_mysql.patch
18 Patch5: smeserver-zabbix-agent-0.1-userparam_usedMem.patch
19 Patch6: smeserver-zabbix-agent-0.1-userparam_usedMem_brackets.patch
20 Patch7: smeserver-zabbix-agent-0.1-userparam_usedMem_key.patch
21 Patch8: smeserver-zabbix-agent-0.1-userparam_usedMem_Used.patch
22 Patch9: smeserver-zabbix-agent-0.1-userparam_usedMem_Used2.patch
23 Patch10: smeserver-zabbix-agent-0.1-userparam_MemStats.patch
24 Patch11: smeserver-zabbix-agent-0.1-userparam_MemStatsTypo.patch
25 Patch12: smeserver-zabbix-agent-0.1-userparam_Swap.patch
26 Patch13: smeserver-zabbix-agent-0.1-userparam_Swap_key.patch
27 Patch14: smeserver-zabbix-agent-0.1-userparam_removeUselessMemStats.patch
28 Patch15: smeserver-zabbix-agent-0.1-userparam_pusedMem.patch
29 Patch16: smeserver-zabbix-agent-0.1-userparam_upsCharge.patch
30 Patch17: smeserver-zabbix-agent-0.1-disable_passive_mode.patch
31 Patch18: smeserver-zabbix-agent-0.1-mail_in_stats.patch
32 Patch19: smeserver-zabbix-agent-0.1-event_zabbix_agent_update.patch
33 Patch20: smeserver-zabbix-agent-0.1-mail_in_stats_other_denied.patch
34 Patch21: smeserver-zabbix-agent-0.1-fix_expand_sudoers.patch
35 Patch22: smeserver-zabbix-agent-0.1-mail_out_stats.patch
36 Patch23: smeserver-zabbix-agent-0.1-mail_out_stats_typo.patch
37 Patch24: smeserver-zabbix-agent-0.1-mail_out_stats_ignore_local.patch
38 Patch25: smeserver-zabbix-agent-0.1-net_stats.patch
39 Patch26: smeserver-zabbix-agent-0.1-userparam_mysql_size.patch
40 Patch27: smeserver-zabbix-agent-0.1-adjust_masq.patch
41 Patch28: smeserver-zabbix-agent-0.1-timeout_comment.patch
42 Patch29: smeserver-zabbix-agent-0.1-buffers.patch
43
44 Packager: Daniel B. <daniel@firewall-services.com>
45 BuildArchitectures: noarch
46 BuildRequires: e-smith-devtools
47 BuildRoot: /var/tmp/%{name}-%{version}
48 Requires: e-smith-release >= 7.0
49 Requires: zabbix-agent
50 Requires: smeserver-remoteuseraccess
51 AutoReqProv: no
52
53 %description
54 smserver integration of zabbix agent.
55 Zabbix is an entreprise-class open source distributed monitoring
56 solution
57
58 %changelog
59 * Mon Mar 02 2009 Daniel B. <daniel@firewall-services.com> 0.1-21
60 - Add smeserver-remoteuseraccess as a dependencie (sudoer templates issue)
61
62 * Mon Mar 02 2009 Daniel B. <daniel@firewall-services.com> 0.1-20
63 - Adjust masq service on zabbix-agent-update event
64 - Add description of Timout directive
65 - Add BufferSend and BufferSize directive to optimize
66 agent <-> server communication
67
68 * Sun Mar 01 2009 Daniel B. <daniel@firewall-services.com> 0.1-19
69 - Add size of mysql data (mysql.size)
70
71 * Fri Feb 20 2009 Daniel B. <daniel@firewall-services.com> 0.1-18
72 - Add stats for InternalInterface and ExternalInterface
73
74 * Tue Feb 17 2009 Daniel B. <daniel@firewall-services.com> 0.1-17
75 - Ignore local delivery from outgoing mail stats
76
77 * Tue Feb 17 2009 Daniel B. <daniel@firewall-services.com> 0.1-16
78 - Fix a type in mail.out.failure UserParameters
79
80 * Tue Feb 17 2009 Daniel B. <daniel@firewall-services.com> 0.1-15
81 - Add UserParameters for outhoing mails statistics
82
83 * Tue Feb 17 2009 Daniel B. <daniel@firewall-services.com> 0.1-14
84 - add missing other_denied UserParameters for mailStats
85 - Fix expand-template for /etc/sudoers during zabbix-agent-update event
86
87 * Tue Feb 17 2009 Daniel B. <daniel@firewall-services.com> 0.1-13
88 - Add incoming mails statistics
89 - Rename signal-event to zabbix-agent-update (to prevent a conflict on
90 sudoers files which needs to be expanded for server and agent)
91
92 * Wed Feb 11 2009 Daniel B. <daniel@firewall-services.com> 0.1-12
93 - Remove Useless buffers and cache mem
94 - Add vm.memory.size.pused (used memory in %)
95 - Add ups.battery.charge for ups
96 - Added "passive" db parameter
97 - default access is private
98
99 * Tue Feb 10 2009 Daniel B. <daniel@firewall-services.com> 0.1-11
100 - Fix permissions on mysqladmin_status script
101
102 * Tue Feb 10 2009 Daniel B. <daniel@firewall-services.com> 0.1-10
103 - Change used swap key
104
105 * Tue Feb 10 2009 Daniel B. <daniel@firewall-services.com> 0.1-9
106 - Added userparameters for used swap space used in bytes
107
108 * Tue Feb 10 2009 Daniel B. <daniel@firewall-services.com> 0.1-8
109 - Correct a type in memory statistics (for cached memory)
110
111 * Tue Feb 10 2009 Daniel B. <daniel@firewall-services.com> 0.1-7
112 - Report also free, buffers and cached mem so stats are more accurate
113
114 * Tue Feb 10 2009 Daniel B. <daniel@firewall-services.com> 0.1-6
115 - substract cache/buffer from used mem
116
117 * Tue Feb 10 2009 Daniel B. <daniel@firewall-services.com> 0.1-5
118 - Change key name for used memory
119 - Report Used mem instead of total
120
121 * Tue Feb 10 2009 Daniel B. <daniel@firewall-services.com> 0.1-4
122 - Escape brackets in template
123
124 * Tue Feb 10 2009 Daniel B. <daniel@firewall-services.com> 0.1-3
125 - Add UserParameters to repport amount of used memory
126
127 * Mon Feb 9 2009 Daniel B. <daniel@firewall-services.com> 0.1-2
128 - Add UserParameters to monitor real external IP, UPS status,
129 mysql stats
130
131 * Fri Feb 6 2009 Daniel B. <daniel@firewall-services.com> 0.1-1
132 - add Hostname directive in zabbix_agentd.conf
133
134 * Mon Feb 04 2009 Daniel B. <daniel@firewall-services.com> 0.1-0
135 - initial release
136
137 %prep
138 %setup
139 %patch0 -p1
140 %patch1 -p1
141 %patch2 -p1
142 %patch3 -p1
143 %patch4 -p1
144 %patch5 -p1
145 %patch6 -p1
146 %patch7 -p1
147 %patch8 -p1
148 %patch9 -p1
149 %patch10 -p1
150 %patch11 -p1
151 %patch12 -p1
152 %patch13 -p1
153 %patch14 -p1
154 %patch15 -p1
155 %patch16 -p1
156 %patch17 -p1
157 %patch18 -p1
158 %patch19 -p1
159 %patch20 -p1
160 %patch21 -p1
161 %patch22 -p1
162 %patch23 -p1
163 %patch24 -p1
164 %patch25 -p1
165 %patch26 -p1
166 %patch27 -p1
167 %patch28 -p1
168 %patch29 -p1
169
170 %build
171 perl ./createlinks
172 %{__mkdir_p} root/var/lib/zabbix/tmp/{smelog,qmail}
173
174
175 %install
176 rm -rf $RPM_BUILD_ROOT
177 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
178 rm -f %{name}-%{version}-filelist
179 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
180 --file /var/lib/zabbix/bin/mysqladmin_status 'attr(0750,root,zabbix)' \
181 --file /var/lib/zabbix/bin/logtail.pl 'attr(0755,root,zabbix)' \
182 --file /var/lib/zabbix/bin/parse_mail_in.pl 'attr(0755,root,zabbix)' \
183 --file /var/lib/zabbix/bin/parse_mail_out.pl 'attr(0755,root,zabbix)' \
184 --file /var/lib/zabbix/bin/mail_in.sh 'attr(0755,root,zabbix)' \
185 --file /var/lib/zabbix/bin/mail_out.sh 'attr(0755,root,zabbix)' \
186 --dir /var/lib/zabbix/tmp 'attr(0755,zabbix,zabbix)' \
187 --dir /var/lib/zabbix/tmp/smelog 'attr(0770,zabbix,smelog)' \
188 --dir /var/lib/zabbix/tmp/qmail 'attr(0770,zabbix,nofiles)' \
189 > %{name}-%{version}-filelist
190
191 %files -f %{name}-%{version}-filelist
192 %defattr(-,root,root)
193
194 %clean
195 rm -rf $RPM_BUILD_ROOT
196
197
198 %postun
199 #uninstall
200 if [ $1 = 0 ] ; then
201 /sbin/e-smith/db configuration setprop zabbix-agent status disabled
202 /etc/init.d/zabbix-agent stop
203 fi
204
205 true

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