Date: Fri, 13 Feb 2009 14:51:34 GMT From: "Andrey V. Scopenco" <andrey@scopenco.net> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/131643: [patch] net-mgmt/nagios - add new config option: Show passive events in Unhandled tab Message-ID: <200902131451.n1DEpYFN023763@www.freebsd.org> Resent-Message-ID: <200902131500.n1DF01q0062198@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 131643 >Category: ports >Synopsis: [patch] net-mgmt/nagios - add new config option: Show passive events in Unhandled tab >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Fri Feb 13 15:00:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Andrey V. Scopenco >Release: 7.1 amd64 >Organization: masterhost.ru >Environment: >Description: Hello, Be default Unhandled tab in Nagios web interface show filter with options: "Not In Scheduled Downtime & Has Not Been Acknowledged & Active Checks Enabled". In distributed Nagios master node receive passive events and show them in main screen but not in unhandled tab. This patch add port option that change unhandled filter to "Not In Scheduled Downtime & Has Not Been Acknowledged". After patching all passive service and host events will be in unhandled tab. This patch is very useful in distributed monitoring scheme. Thanks, Andrey V. Scopenco mailto: andrey@scopenco.net >How-To-Repeat: >Fix: Patch attached with submission follows: --- /usr/ports/net-mgmt/nagios.org/Makefile 2009-02-13 16:59:01.000000000 +0300 +++ /usr/ports/net-mgmt/nagios/Makefile 2009-02-13 17:15:26.000000000 +0300 @@ -25,7 +25,8 @@ OPTIONS= EMBEDDED_PERL "Enable embedded Perl [requires Perl 5.8.0+]" off \ NANOSLEEP "Use nanosleep in event timing" off \ - EVENT_BROKER "Enable event broker functionality" off + EVENT_BROKER "Enable event broker functionality" off \ + UNHANDLED "Show passive events in Unhandled" off GNU_CONFIGURE= yes @@ -104,6 +105,11 @@ CONFIGURE_ARGS+= --disable-event-broker .endif +.if defined(WITH_UNHANDLED) +pre-patch: + @${REINPLACE_CMD} -e 's|props=42|props=10|g' ${WRKSRC}/html/side.html.in +.endif + pre-install: @${SH} ${PKGINSTALL} ${DISTNAME} PRE-INSTALL Only in /usr/ports/net-mgmt/nagios: Makefile.orig >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902131451.n1DEpYFN023763>