Date: Thu, 9 Jan 2025 11:20:37 GMT From: Li-Wen Hsu <lwhsu@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: def1943924a2 - main - Add net-mgmt/check_syncthing: Icinga2 monitoring plugin for syncthing daemon Message-ID: <202501091120.509BKb6Y044504@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/ports/commit/?id=def1943924a279d3133ef0fc677ddaebef5c2acd commit def1943924a279d3133ef0fc677ddaebef5c2acd Author: Denis Shaposhnikov <dsh@bamus.cz> AuthorDate: 2025-01-09 11:18:53 +0000 Commit: Li-Wen Hsu <lwhsu@FreeBSD.org> 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 <bsd.port.mk> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202501091120.509BKb6Y044504>