/[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.2 - (show annotations) (download)
Thu Apr 1 15:12:34 2021 UTC (3 years, 7 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-zabbix-agent-0_4_8-1_el6_fws
Changes since 1.1: +95 -163 lines
last fws version

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

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