FreeBSD Bugzilla – Attachment 215138 Details for
Bug 246914
[NEW PORT] net-mgmt/nrpe4: Nagios Remote Plugin Executor version 4
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
NRPEv4
nrpe4.shar (text/plain), 7.10 KB, created by
Michael Muenz
on 2020-06-01 18:24:18 UTC
(
hide
)
Description:
NRPEv4
Filename:
MIME Type:
Creator:
Michael Muenz
Created:
2020-06-01 18:24:18 UTC
Size:
7.10 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># nrpe4 ># nrpe4/Makefile ># nrpe4/distinfo ># nrpe4/files ># nrpe4/files/patch-include_common.h.in ># nrpe4/files/patch-src_check__nrpe.c ># nrpe4/files/patch-src_nrpe.c ># nrpe4/files/pkg-message.in ># nrpe4/files/nrpe4.in ># nrpe4/pkg-descr ># nrpe4/pkg-plist ># >echo c - nrpe4 >mkdir -p nrpe4 > /dev/null 2>&1 >echo x - nrpe4/Makefile >sed 's/^X//' >nrpe4/Makefile << 'a4e67c0a3330a0a334624f67ed2f832c' >X# $FreeBSD$ >X >XPORTNAME= nrpe >XPORTVERSION= 4.0.3 >XDISTVERSIONPREFIX= nrpe- >XCATEGORIES= net-mgmt >XPKGNAMESUFFIX= 4 >X >XMAINTAINER= m.muenz@gmail.com >XCOMMENT= Nagios Remote Plugin Executor >X >XLICENSE= GPLv2 >X >XUSES= perl5 >XUSE_PERL5= build >XUSE_RC_SUBR= nrpe4 >XGNU_CONFIGURE= yes >X >XUSE_GITHUB= yes >XGH_ACCOUNT= NagiosEnterprises >X >XOPTIONS_DEFINE= SSL ARGS >XOPTIONS_RADIO= PLUGINS >XOPTIONS_RADIO_PLUGINS= MONPLUGINS NAGPLUGINS >XOPTIONS_DEFAULT=NAGPLUGINS SSL >X >XSSL_DESC= Enable SSL support (disables plain-text server) >XARGS_DESC= Enable command argument processing >XNAGPLUGINS_DESC=Use net-mgmt/nagios-plugins >XMONPLUGINS_DESC=Use net-mgmt/monitoring-plugins >X >XSSL_USES= ssl >XSSL_CONFIGURE_ENABLE= ssl >XSSL_CONFIGURE_WITH= ssl=${OPENSSLBASE} ssl-inc=${OPENSSLINC} ssl-lib=${OPENSSLLIB} >XSSL_CFLAGS= -I${OPENSSLINC} >X >XARGS_CONFIGURE_ON= --enable-command-args >XARGS_CONFIGURE_OFF= --disable-command-args >X >XMONPLUGINS_RUN_DEPENDS= ${LOCALBASE}/libexec/nagios/check_nagios:net-mgmt/monitoring-plugins >XNAGPLUGINS_RUN_DEPENDS= ${LOCALBASE}/libexec/nagios/check_nagios:net-mgmt/nagios-plugins >X >XNAGIOSUSER?= nagios >XNAGIOSGROUP?= nagios >XUSERS= ${NAGIOSUSER} >XGROUPS= ${NAGIOSGROUP} >X >XNRPE_PIDDIR?= /var/run/nrpe4 >X >XCONFIGURE_ARGS+=--bindir=${PREFIX}/sbin \ >X --libexecdir=${PREFIX}/libexec/nagios \ >X --sysconfdir=${PREFIX}/etc \ >X --with-nrpe-user=${NAGIOSUSER} \ >X --with-nrpe-group=${NAGIOSGROUP} >X >XPLIST_SUB= NAGIOSUSER=${NAGIOSUSER} \ >X NAGIOSGROUP=${NAGIOSGROUP} \ >X NRPE_PIDDIR=${NRPE_PIDDIR} >XSUB_LIST+= PIDDIR=${NRPE_PIDDIR} >X >XSUB_FILES= pkg-message >X >Xdo-install: >X ${INSTALL} -d ${STAGEDIR}${NRPE_PIDDIR} >X ${INSTALL_PROGRAM} ${WRKSRC}/src/nrpe ${STAGEDIR}${PREFIX}/sbin/nrpe4 >X ${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nagios >X ${INSTALL_PROGRAM} ${WRKSRC}/src/check_nrpe ${STAGEDIR}${PREFIX}/libexec/nagios/check_nrpe4 >X ${INSTALL_DATA} ${WRKSRC}/sample-config/nrpe.cfg ${STAGEDIR}${PREFIX}/etc/nrpe.cfg.sample >X >X.include <bsd.port.mk> >a4e67c0a3330a0a334624f67ed2f832c >echo x - nrpe4/distinfo >sed 's/^X//' >nrpe4/distinfo << 'b004158679dbacb8c87e7c71ab2618ee' >XTIMESTAMP = 1590991643 >XSHA256 (NagiosEnterprises-nrpe-nrpe-4.0.3_GH0.tar.gz) = 82266911b895ed84f6ecac63d2d1356581e7961376ea0ac5f772ec5a7dba3d21 >XSIZE (NagiosEnterprises-nrpe-nrpe-4.0.3_GH0.tar.gz) = 524202 >b004158679dbacb8c87e7c71ab2618ee >echo c - nrpe4/files >mkdir -p nrpe4/files > /dev/null 2>&1 >echo x - nrpe4/files/patch-include_common.h.in >sed 's/^X//' >nrpe4/files/patch-include_common.h.in << 'c23d121dd2f4b7a1601597a239e262bb' >X--- include/common.h.in.orig 2017-12-08 11:11:28 UTC >X+++ include/common.h.in >X@@ -30,11 +30,16 @@ >X >X #ifdef HAVE_SSL >X #include <@SSL_INC_PREFIX@@SSL_HDR@> >X+#include <@SSL_INC_PREFIX@crypto.h> >X # ifdef SSL_TYPE_openssl >X # include <@SSL_INC_PREFIX@err.h> >X # include <@SSL_INC_PREFIX@rand.h> >X # include <@SSL_INC_PREFIX@engine.h> >X+# include <@SSL_INC_PREFIX@crypto.h> >X+# if defined (LIBRESSL_VERSION_NUMBER) >X+# include <@SSL_INC_PREFIX@opensslfeatures.h> >X+# endif >X # endif >X #endif >X >X #define PROGRAM_VERSION "3.2.1" >c23d121dd2f4b7a1601597a239e262bb >echo x - nrpe4/files/patch-src_check__nrpe.c >sed 's/^X//' >nrpe4/files/patch-src_check__nrpe.c << 'ae0e4a7383b709c768507a1f7e0e9c32' >X--- src/check_nrpe.c.orig 2017-04-17 14:21:54 UTC >X+++ src/check_nrpe.c >X@@ -839,7 +839,7 @@ void setup_ssl() >X exit(STATE_CRITICAL); >X } >X >X-#if OPENSSL_VERSION_NUMBER >= 0x10100000 >X+#if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER) >X >X SSL_CTX_set_max_proto_version(ctx, 0); >X >ae0e4a7383b709c768507a1f7e0e9c32 >echo x - nrpe4/files/patch-src_nrpe.c >sed 's/^X//' >nrpe4/files/patch-src_nrpe.c << '64d7205060bd581e48a03a0ac51c0ef0' >X--- src/nrpe.c.orig 2017-04-28 10:29:47 UTC >X+++ src/nrpe.c >X@@ -320,7 +320,7 @@ void init_ssl(void) >X exit(STATE_CRITICAL); >X } >X >X-#if OPENSSL_VERSION_NUMBER >= 0x10100000 >X+#if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER) >X >X SSL_CTX_set_max_proto_version(ctx, 0); >X >64d7205060bd581e48a03a0ac51c0ef0 >echo x - nrpe4/files/pkg-message.in >sed 's/^X//' >nrpe4/files/pkg-message.in << '586dd0f38594a93b0d0b45a7ac49920a' >X[ >X{ type: install >X message: <<EOM >X Enable NRPE in /etc/rc.conf with the following line: >X >X nrpe4_enable="YES" >X >X A sample configuration is available in %%PREFIX%%/etc/nrpe.cfg.sample. >X Copy to nrpe.cfg where required and edit to suit your needs. >XEOM >X} >X] >586dd0f38594a93b0d0b45a7ac49920a >echo x - nrpe4/files/nrpe4.in >sed 's/^X//' >nrpe4/files/nrpe4.in << '9943e528c5a3364949c03854a62f1649' >X#!/bin/sh >X >X# $FreeBSD: head/net-mgmt/nrpe4/files/nrpe3.in 445504 2017-07-11 16:50:03Z zeising $ >X# >X# PROVIDE: nrpe4 >X# REQUIRE: LOGIN >X# KEYWORD: shutdown >X# >X# Add the following lines to /etc/rc.conf to enable nrpe4: >X# nrpe4_enable (bool): Set to "NO" by default. >X# Set it to "YES" to enable nrpe4. >X# nrpe4_flags (str): Not set by default. >X# nrpe4_configfile (str): Set to "%%PREFIX%%/etc/nrpe.cfg" by default. >X >X. /etc/rc.subr >X >Xname=nrpe4 >Xrcvar=nrpe4_enable >X >Xload_rc_config "${name}" >X >X: ${nrpe4_enable:=NO} >X: ${nrpe4_configfile:=%%PREFIX%%/etc/nrpe.cfg} >X >Xrequired_files="${nrpe4_configfile}" >X >Xcommand="%%PREFIX%%/sbin/nrpe4" >Xcommand_args="-c ${nrpe4_configfile} -d" >Xextra_commands=reload >Xsig_reload=HUP >X >Xstart_precmd=nrpe4_prestart >Xstop_precmd=find_pidfile >X >Xfind_pidfile() >X{ >X [ -n "$nrpe4_pidfile" ] && >X warn "No longer necessary to set nrpe4_pidfile in rc.conf[.local]" >X >X if get_pidfile_from_conf pid_file ${nrpe4_configfile}; then >X pidfile="$_pidfile_from_conf" >X else >X pidfile='%%PIDDIR%%/nrpe4.pid' >X fi >X} >X >Xnrpe4_prestart() >X{ >X find_pidfile >X install -d -o ${nrpe_user:-nagios} ${pidfile%/*} >X} >X >Xrun_rc_command "$1" >9943e528c5a3364949c03854a62f1649 >echo x - nrpe4/pkg-descr >sed 's/^X//' >nrpe4/pkg-descr << 'ab40f6f9d16ba992de939f8570e3eabd' >Xnrpe is used to execute Nagios plugins on remote hosts and report the results >Xto the main Nagios server. From the Nagios homepage: >X >XAllows you to execute "local" plugins (like check_disk, check_procs, etc.) on >Xremote hosts. The check_nrpe plugin is called from Nagios and actually makes >Xthe plugin requests to the remote host. Requires that nrpe be running on the >Xremote host (either as a standalone daemon or as a service under inetd). >X >XWWW: http://www.nagios.org/ >ab40f6f9d16ba992de939f8570e3eabd >echo x - nrpe4/pkg-plist >sed 's/^X//' >nrpe4/pkg-plist << '16213f162fd011dc19d74579476008ab' >X%%ETCDIR%%.cfg.sample >Xlibexec/nagios/check_nrpe4 >Xsbin/nrpe4 >X@dir %%NRPE_PIDDIR%% >16213f162fd011dc19d74579476008ab >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 246914
: 215138