/[smecontribs]/rpms/smeserver-zabbix-agent/contribs10/smeserver-zabbix-agent.spec
ViewVC logotype

Contents of /rpms/smeserver-zabbix-agent/contribs10/smeserver-zabbix-agent.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.5 - (show annotations) (download)
Mon Aug 1 18:40:03 2022 UTC (2 years, 3 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-zabbix-agent-0_4_8-3_el7_sme, HEAD
Changes since 1.4: +6 -2 lines
* Mon Aug 01 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.4.8-3.sme
- add to core backup [SME: 12032]

1 Summary: sme server integration of zabbix agent
2 Name: smeserver-zabbix-agent
3 Version: 0.4.8
4 Release: 3%{?dist}
5 License: GNU GPL version 2
6 URL: http://www.zabbix.com/
7 Group: SMEserver/addon
8 Source: %{name}-%{version}.tar.gz
9 Patch0: smeserver-zabbix-agent-0.4.8-bz11515-sme10.patch
10 Patch1: smeserver-zabbix-agent-0.4.8-bz12032-backup.patch
11
12 BuildArchitectures: noarch
13 BuildRequires: e-smith-devtools
14 BuildRoot: /var/tmp/%{name}-%{version}
15 Requires: e-smith-release >= 7.0
16 Requires: zabbix-agent => 2.0.0
17 Requires: zabbix-agent-addons => 0.1.15
18 Requires: smeserver-remoteuseraccess
19 Requires: qmqtool
20 Requires: perl(IO::Socket)
21 Requires: perl(Net::SSLeay)
22 Requires: perl(Date::Parse)
23 Requires: perl(Crypt::OpenSSL::X509)
24 AutoReqProv: no
25
26 %description
27 smserver integration of zabbix agent.
28 Zabbix is an entreprise-class open source distributed monitoring
29 solution
30
31 %changelog
32 * Mon Aug 01 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.4.8-3.sme
33 - add to core backup [SME: 12032]
34
35 * Thu Apr 01 2021 Jean-Philippe Pialasse <tests@pialasse.com> 0.4.8-2.sme
36 - initial SME10 import [SME: 11515]
37 drop in for systemd service file
38 update event created for automatic install
39 remove ownership of /var/lib/zabbix/bin
40
41 * Fri May 29 2020 Daniel Berteaud <daniel@firewall-services.com> 0.4.8-1
42 - Adapt regex to match queued emails when spam filtering is disabled
43 (daniel@firewall-services.com)
44
45 * Thu Feb 27 2020 Daniel Berteaud <daniel@firewall-services.com> 0.4.7-1
46 - Rewrite util_send_status_mail to go through the SMTP server (daniel@firewall-
47 services.com)
48 - Remove useless var in spec file (daniel@firewall-services.com)
49
50 * Wed Nov 27 2019 Daniel Berteaud <daniel@firewall-services.com> 0.4.6-1
51 - Remove the git CHANGELOG as it's not generated anymore (daniel@firewall-
52 services.com)
53
54 * Wed Nov 27 2019 Daniel Berteaud <daniel@firewall-services.com> 0.4.5-1
55 - Adapt spec file for tito (daniel@firewall-services.com)
56 - Detect if running >= 4.4, and remove vfs.dev.discovery UserParameter in this
57 case (daniel@firewall-services.com)
58
59 * Wed Nov 27 2019 Daniel Berteaud <daniel@firewall-services.com>
60 - Detect if running >= 4.4, and remove vfs.dev.discovery UserParameter in this
61 case (daniel@firewall-services.com)
62
63 * Tue Nov 26 2019 Daniel Berteaud <daniel@firewall-services.com> 0.4.3-1
64 - new package built with tito
65
66 * Tue May 3 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.4.3-1.sme
67 - Add dmarc regex in util_parse_mail_in and add support for spf_deny plugin
68
69 * Wed Apr 27 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.4.2-1.sme
70 - Adapt qpsmtpd parser regex to match naughty rejects against the original
71 plugin
72
73 * Tue Apr 19 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.4.1-1.sme
74 - Adapt util_parse_mail_in and util_count_mail_in to work with qpsmtpd 0.96
75 - Define %clean before %files so epel-macros don't try to add a default
76 buggy %clean on el5
77
78 * Mon Mar 21 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.4.0-1.sme
79 - Add support for new encryption features of zabbix 3.0
80
81 * Wed Jun 10 2015 Daniel B. <daniel@firewall-services.com> - 0.3.8-1.sme
82 - Add a random delay before sending the status email
83
84 * Mon Jan 5 2015 Daniel B. <daniel@firewall-services.com> - 0.3.7-1.sme
85 - Requires qmqtool to monitor qmail queue
86
87 * Wed Jun 25 2014 Daniel B. <daniel@firewall-services.com> - 0.3.6-1.sme
88 - Fix a warning in util_send_mail.pl script on EL6
89
90 * Wed Jun 11 2014 Daniel B. <daniel@firewall-services.com> - 0.3.5-1.sme
91 - Fix exec perm on certs check scripts
92
93 * Tue May 6 2014 Daniel B. <daniel@firewall-services.com> - 0.3.4-1.sme
94 - Add support for nmb lookup script
95
96 * Wed Feb 19 2014 Daniel B. <daniel@firewall-services.com> - 0.3.3-1.sme
97 - Fix a typo in dependency
98
99 * Wed Feb 19 2014 Daniel B. <daniel@firewall-services.com> - 0.3.2-1.sme
100 - Add script to monitor PHPki certificates
101
102 * Tue Feb 18 2014 Daniel B. <daniel@firewall-services.com> - 0.3.1-1.sme
103 - Fix a syntaxe error in check_asterisk
104
105 * Tue Apr 16 2013 Daniel B. <daniel@firewall-services.com> - 0.3.0-1.sme
106 - Huge cleanup
107 - Requires zabbix-agent-addons
108
109 * Thu Apr 11 2013 Daniel B. <daniel@firewall-services.com> - 0.2.1-1.sme
110 - Improvement in mdstat-parser.pl
111
112 * Thu Jun 14 2012 Daniel B. <daniel@firewall-services.com> - 0.2.0-1.sme
113 - Import to GIT
114 - Remove certificate expiration script
115 - Make it 2.0 compatible
116
117 * Thu Jun 7 2012 Daniel B. <daniel@firewall-services.com> - 0.1-52.sme
118 - Add missing perl module in dependency
119
120 * Thu Jun 7 2012 Daniel B. <daniel@firewall-services.com> - 0.1-51.sme
121 - Add certificate expiration script
122
123 * Fri Oct 28 2011 Daniel B. <daniel@firewall-services.com> - 0.1-50.sme
124 - Fix a closing bracket in templates
125
126 * Wed Oct 26 2011 Daniel B. <daniel@firewall-services.com> - 0.1-49.sme
127 - Add better asterisk monitoring capabilities
128
129 * Fri Jul 08 2011 Daniel B. <daniel@firewall-services.com> - 0.1-48.sme
130 - Configure timeout from the DB (prop TimeOut)
131
132 * Wed May 04 2011 Daniel B. <daniel@firewall-services.com> 0.1-47
133 - Send status mail with some logs and active connexions (StatusMail prop)
134
135 * Thu Sep 02 2010 Daniel B. <daniel@firewall-services.com> 0.1-46
136 - Add /usr/sbin in path for check_lvm and check_asterisk
137
138 * Thu Sep 02 2010 Daniel B. <daniel@firewall-services.com> 0.1-45
139 - Add basic asterisk monitoring support
140 - Add basic LVM monitoring support
141
142 * Wed Aug 04 2010 Daniel B. <daniel@firewall-services.com> 0.1-44
143 - Support up to 8 disks for I/O monitoring. Report valid 0 value
144 for non existing ones to prevent errors in server's log
145
146 * Wed Jun 23 2010 Daniel B. <daniel@firewall-services.com> 0.1-43
147 - Possibility to set Hostname from the DB [SME: 6083]
148
149 * Mon May 03 2010 Daniel B. <daniel@firewall-services.com> 0.1-42
150 - disable MegaCli log (which can break monitoring if log file reaches 2GB)
151 - report CRITICAL if both CRITICAL and WARNING are found
152 - add Squid UserParameters (hit ratio, cache size, req per minute)
153
154 * Wed Mar 17 2010 Daniel B. <daniel@firewall-services.com> 0.1-41
155 - read megaraid options from the DB (number of spares, number of
156 error to ignore)
157
158 * Fri Mar 12 2010 Daniel B. <daniel@firewall-services.com> 0.1-40
159 - update regex for incomming mail stats for newer qpsmtpd
160
161 * Wed Feb 17 2010 Daniel B. <daniel@firewall-services.com> 0.1-39
162 - update megaraid-parser.pl script with options to ignore some errors
163
164 * Mon Jan 4 2010 Daniel B. <daniel@firewall-services.com> 0.1-38
165 - Change UPS UserParameters to use wildcard, so you can monitor several UPS
166 easily (require changes in the templates on the server side)
167
168 * Sun Dec 6 2009 Daniel B. <daniel@firewall-services.com> 0.1-37
169 - Call megaraid-parser.pl scripts with sudo in zabbix_agentd.conf
170
171 * Wed Dec 2 2009 Daniel B. <daniel@firewall-services.com> 0.1-36
172 - Run megaraid-parser.pl as root (with sudo) instead of granting
173 zabbix user unrestricted access to MegaCli
174
175 * Fri Sep 25 2009 Daniel B. <daniel@firewall-services.com> 0.1-35
176 - Support up to 8 disks for smart monitoring. Report valid 0 value
177 for non existing ones to prevent errors in server's log
178
179 * Tue Sep 01 2009 Daniel B. <daniel@firewall-services.com> 0.1-34
180 - Add missing return after smart parameters (if several disks are monitored)
181
182 * Mon Aug 31 2009 Daniel B. <daniel@firewall-services.com> 0.1-33
183 - Add system.smart UserParameter (monitor smart values for configured hard drives)
184
185 * Wed Jul 08 2009 Daniel B. <daniel@firewall-services.com> 0.1-32
186 - Fix megaraid-parser script to support RAID-10 arrays
187
188 * Mon Jun 08 2009 Daniel B. <daniel@firewall-services.com> 0.1-31
189 - Add cpu.number UserParameter (return the number of CPU on the host)
190
191 * Wed May 06 2009 Daniel B. <daniel@firewall-services.com> 0.1-30
192 - Create missing tmp directory
193
194 * Mon Apr 27 2009 Daniel B. <daniel@firewall-services.com> 0.1-29
195 - megaraid-parser.pl is now compatible with newer versions
196 of MegaCli
197 - Fix permission on megaraid-parser.pl script
198
199 * Thu Apr 23 2009 Daniel B. <daniel@firewall-services.com> 0.1-28
200 - improvements in sensors script
201 - Add megaraid-parser.pl script to get more accurate MegaRaid
202 conrolers informations
203 - use a cronjob to parse mail logs so multiple zabbix server
204 can be used. Also, it won't repport false value if your host
205 has been unreachable for some time
206 - change output of mdstat-parser.pl to report everything in one
207 line (looks like megaraid-parser)
208
209 * Mon Apr 20 2009 Daniel B. <daniel@firewall-services.com> 0.1-27
210 - Add updates.available to retrieve the number of updates available
211 with yum
212 - Added sensors[*] key to retrieve sensors informations. The value are retrieved
213 with the script /var/lib/zabbix/bin/sensors which can be customized.
214
215 * Fri Mar 27 2009 Daniel B. <daniel@firewall-services.com> 0.1-26
216 - Add raid.mega.status UserParameters to monitor status of MegaRaid based
217 raid array
218
219 * Tue Mar 24 2009 Daniel B. <daniel@firewall-services.com> 0.1-25
220 - Add comments for each UserParameter for configuration on the server side
221 (Type of information, unit, etc...)
222
223 * Tue Mar 24 2009 Daniel B. <daniel@firewall-services.com> 0.1-24
224 - Add raid.sw.status userparameter to report software raid array status
225 - Remove tabs from spec
226 - Permission cleanup on scripts
227
228 * Wed Mar 18 2009 Daniel B. <daniel@firewall-services.com> 0.1-23
229 - Correct mysql.size parameter (sudo -u mysql)
230
231 * Mon Mar 09 2009 Daniel B. <daniel@firewall-services.com> 0.1-22
232 - Fix typo in sudoers template (ZABBIX_AGENT_MYSQL)
233
234 * Mon Mar 02 2009 Daniel B. <daniel@firewall-services.com> 0.1-21
235 - Add smeserver-remoteuseraccess as a dependencie (sudoer templates issue)
236
237 * Mon Mar 02 2009 Daniel B. <daniel@firewall-services.com> 0.1-20
238 - Adjust masq service on zabbix-agent-update event
239 - Add description of Timout directive
240 - Add BufferSend and BufferSize directive to optimize
241 agent <-> server communication
242
243 * Sun Mar 01 2009 Daniel B. <daniel@firewall-services.com> 0.1-19
244 - Add size of mysql data (mysql.size)
245
246 * Fri Feb 20 2009 Daniel B. <daniel@firewall-services.com> 0.1-18
247 - Add stats for InternalInterface and ExternalInterface
248
249 * Tue Feb 17 2009 Daniel B. <daniel@firewall-services.com> 0.1-17
250 - Ignore local delivery from outgoing mail stats
251
252 * Tue Feb 17 2009 Daniel B. <daniel@firewall-services.com> 0.1-16
253 - Fix a typo in mail.out.failure UserParameters
254
255 * Tue Feb 17 2009 Daniel B. <daniel@firewall-services.com> 0.1-15
256 - Add UserParameters for outhoing mails statistics
257
258 * Tue Feb 17 2009 Daniel B. <daniel@firewall-services.com> 0.1-14
259 - add missing other_denied UserParameters for mailStats
260 - Fix expand-template for /etc/sudoers during zabbix-agent-update event
261
262 * Tue Feb 17 2009 Daniel B. <daniel@firewall-services.com> 0.1-13
263 - Add incoming mails statistics
264 - Rename signal-event to zabbix-agent-update (to prevent a conflict on
265 sudoers files which needs to be expanded for server and agent)
266
267 * Wed Feb 11 2009 Daniel B. <daniel@firewall-services.com> 0.1-12
268 - Remove Useless buffers and cache mem
269 - Add vm.memory.size.pused (used memory in %)
270 - Add ups.battery.charge for ups
271 - Added "passive" db parameter
272 - default access is private
273
274 * Tue Feb 10 2009 Daniel B. <daniel@firewall-services.com> 0.1-11
275 - Fix permissions on mysqladmin_status script
276
277 * Tue Feb 10 2009 Daniel B. <daniel@firewall-services.com> 0.1-10
278 - Change used swap key
279
280 * Tue Feb 10 2009 Daniel B. <daniel@firewall-services.com> 0.1-9
281 - Added userparameters for used swap space used in bytes
282
283 * Tue Feb 10 2009 Daniel B. <daniel@firewall-services.com> 0.1-8
284 - Correct a type in memory statistics (for cached memory)
285
286 * Tue Feb 10 2009 Daniel B. <daniel@firewall-services.com> 0.1-7
287 - Report also free, buffers and cached mem so stats are more accurate
288
289 * Tue Feb 10 2009 Daniel B. <daniel@firewall-services.com> 0.1-6
290 - substract cache/buffer from used mem
291
292 * Tue Feb 10 2009 Daniel B. <daniel@firewall-services.com> 0.1-5
293 - Change key name for used memory
294 - Report Used mem instead of total
295
296 * Tue Feb 10 2009 Daniel B. <daniel@firewall-services.com> 0.1-4
297 - Escape brackets in template
298
299 * Tue Feb 10 2009 Daniel B. <daniel@firewall-services.com> 0.1-3
300 - Add UserParameters to repport amount of used memory
301
302 * Mon Feb 9 2009 Daniel B. <daniel@firewall-services.com> 0.1-2
303 - Add UserParameters to monitor real external IP, UPS status,
304 mysql stats
305
306 * Fri Feb 6 2009 Daniel B. <daniel@firewall-services.com> 0.1-1
307 - add Hostname directive in zabbix_agentd.conf
308
309 * Wed Feb 04 2009 Daniel B. <daniel@firewall-services.com> 0.1-0
310 - initial release
311
312 %prep
313 %setup
314 %patch0 -p1
315 rm -rf .tito
316 %patch1 -p1
317
318 %build
319 %{__mkdir_p} root/var/lib/zabbix/tmp
320 perl ./createlinks
321
322 %install
323 rm -rf $RPM_BUILD_ROOT
324 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
325 rm -f %{name}-%{version}-filelist
326 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
327 --file /var/lib/zabbix/bin/check_mysqladmin_status_sudo 'attr(0750,root,zabbix)' \
328 --file /var/lib/zabbix/bin/util_logtail 'attr(0755,root,root)' \
329 --file /var/lib/zabbix/bin/util_count_mail_in 'attr(0755,root,root)' \
330 --file /var/lib/zabbix/bin/util_count_mail_out 'attr(0755,root,root)' \
331 --file /var/lib/zabbix/bin/util_parse_mail_in 'attr(0755,root,root)' \
332 --file /var/lib/zabbix/bin/util_parse_mail_out 'attr(0755,root,root)' \
333 --file /var/lib/zabbix/bin/check_asterisk 'attr(0750,root,zabbix)' \
334 --file /var/lib/zabbix/bin/util_send_status_mail 'attr(0755,root,root)' \
335 --file /var/lib/zabbix/bin/disco_certs_sudo 'attr(0750,root,zabbix)' \
336 --file /var/lib/zabbix/bin/check_certs_sudo 'attr(0750,root,zabbix)' \
337 --dir /var/lib/zabbix/tmp 'attr(0750,zabbix,zabbix)' \
338 | grep -P -v '^%dir %attr\(0755,root,root\) /var/lib' \
339 > %{name}-%{version}-filelist
340 cat %{name}-%{version}-filelist
341 %clean
342 rm -rf $RPM_BUILD_ROOT
343
344 %files -f %{name}-%{version}-filelist
345 %defattr(-,root,root)
346
347 %postun
348 #uninstall
349 if [ $1 = 0 ] ; then
350 /etc/init.d/zabbix-agent stop
351 fi
352
353 true

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