File monitoring-plugins-naf.spec of Package monitoring-plugins-naf

#
# spec file for package monitoring-plugins-naf
#
# Copyright (c) 2014, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%define realname check_naf
Name:           monitoring-plugins-naf
Version:        git20141604
Release:        0
Summary:        This plugin checks the health of NetApp Filer/FAS systems
License:        GPL-2.0+
Group:          System/Monitoring
Url:            https://www.teamix.org/projects/monitoringplugins/wiki/Check_naf
Source:         monitoringplugins-%{version}.tar.gz
BuildRequires:  nagios-rpm-macros
Requires:       net-snmp-python
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
This plugin checks the hardware health and various parameters of
NetApp Filer/FAS systems.

%prep
%setup -q -n monitoringplugins-%{version}

%build
true

%install
mkdir -p %{buildroot}/%{nagios_plugindir}
mkdir -p %{buildroot}/%{pnp4nagios_templatedir}
install -D -m644 PNP/templates/check_naf_helper.php %{buildroot}/%{pnp4nagios_templatedir}/check_naf_helper.php
install -D -m644 PNP/templates/check_naf.php %{buildroot}/%{pnp4nagios_templatedir}/check_naf.php
install -D -m644 PNP/templates/piechart.check_naf.php %{buildroot}/%{pnp4nagios_templatedir}/piechart.check_naf.php
install -D -m644 PNP/check_commands/check_naf.cfg %{buildroot}/%{pnp4nagios_sysconfdir}/check_commands/check_naf.cfg
install -D -m755 monitoringplugin.py %{buildroot}/%{nagios_plugindir}/monitoringplugin.py
install -D -m755 check_naf.py %{buildroot}/%{nagios_plugindir}/check_naf.py

%files
%defattr(-,root,root)
# avoid build dependency of nagios - own the dirs
%dir %{nagios_libdir}
%dir %{pnp4nagios_sysconfdir}
%dir %{pnp4nagios_sysconfdir}/check_commands/
%dir %{pnp4nagios_datadir}
%dir %{pnp4nagios_templatedir}
%{nagios_plugindir}/
%{nagios_plugindir}/monitoringplugin.py
%{nagios_plugindir}/check_naf.py
%{pnp4nagios_templatedir}/check_naf_helper.php
%{pnp4nagios_templatedir}/check_naf.php
%{pnp4nagios_templatedir}/piechart.check_naf.php
%config %{pnp4nagios_sysconfdir}/check_commands/check_naf.cfg

%changelog
openSUSE Build Service is sponsored by