/[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.3 - (show annotations) (download)
Thu Apr 1 15:37:26 2021 UTC (3 years, 7 months ago) by jpp
Branch: MAIN
Changes since 1.2: +10 -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

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

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