1
0

- add nrpe configuration snipplet

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins-openvpn?expand=0&rev=6
This commit is contained in:
Lars Vogdt 2021-01-16 13:57:22 +00:00 committed by Git OBS Bridge
parent 272c09a779
commit 739c3de313
3 changed files with 20 additions and 4 deletions

7
check_openvpn.cfg Normal file
View File

@ -0,0 +1,7 @@
# example configurations for check_openvpn
# do not forget to add something like the following line to your openvpn config (in /etc/openvpn/)
#
# management 127.0.0.1 7506
#
command[check_openvpn_tcp]=/usr/lib/nagios/plugins/check_openvpn -H localhost -p 7506 -t 30 -V
command[check_openvpn_udp]=/usr/lib/nagios/plugins/check_openvpn -H localhost -p 7505 -t 30 -V

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Jan 16 13:55:40 UTC 2021 - lars@linux-schulserver.de
- add nrpe configuration snipplet
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Sep 15 12:49:17 UTC 2017 - lars@linux-schulserver.de Fri Sep 15 12:49:17 UTC 2017 - lars@linux-schulserver.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package monitoring-plugins-openvpn # spec file for package monitoring-plugins-openvpn
# #
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -12,18 +12,19 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
Name: monitoring-plugins-openvpn Name: monitoring-plugins-openvpn
Summary: Verify the state of the clients connected to a openvpn server Summary: Verify the state of the clients connected to a openvpn server
License: GPL-3.0 License: GPL-3.0-only
Group: System/Monitoring Group: System/Monitoring
Version: 1.1 Version: 1.1
Release: 0 Release: 0
Url: https://www.monitoringexchange.org/inventory/Check-Plugins/Software/Misc/check_openvpn_pl URL: https://www.monitoringexchange.org/inventory/Check-Plugins/Software/Misc/check_openvpn_pl
Source0: check_openvpn.pl Source0: check_openvpn.pl
Source1: check_openvpn.cfg
Patch1: check_openvpn-add-perfdata.patch Patch1: check_openvpn-add-perfdata.patch
BuildRequires: nagios-rpm-macros BuildRequires: nagios-rpm-macros
Provides: nagios-plugins-openvpn = %{version}-%{release} Provides: nagios-plugins-openvpn = %{version}-%{release}
@ -56,6 +57,7 @@ install -m644 %{SOURCE0} .
%install %install
mkdir -p %buildroot/%{nagios_plugindir} mkdir -p %buildroot/%{nagios_plugindir}
install -Dm0644 %{SOURCE1} %buildroot/%{nrpe_sysconfdir}/check_openvpn.cfg
sed "s|/usr/nagios/libexec|%{nagios_plugindir}|g" check_openvpn.pl > %buildroot/%{nagios_plugindir}/check_openvpn sed "s|/usr/nagios/libexec|%{nagios_plugindir}|g" check_openvpn.pl > %buildroot/%{nagios_plugindir}/check_openvpn
chmod +x %buildroot/%{nagios_plugindir}/check_openvpn chmod +x %buildroot/%{nagios_plugindir}/check_openvpn
@ -67,6 +69,8 @@ rm -rf %buildroot
# avoid build dependecy of nagios - own the dirs # avoid build dependecy of nagios - own the dirs
%dir %{nagios_libdir} %dir %{nagios_libdir}
%dir %{nagios_plugindir} %dir %{nagios_plugindir}
%dir %{nrpe_sysconfdir}
%config(noreplace) %{nrpe_sysconfdir}/check_openvpn.cfg
%{nagios_plugindir}/check_openvpn %{nagios_plugindir}/check_openvpn
%changelog %changelog