zabbix-agent-addons/zabbix-agent-addons.spec

121 lines
3.9 KiB
RPMSpec
Raw Normal View History

2013-04-15 10:49:30 +02:00
Summary: Scripts for Zabbix monitoring
Name: zabbix-agent-addons
2014-02-19 09:31:54 +01:00
Version: 0.1.14
2013-04-17 13:44:06 +02:00
Release: 1
2013-04-15 10:49:30 +02:00
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
License: GPL
Group: Virtualization
BuildRoot: %{_tmppath}/%{name}-buildroot
Prefix: %{_prefix}
Requires: zabbix-agent
2013-04-15 15:04:11 +02:00
Requires: perl(Getopt::Long)
Requires: perl(Getopt::Std)
Requires: perl(JSON)
Requires: perl(Linux::LVM)
Requires: perl(POSIX)
2013-04-19 11:30:48 +02:00
Requires: perl(MIME::Base64)
2013-04-15 15:04:11 +02:00
AutoReqProv: no
2013-04-15 10:49:30 +02:00
%description
This package contains some usefull script to monitor
a Linux box with Zabbix. It provides helper scripts to
discover and monitor things like filesystems, block devices
LVM, RAID status, S.M.A.R.T. drives, BackupPC etc...
%prep
%setup -q
%build
%install
%{__rm} -rf $RPM_BUILD_ROOT
# Install zabbix scripts
2013-04-15 15:04:11 +02:00
%{__install} -d -m 750 $RPM_BUILD_ROOT%{_localstatedir}/lib/zabbix/bin
2013-04-15 10:49:30 +02:00
%{__install} -m 0755 zabbix_scripts/* $RPM_BUILD_ROOT%{_localstatedir}/lib/zabbix/bin
# Install Zabbix conf
%{__install} -d $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_agentd.conf.d/
2013-04-17 13:44:06 +02:00
%{__install} -m 0644 zabbix_conf/* $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_agentd.conf.d/
2013-04-15 18:43:43 +02:00
# Install sensors conf
%{__install} -m 0755 conf/sensors.conf $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/
2013-04-15 10:49:30 +02:00
# Install sudo conf
%{__install} -d 750 $RPM_BUILD_ROOT%{_sysconfdir}/sudoers.d
2013-04-15 15:04:11 +02:00
%{__install} -m 600 conf/sudo.conf $RPM_BUILD_ROOT%{_sysconfdir}/sudoers.d/zabbix_agent
2013-04-15 10:49:30 +02:00
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%pre
%preun
%post
%files
%defattr(-,root,root,-)
%doc README CHANGELOG.git
2013-04-15 15:04:11 +02:00
%dir %attr(0750,zabbix,zabbix) %{_localstatedir}/lib/zabbix/bin
%{_localstatedir}/lib/zabbix/bin/*
%config(noreplace) %attr(0640,root,zabbix) %{_sysconfdir}/zabbix/sensors.conf
%config(noreplace) %attr(0640,root,zabbix) %{_sysconfdir}/zabbix/zabbix_agentd.conf.d/*
2013-04-22 18:35:50 +02:00
%attr(0440,root,root) %{_sysconfdir}/sudoers.d/*
2013-04-15 10:49:30 +02:00
%changelog
2014-02-19 09:31:54 +01:00
* Wed Feb 19 2014 Daniel B. <daniel@firewall-services.com> - 0.1.14-1
- remove scripts to discover and monitor certificates, they too specific
and are now in smeserver-zabbix-agent
2014-02-18 18:27:20 +01:00
* Tue Feb 18 2014 Daniel B. <daniel@firewall-services.com> - 0.1.13-1
- Move phpki conf to the correct location
2014-02-18 17:26:05 +01:00
* Tue Feb 18 2014 Daniel B. <daniel@firewall-services.com> - 0.1.12-1
- Add scripts to discover and monitor certificates (design to work with PHPki)
2013-11-29 09:56:43 +01:00
* Fri Nov 29 2013 Daniel B. <daniel@firewall-services.com> - 0.1.11-1
- Possibility to disable hosts monitoring in BackupPC by adding
$Conf{ZabbixMonitoring} = 0 in the conf file
2013-10-28 18:31:22 +01:00
* Mon Oct 28 2013 Daniel B. <daniel@firewall-services.com> - 0.1.10-1
- Do not skip removable devices in disco_block_device
2013-10-01 14:17:22 +02:00
* Tue Oct 1 2013 Daniel B. <daniel@firewall-services.com> - 0.1.9-1
- Fix macros names in disco_raid_hp_sudo script
2013-10-01 13:05:02 +02:00
* Tue Oct 1 2013 Daniel B. <daniel@firewall-services.com> - 0.1.8-1
- Add simple scripts to monitor HP Smart Arrays
2013-04-23 17:15:00 +02:00
* Tue Apr 23 2013 Daniel B. <daniel@firewall-services.com> - 0.1.7-1
- Initialize an empty array in disco_backuppc_sudo
- Return more usefull macros in disco_backuppc_sudo
- Skip some blocks (loop, ram, dm) in disco_smart_sudo
2013-04-22 19:21:26 +02:00
* Mon Apr 22 2013 Daniel B. <daniel@firewall-services.com> - 0.1.6-1
- Fix permissions on sudoers fragment
- Use full path to smartctl binary
2013-04-22 16:54:37 +02:00
* Mon Apr 22 2013 Daniel B. <daniel@firewall-services.com> - 0.1.5-1
- Rewrite disco_smart_sudo in perl
2013-04-19 11:30:48 +02:00
* Thu Apr 18 2013 Daniel B. <daniel@firewall-services.com> - 0.1.4-1
- Possibility to pass a (base64 encoded) regex for backuppc hosts discovery
- Add nut ups scripts
- Fix lvm discovery on some systems
* Thu Apr 18 2013 Daniel B. <daniel@firewall-services.com> - 0.1.3-1
- Comment the manual net.if.discovery key
2013-04-18 08:49:51 +02:00
* Thu Apr 18 2013 Daniel B. <daniel@firewall-services.com> - 0.1.2-1
- Add network interface discovery scripts
- do not prepend /dev to block devices (not supported on older Zabbix agent)
2013-04-17 14:00:00 +02:00
* Wed Apr 17 2013 Daniel B. <daniel@firewall-services.com> - 0.1.1-1
- Fix a typo in smart.conf
2013-04-17 13:44:06 +02:00
* Wed Apr 17 2013 Daniel B. <daniel@firewall-services.com> - 0.1.0-1
2013-04-15 10:49:30 +02:00
- Initial release