nagios-plugins/nagios-plugins.spec

123 lines
4.1 KiB
RPMSpec
Raw Permalink Normal View History

Name: nagios-plugins
Version: 2.0.2
Release: 1mamba
Summary: Host/service/network monitoring program plugins for Nagios
Group: Network/Monitoring
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://nagiosplugins.org/
Source0: http://www.nagios-plugins.org/download/%{name}-%{version}.tar.gz
Patch0: %{name}-1.4.16-undef_gets.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: fping
BuildRequires: glibc-devel
BuildRequires: libmysql5-devel
BuildRequires: libopenldap-devel
BuildRequires: libopenssl-devel
BuildRequires: libpostgresql-devel
BuildRequires: libz-devel
BuildRequires: nagios-devel
BuildRequires: perl-devel
BuildRequires: perl-Net-SNMP
## AUTOBUILDREQ-END
BuildRequires: libnetsnmp-devel
BuildRequires: libradiusclient-ng-devel
BuildRequires: net-snmp-utils
Requires: fping
Requires: perl-Net-SNMP
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Nagios is a program that will monitor hosts and services on your network, and to email or page you when a problem arises or is resolved.
Nagios runs on a unix server as a background or daemon process, intermittently running checks on various services that you specify.
The actual service checks are performed by separate "plugin" programs which return the status of the checks to Nagios.
This package contains the basic plugins necessary for use with the Nagios package.
%prep
%setup -q
%build
export PATH="/usr/sbin:$PATH"
%configure \
PATH_TO_FPING=%{_sbindir}/fping \
--libdir=%{_libdir}/nagios/plugins \
--libexecdir=%{_libdir}/nagios/plugins \
--with-trusted-path="/bin:/sbin:/usr/bin:/usr/sbin" \
--with-cgiurl=/nagios/cgi-bin \
--disable-rpath \
--with-ps-command="`which ps` -eo 's uid pid ppid vsz rss pcpu etime comm args'" \
--with-ps-format='%s %d %d %d %d %d %f %s %s %n' \
--with-ps-cols=10 \
--enable-extra-opts \
--with-ps-varlist='procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procetime,procprog,&pos'
# --with-ping-command="/bin/ping -n %%s -c %%d" \
# --with-ping6-command="/usr/bin/ping6 -n -U -c %%d %%s" \
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
# remove unpackaged plugins
rm -f %{buildroot}/%{_libdir}/nagios/plugins/check_uptime
chmod 644 %{buildroot}/%{_libdir}/nagios/plugins/utils.pm
%find_lang %{name}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -f %{name}.lang
%defattr(-,root,root)
%dir %{_libdir}/nagios/plugins
%attr(755,root,root) %{_libdir}/nagios/plugins/check_*
%{_libdir}/nagios/plugins/negate
%{_libdir}/nagios/plugins/urlize
%{_libdir}/nagios/plugins/utils.pm
%{_libdir}/nagios/plugins/utils.sh
%doc COPYING LEGAL
#CODING FAQ README REQUIREMENTS SUPPORT ChangeLog command.cfg
%changelog
* Sat May 31 2014 Automatic Build System <autodist@mambasoft.it> 2.0.2-1mamba
- automatic update by autodist
* Sun May 11 2014 Davide Madrisan <davide.madrisan@gmail.com> 2.0.1-1mamba
- update to 2.0.1
* Wed May 07 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.16-2mamba
- don't require nagios to allow nrpe only installations
* Tue Oct 23 2012 Davide Madrisan <davide.madrisan@gmail.com> 1.4.16-1mamba
- update to 1.4.16
- remove nrpe and nsca subpackages
- add some missing build requirements
* Fri Feb 05 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.14-1mamba
- update to 1.4.14
* Fri Mar 20 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.13-1mamba
- update to 1.4.13
* Fri Mar 20 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.1-6mamba
- automatic rebuild by autodist
* Fri Feb 10 2006 Davide Madrisan <davide.madrisan@qilinux.it> 1.3.1-5qilnx
- do not require perl-Net-SNMP
* Tue Jul 13 2004 Davide Madrisan <davide.madrisan@qilinux.it> 1.3.1-4qilnx
- added nrpe addon
* Mon Jul 12 2004 Davide Madrisan <davide.madrisan@qilinux.it> 1.3.1-3qilnx
- added nsca addon
* Fri Jul 09 2004 Davide Madrisan <davide.madrisan@qilinux.it> 1.3.1-2qilnx
- various fixes
* Tue Nov 24 2003 Davide Madrisan <davide.madrisan@qilinux.it> 1.3.1-1qilnx
- first build