/[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.4 - (show annotations) (download)
Thu Apr 1 16:08:04 2021 UTC (3 years, 1 month ago) by jpp
Branch: MAIN
CVS Tags: smeserver-zabbix-agent-0_4_8-2_el7_sme
Changes since 1.3: +3 -1 lines
* Thu Apr 01 2021 Jean-Philippe Pialasse <tests@pialasse.com> 0.4.8-2.sme
- initial SME10 import [SME: 11515]
  drop in for systemd service file
  update event created for automatic install
  remove ownership of /var/lib/zabbix/bin

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

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