check_multi is kind of a wrapper plugin which takes benefit of the

Nagios 3.x capability to display multiple lines of plugin output.
It calls multiple child plugins and displays their output in the
long_plugin_output. A summary is given in the standard plugin output.
The child return code with the highest severity becomes the parent
(check_multi) plugin return code.

The configuration is very simple: a NRPE-stylish config file contains
a tag for each child plugin and then the check command line.

check_multi can cover complex Business Process Views - using a builtin
state evaluation mechanism. The second benefit is cluster monitoring
with no need for extra services. All you need is provided by check_multi.

LICENSE: GPL2 or later

WWW: http://www.my-plugin.de/wiki/projects/check_multi/start
This commit is contained in:
Dirk Meyer 2009-03-18 06:21:13 +00:00
parent f681514ee9
commit 0fa193c992
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=230347
5 changed files with 68 additions and 0 deletions

View file

@ -38,6 +38,7 @@
SUBDIR += cdpr
SUBDIR += cfgstoragemk
SUBDIR += cflowd
SUBDIR += check_multi
SUBDIR += check_snmp_pkgvuln
SUBDIR += chillispot
SUBDIR += choparp

View file

@ -0,0 +1,37 @@
# New ports collection makefile for: check_multi
# Date created: 18 Mar 2009
# Whom: dirk.meyer@dinoex.sub.org
#
# $FreeBSD$
#
PORTNAME= check_multi
PORTVERSION= 0.19
CATEGORIES= net-mgmt
MASTER_SITES= http://my-plugin.de/${PORTNAME}/
#PKGNAMEPREFIX= nagios-
DISTNAME= ${PORTNAME}-${PORTVERSION}.current
EXTRACT_SUFX= .tgz
MAINTAINER= dinoex@FreeBSD.org
COMMENT= A multi purpose wrapper plugin for Nagios
USE_PERL5_RUN= yes
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
PLUGIN_DIR= libexec/nagios
do-configure:
${REINPLACE_CMD} -e "s|/usr/bin/perl|${PERL5}|" \
${WRKSRC}/check_multi
do-install:
-${MKDIR} ${PREFIX}/${PLUGIN_DIR}
${INSTALL_SCRIPT} ${WRKSRC}/check_multi ${PREFIX}/${PLUGIN_DIR}/
.if !defined(NOPORTEXAMPLES)
${MKDIR} ${EXAMPLESDIR}
@${TAR} -C ${WRKSRC}/contrib -cf - . | ${TAR} -C ${EXAMPLESDIR} -xf -
.endif
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
MD5 (check_multi-0.19.current.tgz) = 0148abaccf51ef93c4acdf5735872011
SHA256 (check_multi-0.19.current.tgz) = beca8b28ffb0cdd95d786b3e36d9ce6f2fbd633063499303f8e8ea43cf82fe02
SIZE (check_multi-0.19.current.tgz) = 27113

View file

@ -0,0 +1,17 @@
check_multi is kind of a wrapper plugin which takes benefit of the
Nagios 3.x capability to display multiple lines of plugin output.
It calls multiple child plugins and displays their output in the
long_plugin_output. A summary is given in the standard plugin output.
The child return code with the highest severity becomes the parent
(check_multi) plugin return code.
The configuration is very simple: a NRPE-stylish config file contains
a tag for each child plugin and then the check command line.
check_multi can cover complex Business Process Views - using a builtin
state evaluation mechanism. The second benefit is cluster monitoring
with no need for extra services. All you need is provided by check_multi.
LICENSE: GPL2 or later
WWW: http://www.my-plugin.de/wiki/projects/check_multi/start

View file

@ -0,0 +1,10 @@
libexec/nagios/check_multi
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/check_multi.cmd
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cluster_example/download.cfg
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cluster_example/download.cmd
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cluster_example/download_my-plugin.cmd
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cluster_example/download_sourceforge.cmd
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/notify_service_html
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/cluster_example
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
@dirrmtry libexec/nagios