diff --git a/check_openvpn.cfg b/check_openvpn.cfg new file mode 100644 index 0000000..1f37dea --- /dev/null +++ b/check_openvpn.cfg @@ -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 diff --git a/monitoring-plugins-openvpn.changes b/monitoring-plugins-openvpn.changes index 925a6a7..581b64d 100644 --- a/monitoring-plugins-openvpn.changes +++ b/monitoring-plugins-openvpn.changes @@ -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 diff --git a/monitoring-plugins-openvpn.spec b/monitoring-plugins-openvpn.spec index ac39292..775b4ae 100644 --- a/monitoring-plugins-openvpn.spec +++ b/monitoring-plugins-openvpn.spec @@ -1,7 +1,7 @@ # # 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 # 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) # 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 Summary: Verify the state of the clients connected to a openvpn server -License: GPL-3.0 +License: GPL-3.0-only Group: System/Monitoring Version: 1.1 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 +Source1: check_openvpn.cfg Patch1: check_openvpn-add-perfdata.patch BuildRequires: nagios-rpm-macros Provides: nagios-plugins-openvpn = %{version}-%{release} @@ -56,6 +57,7 @@ install -m644 %{SOURCE0} . %install 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 chmod +x %buildroot/%{nagios_plugindir}/check_openvpn @@ -67,6 +69,8 @@ rm -rf %buildroot # avoid build dependecy of nagios - own the dirs %dir %{nagios_libdir} %dir %{nagios_plugindir} +%dir %{nrpe_sysconfdir} +%config(noreplace) %{nrpe_sysconfdir}/check_openvpn.cfg %{nagios_plugindir}/check_openvpn %changelog