Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:mnhauke:monitoring
monitoring-plugins-interfacetable-v3t
monitoring-plugins-interfacetable-v3t.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File monitoring-plugins-interfacetable-v3t.spec of Package monitoring-plugins-interfacetable-v3t
# # spec file for package monitoring-plugins-interfacetable-v3t # # Copyright (c) 2017, 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 interfacetable_v3t %define interfacetable_cachedir %{_localstatedir}/spool/interfacetable-v3t %define interfacetable_statedir %{_localstatedir}/lib/interfacetable-v3t/state %define interfacetable_htmltabledir %{_localstatedir}/lib/interfacetable-v3t/tables Name: monitoring-plugins-interfacetable-v3t Version: 1.00 Release: 0 Summary: Nagios / Icinga plugin to monitor network interfaces via SNMP License: GPL-2.0-or-later AND LGPL-2.0-only Group: System/Monitoring URL: https://github.com/Tontonitch/interfacetable_v3t Source: https://github.com/Tontonitch/%{realname}/archive/v%{version}.tar.gz#/%{realname}-%{version}.tar.gz Source1: %{name}.permissions Source2: monitoring-plugins-interfacetable-v3t-README.SUSE Patch0: 0001-Add-apache-2.4-support.patch Patch1: 0002-Fix-unescaped-brace-in-regex-not-supported-in-newer-.patch BuildRequires: nagios-rpm-macros Requires: perl-Config-General Requires: perl-Exception-Class Requires: perl-Sort-Naturally # FIXME: use proper Requires(pre/post/preun/...) PreReq: permissions Recommends: pnp4nagios BuildArch: noarch %description Interfacetable_v3t (formerly check_interface_table_v3t) is a Nagios(R) addon that allows you to monitor the network interfaces of a node (e.g. router, switch, server) without knowing each interface in detail. Only the hostname (or ip address) and the snmp community string are required. It generates a html page gathering some info on the monitored node and a table of all interfaces/ports and their status. %prep %setup -q -n %{realname}-%{version} %patch0 -p1 %patch1 -p1 %build %configure \ --build=x86_64-linux-gnu \ --prefix=%{_prefix} \ --datarootdir=%{_localstatedir}/lib/interfacetable-v3t \ --sysconfdir=%{_sysconfdir}/interfacetable-v3t \ --libdir=%{_libexecdir}/interfacetable-v3t \ --disable-maintainer-mode \ --disable-dependency-tracking \ --with-nagios-etc=%{_sysconfdir}/icinga \ --with-nagios-user=icinga \ --with-nagios-group=icinga \ --with-httpd-conf=%{_sysconfdir}/apache2/conf.d \ --with-apache-authname="Icinga Access" \ --sysconfdir=%{_sysconfdir}/interfacetable-v3t \ --with-cachedir=%{_localstatedir}/spool/interfacetable-v3t \ --with-statedir=%{_localstatedir}/lib/interfacetable-v3t/state \ --with-htmldir=%{_datadir}/interfacetable-v3t/htdocs \ --with-cgidir=%{_datadir}/interfacetable-v3t/cgi \ --with-nagios-libexec=%{nagios_plugindir} \ --with-htmlurl=/interfacetable \ --with-cgiurl=/interfacetable/cgi-bin \ --with-grapher=pnp4nagios \ --with-grapher-url=/pnp4nagios %install make INSTALL_OPTS="" DESTDIR=%{buildroot}/ install make INSTALL_OPTS="" DESTDIR=%{buildroot}/ install-apache-config mkdir -p %{buildroot}/%{interfacetable_cachedir} mkdir -p %{buildroot}/%{interfacetable_statedir} mkdir -p %{buildroot}/%{interfacetable_htmltabledir} mkdir -p %{buildroot}/%{pnp4nagios_templatedir} install -D -m644 contrib/pnp4nagios/check_interface_table_global.php %{buildroot}/%{pnp4nagios_templatedir}/check_interface_table_global.php install -D -m644 contrib/pnp4nagios/check_interface_table_port_bigip.php %{buildroot}/%{pnp4nagios_templatedir}/check_interface_table_port_bigip.php install -D -m644 contrib/pnp4nagios/check_interface_table_port.php %{buildroot}/%{pnp4nagios_templatedir}/check_interface_table_port.php # install permissions file install -D -m644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/permissions.d/%{name} # install the documentation mkdir -p %{buildroot}/%{_defaultdocdir}/%{name} install -m0644 %{SOURCE2} %{buildroot}/%{_defaultdocdir}/%{name}/README.SUSE %post %set_permissions %{_sysconfdir}/permissions.d/%{name} %files %license COPYING %doc AUTHORS CHANGELOG gpl-2.0.txt README README.md README.SUSE THANKS TODO %config(noreplace) %{_sysconfdir}/interfacetable-v3t/settings.cfg-sample %config(noreplace) %{_sysconfdir}/apache2/conf.d/interfacetable_v3t.conf %config(noreplace) %{_sysconfdir}/permissions.d/%{name} %{_libexecdir}/interfacetable-v3t %{_localstatedir}/lib/interfacetable-v3t %{_datadir}/interfacetable-v3t/cgi/InterfaceTableReset_v3t.cgi %{interfacetable_cachedir} %dir %{interfacetable_statedir} %dir %{_sysconfdir}/interfacetable-v3t %dir %{_datadir}/interfacetable-v3t %dir %{_datadir}/interfacetable-v3t/cgi ## avoid build dependency of apache2 - own the dirs %dir %{_sysconfdir}/apache2 %dir %{_sysconfdir}/apache2/conf.d ## avoid build dependency of nagios - own the dirs %dir %{nagios_libdir} %{nagios_plugindir}/ %dir %{pnp4nagios_templatedir} %dir %{pnp4nagios_datadir} %{pnp4nagios_templatedir}/check_interface_table_global.php %{pnp4nagios_templatedir}/check_interface_table_port_bigip.php %{pnp4nagios_templatedir}/check_interface_table_port.php %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor