Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Dec 2024 00:58:56 GMT
From:      Robert Clausecker <fuz@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 9f44d73b21ed - main - net-mgmt/check_wg: Icinga2 health check of wireguard peers, using output of wg(8)
Message-ID:  <202412170058.4BH0wukA094702@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9f44d73b21edeaa1a2e0ce304eece2b3031d7f96

commit 9f44d73b21edeaa1a2e0ce304eece2b3031d7f96
Author:     Denis Shaposhnikov <dsh@bamus.cz>
AuthorDate: 2024-12-11 15:11:53 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2024-12-17 00:31:50 +0000

    net-mgmt/check_wg: Icinga2 health check of wireguard peers, using output of wg(8)
    
    Icinga2 health check of wireguard peers, using output of wg(8).
    
    It analizes latest handshake of every peer and outputs warning or critical
    status if any of them is greater of given threshold.
    
    WWW: https://github.com/dsh2dsh/check_wg
---
 net-mgmt/Makefile           |  1 +
 net-mgmt/check_wg/Makefile  | 25 +++++++++++++++++++++++++
 net-mgmt/check_wg/distinfo  |  5 +++++
 net-mgmt/check_wg/pkg-descr |  4 ++++
 4 files changed, 35 insertions(+)

diff --git a/net-mgmt/Makefile b/net-mgmt/Makefile
index 469fd6856a06..51cec1776dd7 100644
--- a/net-mgmt/Makefile
+++ b/net-mgmt/Makefile
@@ -43,6 +43,7 @@
     SUBDIR += check_nwc_health
     SUBDIR += check_ssl_cert
     SUBDIR += check_ups_health
+    SUBDIR += check_wg
     SUBDIR += chillispot
     SUBDIR += choparp
     SUBDIR += cidr
diff --git a/net-mgmt/check_wg/Makefile b/net-mgmt/check_wg/Makefile
new file mode 100644
index 000000000000..92ff975a4dda
--- /dev/null
+++ b/net-mgmt/check_wg/Makefile
@@ -0,0 +1,25 @@
+PORTNAME=	check_wg
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.0.7
+CATEGORIES=	net-mgmt
+
+MAINTAINER=	dsh@bamus.cz
+COMMENT=	Icinga2 health check of wireguard peers, using output of wg(8)
+WWW=		https://github.com/dsh2dsh/${PORTNAME}
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		go:1.22,modules
+
+GO_MODULE=	github.com/dsh2dsh/${PORTNAME}
+GO_BUILDFLAGS=	-ldflags="${STRIP} -w -X ${GO_MODULE}/main.version=${DISTVERSIONFULL}"
+
+PLIST_FILES=	libexec/nagios/${PORTNAME}
+
+do-install:
+	${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nagios
+	${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/${PORTNAME} \
+		${STAGEDIR}${PREFIX}/libexec/nagios/
+
+.include <bsd.port.mk>
diff --git a/net-mgmt/check_wg/distinfo b/net-mgmt/check_wg/distinfo
new file mode 100644
index 000000000000..ad28467f8c81
--- /dev/null
+++ b/net-mgmt/check_wg/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1716219169
+SHA256 (go/net-mgmt_check_wg/check_wg-v0.0.7/v0.0.7.mod) = 70bf440bb65daba36df9cf87cb3314523bb0435053cd72ff796b932cd3790809
+SIZE (go/net-mgmt_check_wg/check_wg-v0.0.7/v0.0.7.mod) = 423
+SHA256 (go/net-mgmt_check_wg/check_wg-v0.0.7/v0.0.7.zip) = f4f19a8cc0090d92323a4ebeb6ded085f7d1614e18f6ab1f7d67db0b41a0d2ee
+SIZE (go/net-mgmt_check_wg/check_wg-v0.0.7/v0.0.7.zip) = 18637
diff --git a/net-mgmt/check_wg/pkg-descr b/net-mgmt/check_wg/pkg-descr
new file mode 100644
index 000000000000..c60d1297c715
--- /dev/null
+++ b/net-mgmt/check_wg/pkg-descr
@@ -0,0 +1,4 @@
+Icinga2 health check of wireguard peers, using output of wg(8).
+
+It analizes latest handshake of every peer and outputs warning or critical
+status if any of them is greater of given threshold.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202412170058.4BH0wukA094702>