diff --git a/.gitignore b/.gitignore index e69de29..c9ed409 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/nagios-plugins-lcgdm-0.5.0.tar.gz diff --git a/nagios-plugins-lcgdm.spec b/nagios-plugins-lcgdm.spec new file mode 100644 index 0000000..4edc33a --- /dev/null +++ b/nagios-plugins-lcgdm.spec @@ -0,0 +1,166 @@ +%define nagios_plugins_dir %{_libdir}/nagios/plugins +%define pnp4nagios_templates_dir %{_datadir}/nagios/html/pnp4nagios/templates.lcgdm + +Name: nagios-plugins-lcgdm +Version: 0.5.0 +Release: 1%{?dist} +Summary: Nagios probes to be run remotely against DPM / LFC nodes +Group: Applications/Internet +License: ASL 2.0 +URL: https://svnweb.cern.ch/trac/lcgdm/wiki/Dpm/Admin/Monitoring +# The source of this package was pulled from upstream's vcs. Use the +# following commands to generate the tarball: +# svn export http://svn.cern.ch/guest/lcgdm/nagios-plugins/tags/nagios-plugins_0_5_0 nagios-plugins-lcgdm-0.5.0 +# tar -czvf nagios-plugins-lcgdm-0.5.0.tar.gz nagios-plugins-lcgdm-0.5.0 +Source0: %{name}-%{version}.tar.gz +Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: cmake%{?_isa} +Requires: nagios-plugins-lcgdm-common%{?_isa} = %{version}-%{release} +Requires: php%{?_isa} +Requires: pnp4nagios%{?_isa} + +%description +This package provides the nagios probes for LCGDM components (DPM and LFC) that +need to be run remotely. Usually they are installed in the nagios host, and +they will contact the remote services running in the DPM and LFC hosts. + +The Disk Pool Manager (DPM) is a lightweight grid storage component, allowing +access to data using commonly used grid protocols. The LCG File Catalog (LFC) +is the main catalog being used by grid communities for both file bookkeeping +and meta-data. + +%package -n nagios-plugins-lcgdm-common +Summary: Common libraries and files to all LCGDM nagios packages +Group: Applications/System +Requires: nagios-common%{?_isa} +Requires: nagios-plugins%{?_isa} +Requires: nrpe%{?_isa} +Requires: python%{?_isa} +Requires: python-dateutil + +%description -n nagios-plugins-lcgdm-common +LCGDM includes both the Disk Pool Manager (DPM) and LCG File Catalog (LFC) +components. This package provides the common libraries and files used by +all LCGDM nagios probes. + +%package -n nagios-plugins-dpm-disk +Summary: Nagios probes to be run in the DPM disk nodes +Group: Applications/System +Requires: nagios-plugins-lcgdm-common%{?_isa} = %{version}-%{release} + +%description -n nagios-plugins-dpm-disk +This package provides the LCGDM nagios probes to be run in the grid +Disk Pool Manager (DPM) disk nodes. +They cover monitoring of the status of the different daemons, log file +analysis, host certificate checks, etc. + +%package -n nagios-plugins-dpm-head +Summary: Nagios probes to be run in the DPM head node +Group: Applications/System +Requires: nagios-plugins-lcgdm-common%{?_isa} = %{version}-%{release} + +%description -n nagios-plugins-dpm-head +This package provides the LCGDM nagios probes to be run in the DPM head nodes. +They cover monitoring of the status of the different daemons, log file +analysis, host certificate checks, etc. + +%package -n nagios-plugins-lfc +Summary: Nagios probes to be run in the LFC node +Group: Applications/System +Requires: nagios-plugins-lcgdm-common%{?_isa} = %{version}-%{release} + +%description -n nagios-plugins-lfc +This package provides the LCGDM nagios probes to be run in the LCG File +Catalog (LFC) node. +They cover monitoring of the status of the different daemons, log file +analysis, host certificate checks, etc. + +%prep +%setup -q -n %{name}-%{version} + +%build +%cmake . -DCMAKE_INSTALL_PREFIX=/ + +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT + +make install DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%config(noreplace) %{_sysconfdir}/nagios/generic-service.cfg +%config(noreplace) %{_sysconfdir}/nagios/lcgdm-commands.cfg +%config(noreplace) %{_sysconfdir}/nagios/lcgdm-hosts.cfg +%config(noreplace) %{_sysconfdir}/nagios/lcgdm-services.cfg +%{nagios_plugins_dir}/lcgdm/check_dpm +%{nagios_plugins_dir}/lcgdm/check_dpns +%{nagios_plugins_dir}/lcgdm/check_gridftp +%{nagios_plugins_dir}/lcgdm/check_rfio +%dir %{pnp4nagios_templates_dir} +%{pnp4nagios_templates_dir}/check_cpu.php +%{pnp4nagios_templates_dir}/check_dpm_perf.php +%{pnp4nagios_templates_dir}/check_dpm_pool.php +%{pnp4nagios_templates_dir}/check_dpns_perf.php +%{pnp4nagios_templates_dir}/check_gridftp.php +%{pnp4nagios_templates_dir}/check_gridftp_transfer.php +%{pnp4nagios_templates_dir}/check_network.php +%{pnp4nagios_templates_dir}/check_partition_activity.php +%{pnp4nagios_templates_dir}/check_process.php +%{pnp4nagios_templates_dir}/check_rfio.php +%{pnp4nagios_templates_dir}/check_rfio_transfer.php + +%files -n nagios-plugins-lcgdm-common +%defattr(-,root,root,-) +%config(noreplace) %{_sysconfdir}/nrpe.d/lcgdm-common.cfg +%dir %{nagios_plugins_dir}/lcgdm +%{nagios_plugins_dir}/lcgdm/check_cpu +%{nagios_plugins_dir}/lcgdm/check_hostcert +%{nagios_plugins_dir}/lcgdm/check_network +%{nagios_plugins_dir}/lcgdm/check_process +%{nagios_plugins_dir}/lcgdm/lcgdmcommon.py* +%doc LICENSE README RELEASE-NOTES + +%files -n nagios-plugins-dpm-disk +%defattr(-,root,root,-) +%config(noreplace) %{_sysconfdir}/nrpe.d/lcgdm-disk.cfg +%{nagios_plugins_dir}/lcgdm/check_gridftp_transfer +%{nagios_plugins_dir}/lcgdm/check_partition_activity +%{nagios_plugins_dir}/lcgdm/check_rfio_transfer + +%files -n nagios-plugins-dpm-head +%defattr(-,root,root,-) +%config(noreplace) %{_sysconfdir}/nrpe.d/lcgdm-headnode.cfg +%{nagios_plugins_dir}/lcgdm/check_dpm_infosys +%{nagios_plugins_dir}/lcgdm/check_dpm_perf +%{nagios_plugins_dir}/lcgdm/check_dpm_pool +%{nagios_plugins_dir}/lcgdm/check_dpns_perf +%{nagios_plugins_dir}/lcgdm/check_space_token + +%files -n nagios-plugins-lfc +%defattr(-,root,root,-) +%config(noreplace) %{_sysconfdir}/nrpe.d/lcgdm-lfc.cfg +%{nagios_plugins_dir}/lcgdm/check_lfc_perf +%{nagios_plugins_dir}/lcgdm/check_oracle_expiration + +%changelog +* Sat Nov 19 2011 Ricardo Rocha - 0.5.0-1 +- Removed unnecessary build dependencies +- python-dateutil is noarch, fixed Requires accordingly +- Moved pnp4nagios templates under the default directory +- Moved nagios config files into /etc/nagios + +* Thu Nov 10 2011 Ricardo Rocha - 0.4.0-3 +- Added byte compile python files + +* Fri Nov 04 2011 Ricardo Rocha - 0.4.0-2 +- Use cmake macro for build + +* Mon Oct 17 2011 Ricardo Rocha - 0.4.0-1 +- Initial build diff --git a/sources b/sources index e69de29..4c35ffd 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +46519dc83bd05ea407d06aa990a1d1e5 nagios-plugins-lcgdm-0.5.0.tar.gz