mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
librenms-agent is an agent based on check_mk used with xinetd to provide
monitoring informations of machine to librenms server. WWW: https://github.com/librenms/librenms-agent PR: 211522 Submitted by: kiwi@oav.net
This commit is contained in:
parent
db3bbd7e19
commit
09068645c2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=440276
8 changed files with 119 additions and 0 deletions
|
@ -109,6 +109,7 @@
|
|||
SUBDIR += lanmap
|
||||
SUBDIR += lg
|
||||
SUBDIR += librenms
|
||||
SUBDIR += librenms-agent
|
||||
SUBDIR += libsmi
|
||||
SUBDIR += lldpd
|
||||
SUBDIR += mbrowse
|
||||
|
|
49
net-mgmt/librenms-agent/Makefile
Normal file
49
net-mgmt/librenms-agent/Makefile
Normal file
|
@ -0,0 +1,49 @@
|
|||
# Created by: Nicolas Goralski <nicolas@goralski.fr>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= librenms-agent
|
||||
PORTVERSION= 0.3
|
||||
CATEGORIES= net-mgmt
|
||||
|
||||
MAINTAINER= kiwi@oav.net
|
||||
COMMENT= Agents and plugins for librenms
|
||||
|
||||
LICENSE= GPLv2
|
||||
|
||||
USES= shebangfix python:2:run php:cli
|
||||
NO_ARCH= yes
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= librenms
|
||||
GH_TAGNAME= fb678cb
|
||||
|
||||
NO_BUILD= yes
|
||||
|
||||
SHEBANG_FILES= agent-local/*
|
||||
|
||||
RUN_DEPENDS+= xinetd:security/xinetd \
|
||||
bash:shells/bash
|
||||
|
||||
LIB_DEPENDS+= libstatgrab.so:devel/libstatgrab \
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/check_mk_agent_freebsd
|
||||
@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/mk_enplug
|
||||
@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/check_mk_xinetd
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/xinetd.d
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/check_mk_agent/plugins
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/check_mk_agent/repo
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/check_mk_agent/local
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/check_mk_agent_freebsd ${STAGEDIR}${PREFIX}/bin/check_mk_agent
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/mk_enplug ${STAGEDIR}${PREFIX}/bin/
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/check_mk_xinetd ${STAGEDIR}${PREFIX}/etc/xinetd.d/check_mk
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/snmp/distro ${STAGEDIR}${PREFIX}/bin
|
||||
|
||||
@cd ${WRKSRC} ; \
|
||||
for agent_local in $$( ${FIND} ./agent-local -type f ! -name README ); do \
|
||||
${INSTALL_SCRIPT} "$$agent_local" ${STAGEDIR}${PREFIX}/lib/check_mk_agent/repo/ ; \
|
||||
done
|
||||
|
||||
.include <bsd.port.mk>
|
3
net-mgmt/librenms-agent/distinfo
Normal file
3
net-mgmt/librenms-agent/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
TIMESTAMP = 1494084135
|
||||
SHA256 (librenms-librenms-agent-0.3-fb678cb_GH0.tar.gz) = 647aa31ceb32a6df3300244ab4b454c9dbcd940cefb2b46b349761e5e17abdbc
|
||||
SIZE (librenms-librenms-agent-0.3-fb678cb_GH0.tar.gz) = 42887
|
|
@ -0,0 +1,13 @@
|
|||
--- check_mk_agent_freebsd.orig 2016-08-01 16:26:27 UTC
|
||||
+++ check_mk_agent_freebsd
|
||||
@@ -40,8 +40,8 @@
|
||||
export LC_ALL=C
|
||||
unset LANG
|
||||
|
||||
-export MK_LIBDIR="/usr/local/lib/check_mk_agent"
|
||||
-export MK_CONFDIR="/etc/check_mk"
|
||||
+export MK_LIBDIR="%%PREFIX%%/lib/check_mk_agent"
|
||||
+export MK_CONFDIR="%%PREFIX%%/etc/check_mk"
|
||||
export MK_TMPDIR="/var/run/check_mk"
|
||||
|
||||
|
11
net-mgmt/librenms-agent/files/patch-check__mk__xinetd
Normal file
11
net-mgmt/librenms-agent/files/patch-check__mk__xinetd
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- check_mk_xinetd.orig 2016-08-01 16:26:27 UTC
|
||||
+++ check_mk_xinetd
|
||||
@@ -30,7 +30,7 @@ service check_mk
|
||||
protocol = tcp
|
||||
wait = no
|
||||
user = root
|
||||
- server = /usr/bin/check_mk_agent
|
||||
+ server = %%PREFIX%%/bin/check_mk_agent
|
||||
|
||||
# If you use fully redundant monitoring and poll the client
|
||||
# from more then one monitoring servers in parallel you might
|
13
net-mgmt/librenms-agent/files/patch-mk__enplug
Normal file
13
net-mgmt/librenms-agent/files/patch-mk__enplug
Normal file
|
@ -0,0 +1,13 @@
|
|||
--- mk_enplug.orig 2016-08-01 16:26:27 UTC
|
||||
+++ mk_enplug
|
||||
@@ -14,8 +14,8 @@
|
||||
#
|
||||
# See http://www.gnu.org/licenses/gpl.txt for the full license
|
||||
|
||||
-plugdir=/usr/lib/check_mk_agent/plugins
|
||||
-repodir=/usr/lib/check_mk_agent/repo
|
||||
+plugdir=%%PREFIX%%/lib/check_mk_agent/plugins
|
||||
+repodir=%%PREFIX%%/lib/check_mk_agent/repo
|
||||
|
||||
findscripts() {
|
||||
find ${repodir} -type f | sed -e "s#$repodir/##g"
|
4
net-mgmt/librenms-agent/pkg-descr
Normal file
4
net-mgmt/librenms-agent/pkg-descr
Normal file
|
@ -0,0 +1,4 @@
|
|||
librenms-agent is an agent based on check_mk used with xinetd to provide
|
||||
monitoring informations of machine to librenms server.
|
||||
|
||||
WWW: https://github.com/librenms/librenms-agent
|
25
net-mgmt/librenms-agent/pkg-plist
Normal file
25
net-mgmt/librenms-agent/pkg-plist
Normal file
|
@ -0,0 +1,25 @@
|
|||
bin/check_mk_agent
|
||||
bin/distro
|
||||
bin/mk_enplug
|
||||
etc/xinetd.d/check_mk
|
||||
lib/check_mk_agent/repo/apache
|
||||
lib/check_mk_agent/repo/bind
|
||||
lib/check_mk_agent/repo/ceph
|
||||
lib/check_mk_agent/repo/dmi
|
||||
lib/check_mk_agent/repo/dpkg
|
||||
lib/check_mk_agent/repo/drbd
|
||||
lib/check_mk_agent/repo/hddtemp
|
||||
lib/check_mk_agent/repo/memcached
|
||||
lib/check_mk_agent/repo/munin
|
||||
lib/check_mk_agent/repo/mysql
|
||||
lib/check_mk_agent/repo/nfsstats
|
||||
lib/check_mk_agent/repo/nginx
|
||||
lib/check_mk_agent/repo/powerdns
|
||||
lib/check_mk_agent/repo/powerdns-recursor
|
||||
lib/check_mk_agent/repo/proxmox
|
||||
lib/check_mk_agent/repo/rpm
|
||||
lib/check_mk_agent/repo/rrdcached
|
||||
lib/check_mk_agent/repo/temperature
|
||||
lib/check_mk_agent/repo/tinydns
|
||||
@dir lib/check_mk_agent/local
|
||||
@dir lib/check_mk_agent/plugins
|
Loading…
Add table
Reference in a new issue