net-analyzer/check_openvpn: added
This commit is contained in:
parent
60e07a4718
commit
f909692a9b
|
@ -1,5 +1,4 @@
|
|||
net-analyzer/icinga2-meta
|
||||
metadata/md5-cache/net-analyzer/icinga2-meta-0.0.1
|
||||
net-analyzer/check_openvpn
|
||||
net-analyzer/check_vmware_esx
|
||||
metadata/md5-cache/net-analyzer/check_vmware_esx-1.2.3
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
DEFINED_PHASES=install
|
||||
DESCRIPTION=Nagios/Icinga check for OpenVPN availability monitoring
|
||||
EAPI=8
|
||||
HOMEPAGE=https://github.com/liquidat/nagios-icinga-openvpn
|
||||
KEYWORDS=amd64 x86
|
||||
LICENSE=MIT
|
||||
SLOT=0
|
||||
SRC_URI=https://github.com/liquidat/nagios-icinga-openvpn/archive/refs/tags/0.0.1.tar.gz -> check_openvpn-0.0.1.tar.gz
|
||||
_md5_=67ad5e8752de7210dc6331faa1b08255
|
|
@ -0,0 +1 @@
|
|||
DIST check_openvpn-0.0.1.tar.gz 4637 BLAKE2B 365b6450cccd5f7f25348583eae45c0b15932ec1e858d375171911e4108dd2b7fc133559a35399ece8d2a349f05b2f51897cf9e271f498b6bbaa2c6bba3551a9 SHA512 0dae6c2df71a20e287720767aa4ba41d0568f3cd4bd2a6eb252f86d810d3de265ddc38397df15bb1b115ba35ac68aa6e18345dc4432d4d13b08b500483ffbb11
|
|
@ -0,0 +1,32 @@
|
|||
# Copyright 2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
MY_PN="nagios-icinga-openvpn"
|
||||
MY_PV="${PV}"
|
||||
MY_P="${MY_PN}-${MY_PV}"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
DESCRIPTION="Nagios/Icinga check for OpenVPN availability monitoring"
|
||||
HOMEPAGE="https://github.com/liquidat/nagios-icinga-openvpn"
|
||||
SRC_URI="https://github.com/liquidat/nagios-icinga-openvpn/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
|
||||
DEPEND="${PYTHON_DEPS}"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="${DEPEND}"
|
||||
|
||||
DOCS="COPYING AUTHORS README.md"
|
||||
|
||||
src_install(){
|
||||
default
|
||||
|
||||
exeinto /usr/lib64/nagios/plugins/contrib/
|
||||
doexe bin/check_openvpn
|
||||
|
||||
insinto /usr/share/icinga2/include/plugins-contrib.d/
|
||||
doins "${FILESDIR}/${PN}.conf"
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
object CheckCommand "openvpn" {
|
||||
import "ipv4-or-ipv6"
|
||||
|
||||
command = [ PluginDir + "/contrib/check_openvpn" ]
|
||||
|
||||
arguments = {
|
||||
"(no key)" = {
|
||||
value = "$openvpn_address$"
|
||||
description = "the OpenVPN host name or IP"
|
||||
skip_key = true
|
||||
required = true
|
||||
order = 99
|
||||
}
|
||||
"-p" = {
|
||||
value = "$openvpn_port$"
|
||||
description = "set port number (default is 1194)"
|
||||
}
|
||||
"-t" = {
|
||||
set_if = "$openvpn_tcp$"
|
||||
description = "use tcp instead of udp"
|
||||
}
|
||||
"--timeout" = {
|
||||
value = "$openvpn_timeout$"
|
||||
description = "set timeout in seconds, for udp counted per packet (default is 2)"
|
||||
}
|
||||
"--digest" = {
|
||||
value = "$openvpn_digest$"
|
||||
description = "set digest algorithm (default is sha1)"
|
||||
}
|
||||
"--digest-size" = {
|
||||
value = "$openvpn_digest_size$"
|
||||
description = "set HMAC digest size"
|
||||
}
|
||||
"--digest-key-client" = {
|
||||
value = "$openvpn_digest-key-client$"
|
||||
description = "set client HMAC key"
|
||||
}
|
||||
"--digest-key-server" = {
|
||||
value = "$openvpn_digest_key_server$"
|
||||
description = "set server HMAC key for packet validation"
|
||||
}
|
||||
"--tls-auth" = {
|
||||
value = "$openvpn_tls_auth$"
|
||||
description = "set tls-auth file"
|
||||
}
|
||||
"--tls-auth-inverse" = {
|
||||
set_if = "$openvpn_tls_auth_inverse$"
|
||||
description = "set tls-auth file direction to inverse (1)"
|
||||
}
|
||||
"--retrycount" = {
|
||||
value = "$openvpn_retrycount$"
|
||||
description = "number of udp retries before giving up (default is 3)"
|
||||
}
|
||||
"--no-validation" = {
|
||||
set_if = "$openvpn_no-validation$"
|
||||
description = "do not validate response"
|
||||
}
|
||||
}
|
||||
|
||||
vars.openvpn_address = "$address$"
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>github@fischl-online.de</email>
|
||||
<name>Anton Fischl</name>
|
||||
</maintainer>
|
||||
<stabilize-allarches/>
|
||||
<upstream>
|
||||
<remote-id type="github">liquidat/nagios-icinga-openvpn</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Loading…
Reference in New Issue