From nobody Thu Jan 9 11:20:37 2025 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YTMln3pZkz5kcQm; Thu, 09 Jan 2025 11:20:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YTMln3LsFz4lhv; Thu, 9 Jan 2025 11:20:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736421637; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MfGXnrLn1TXO9mFxuLvKT0FAe4sYDo8dJ3cs3vnx9ss=; b=L5WUYBmp/HMoA+edA5XDi3szFqbL+o2gFLn2Ew8eVU1e2n7mRyc+oTFoCWmX4nLY4Khz3u 0/2Edi2KsrCjDgeeJGK383JPgF6UjjIozyzvwqEXzGh+nuEO436BVgTmZOlw6/+jskGEqu Iew5xtW6rjpxiX/yH5SMw/P5/6uWvPXzpg94yb3jXc0DXc6w4aiVTnS000OKnD7O9S3aPI Z/rykEJmDsD1PEur+/BVz0tk01lezpVHwGY4vn8vNwEIouHz8RtMv3HbApRBsyW1OE7w61 6XNxveX/QqoLNTzhgaCA6KdI5ANE7pS5hgM1E51aSFip937C5683E4lmSEoRlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736421637; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MfGXnrLn1TXO9mFxuLvKT0FAe4sYDo8dJ3cs3vnx9ss=; b=jkBS/nYKeFMkBZcAhH/7AGI1xRHNBETq8LkOXbOgfZv1IqXPZSpYOwUBqdJ08JGs+pC8lN wJuKC6pLSBW6oCDzzQhSbJ/ICSDwimX+UhJyA6i3M6FToUq+UrMUc4oC5F1SEaWYYuLtDf wSdasAVwC25jG6kiA7qJkTCNkxEY9OWBfmN2JS/5ZQxx4xuJgCNFvL8UuXhOZ72O61ADIz U2sWLct5uIdGkjrKLPYhfYmLqfIDG+B5VVEZIaU8kOlS1YIMJRljzIiwUR9d5r1KfeZtpo LJ/ZGd6agujcl73scX412nrkrGxAnj4qrTJl31CZ/vwYdos2QxejlNcFtV7YXQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1736421637; a=rsa-sha256; cv=none; b=k1NV9wnUcJbr1lNF8O0y0fKYP23/5y/SaV/J0y3wzS3nekd/3WapdBbXatuT1UFzHagsfr gnwcaKckPtjapi0kuQhkOlyknLtNR50oGabRdK0D2S+FFfmfotCH6BnnhB8ZXgWljzumbv qx1XgBM54ayhaUxn3LJmOt9pdwVb0k2pVq4dz9Dzu3iNAe9tIA1JiSs7iHl/M4zV1RPJN7 HSPRVpNRseCk2CXbMHktc0HVjhNcdqIOf7JZQEVhEuztozoc2hs/UvRDCY0Q9PQm5q/kCn NXxJ6P6tyKCT/Br2axJ3Xo0XwDMed6X2BH6AIgYtwsMZILkFAONaxEdF9/dHvg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YTMln2nvGz8JW; Thu, 09 Jan 2025 11:20:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 509BKb1Q044507; Thu, 9 Jan 2025 11:20:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 509BKb6Y044504; Thu, 9 Jan 2025 11:20:37 GMT (envelope-from git) Date: Thu, 9 Jan 2025 11:20:37 GMT Message-Id: <202501091120.509BKb6Y044504@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Li-Wen Hsu Subject: git: def1943924a2 - main - Add net-mgmt/check_syncthing: Icinga2 monitoring plugin for syncthing daemon List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: def1943924a279d3133ef0fc677ddaebef5c2acd Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/ports/commit/?id=def1943924a279d3133ef0fc677ddaebef5c2acd commit def1943924a279d3133ef0fc677ddaebef5c2acd Author: Denis Shaposhnikov AuthorDate: 2025-01-09 11:18:53 +0000 Commit: Li-Wen Hsu CommitDate: 2025-01-09 11:19:50 +0000 Add net-mgmt/check_syncthing: Icinga2 monitoring plugin for syncthing daemon PR: 279859 --- net-mgmt/Makefile | 1 + net-mgmt/check_syncthing/Makefile | 28 ++++++++++++++++++++++++++++ net-mgmt/check_syncthing/distinfo | 7 +++++++ net-mgmt/check_syncthing/pkg-descr | 9 +++++++++ 4 files changed, 45 insertions(+) diff --git a/net-mgmt/Makefile b/net-mgmt/Makefile index 4d9eca57b793..8b14572480e5 100644 --- a/net-mgmt/Makefile +++ b/net-mgmt/Makefile @@ -42,6 +42,7 @@ SUBDIR += check_mysql_health SUBDIR += check_nwc_health SUBDIR += check_ssl_cert + SUBDIR += check_syncthing SUBDIR += check_ups_health SUBDIR += check_wg SUBDIR += chillispot diff --git a/net-mgmt/check_syncthing/Makefile b/net-mgmt/check_syncthing/Makefile new file mode 100644 index 000000000000..b344bdc951fa --- /dev/null +++ b/net-mgmt/check_syncthing/Makefile @@ -0,0 +1,28 @@ +PORTNAME= check_syncthing +DISTVERSIONPREFIX= v +DISTVERSION= 0.0.6 +CATEGORIES= net-mgmt + +MAINTAINER= dsh@bamus.cz +COMMENT= Icinga2 monitoring plugin for syncthing daemon +WWW= https://github.com/dsh2dsh/check_syncthing + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= go:1.22,modules + +USE_GITHUB= yes +GH_ACCOUNT= dsh2dsh + +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 diff --git a/net-mgmt/check_syncthing/distinfo b/net-mgmt/check_syncthing/distinfo new file mode 100644 index 000000000000..c0b26b82b4cf --- /dev/null +++ b/net-mgmt/check_syncthing/distinfo @@ -0,0 +1,7 @@ +TIMESTAMP = 1715192624 +SHA256 (go/net-mgmt_check_syncthing/dsh2dsh-check_syncthing-v0.0.6_GH0/v0.0.6.mod) = 8f1da3db7a75f90a2dfc086244f13cbaaecd5216501f83b1122a48dff43d79f0 +SIZE (go/net-mgmt_check_syncthing/dsh2dsh-check_syncthing-v0.0.6_GH0/v0.0.6.mod) = 575 +SHA256 (go/net-mgmt_check_syncthing/dsh2dsh-check_syncthing-v0.0.6_GH0/v0.0.6.zip) = 3068b81ea3ab574a909537ae54ead6ec1fc7a3bf7db88623025d8119c90ad1e8 +SIZE (go/net-mgmt_check_syncthing/dsh2dsh-check_syncthing-v0.0.6_GH0/v0.0.6.zip) = 41579 +SHA256 (go/net-mgmt_check_syncthing/dsh2dsh-check_syncthing-v0.0.6_GH0/dsh2dsh-check_syncthing-v0.0.6_GH0.tar.gz) = 5ec81072f96eee0f4f03c5becff1dc10d2e518cbf5e1b8b94c769c7d22146fa0 +SIZE (go/net-mgmt_check_syncthing/dsh2dsh-check_syncthing-v0.0.6_GH0/dsh2dsh-check_syncthing-v0.0.6_GH0.tar.gz) = 28487 diff --git a/net-mgmt/check_syncthing/pkg-descr b/net-mgmt/check_syncthing/pkg-descr new file mode 100644 index 000000000000..6455c10585bf --- /dev/null +++ b/net-mgmt/check_syncthing/pkg-descr @@ -0,0 +1,9 @@ +Icinga2 monitoring plugin for [syncthing] daemon. + +This plugin monitors syncthing daemon by using its [REST API]. Inspired by [bn8] +and [vlcty] projects. + +[syncthing]:https://github.com/syncthing/syncthing +[REST API]:https://docs.syncthing.net/dev/rest.html +[bn8]:https://gitea.zionetrix.net/bn8/check_syncthing.git +[vlcty]:https://github.com/vlcty/check_syncthing