Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Mar 2006 21:08:08 -0600 (CST)
From:      "Douglas K. Rand" <rand@meridian-enviro.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/95096: New Port: net-mgmt/nagcon Nagios 2.0 console monitor
Message-ID:  <200603300308.k2U388Lq017293@delta.meridian-enviro.com>
Resent-Message-ID: <200603300310.k2U3AIMa025694@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         95096
>Category:       ports
>Synopsis:       New Port: net-mgmt/nagcon Nagios 2.0 console monitor
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 30 03:10:18 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Douglas K. Rand
>Release:        FreeBSD 6.1-PRERELEASE i386
>Organization:
Meridian Environmental Technology, Inc.
>Environment:
System: FreeBSD delta.meridian-enviro.com 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #1: Wed Mar 22 17:31:09 CST 2006 root@delta.meridian-enviro.com:/usr/obj/usr/src/sys/FCST i386


	
>Description:
	The existing Nagios console (a.k.a. curses) monitoring program
	nsc doesn't support Nagios 2.0. The nagcon program is a small
	C++ program that supports Nagios 2.0, but not Nagios 1.x.

	I'm not completely sure that net-mgmt is the place for this.
	Nagios is here, but sysutils also wouldn't be a horrible place 
	either.  Feel free to recategorize if appropiate.
>How-To-Repeat:
	Want to see what's going on with Nagios but you don't have a web browser.
>Fix:

# 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:
#
#	net-mgmt/nagcon
#	net-mgmt/nagcon/Makefile
#	net-mgmt/nagcon/distinfo
#	net-mgmt/nagcon/files
#	net-mgmt/nagcon/files/patch-br.h
#	net-mgmt/nagcon/files/patch-nc.cpp
#	net-mgmt/nagcon/pkg-descr
#
echo c - net-mgmt/nagcon
mkdir -p net-mgmt/nagcon > /dev/null 2>&1
echo x - net-mgmt/nagcon/Makefile
sed 's/^X//' >net-mgmt/nagcon/Makefile << 'END-of-net-mgmt/nagcon/Makefile'
X# ports collection makefile for:	nagcon
X# Date created:			Wed Mar 29 20:41:02 CST 2006
X# Whom:				Douglas K. Rand <rand@meridian-enviro.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	nagcon
XPORTVERSION=	0.0.13
XCATEGORIES=	net-mgmt
XMASTER_SITES=	http://www.vanheusden.com/nagcon/
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	rand@meridian-enviro.com
XCOMMENT=	Nagios 2.0 console monitor
X
XUSE_GMAKE=	YES
XPLIST_FILES=	bin/nagcon
X
X.include <bsd.port.mk>
END-of-net-mgmt/nagcon/Makefile
echo x - net-mgmt/nagcon/distinfo
sed 's/^X//' >net-mgmt/nagcon/distinfo << 'END-of-net-mgmt/nagcon/distinfo'
XMD5 (nagcon-0.0.13.tgz) = 204a2a397a5c00e14be5ff97f7660658
XSHA256 (nagcon-0.0.13.tgz) = 7a1cdb5b17e71410d2378b2096c59d9b4a773f9c6aa7fbbc66f10114a836231d
XSIZE (nagcon-0.0.13.tgz) = 10667
END-of-net-mgmt/nagcon/distinfo
echo c - net-mgmt/nagcon/files
mkdir -p net-mgmt/nagcon/files > /dev/null 2>&1
echo x - net-mgmt/nagcon/files/patch-br.h
sed 's/^X//' >net-mgmt/nagcon/files/patch-br.h << 'END-of-net-mgmt/nagcon/files/patch-br.h'
X--- ./br.h.orig	Tue Mar 28 20:54:02 2006
X+++ ./br.h	Tue Mar 28 20:56:02 2006
X@@ -8,6 +8,12 @@
X #define likely(x)       __builtin_expect((x),1)
X #define unlikely(x)     __builtin_expect((x),0)
X 
X+/* FreeBSD uses open/stat/lseek/off_t rather than open64/stat64/lseek64/off64_t */
X+#define stat64 stat
X+#define lseek64 lseek
X+#define open64 open
X+#define off64_t off_t
X+
X class buffered_reader
X {
X private:
END-of-net-mgmt/nagcon/files/patch-br.h
echo x - net-mgmt/nagcon/files/patch-nc.cpp
sed 's/^X//' >net-mgmt/nagcon/files/patch-nc.cpp << 'END-of-net-mgmt/nagcon/files/patch-nc.cpp'
X--- ./nc.cpp.orig	Tue Mar 28 20:58:16 2006
X+++ ./nc.cpp	Wed Mar 29 20:39:15 2006
X@@ -182,7 +182,7 @@
X 	version();
X 
X 	printf("-f file   what file to monitor (usuallly:\n");
X-	printf("          /usr/local/nagios/var/status.log, look for status_file in\n");
X+	printf("          /var/spool/nagios/status.dat, look for status_file in\n");
X 	printf("          the nagios.cfg file\n");
X 	printf("-i x      check interval (in seconds)\n");
X 	printf("-a        list also the services for hosts that are down\n");
X@@ -208,7 +208,7 @@
X 	WINDOW *win;
X 	int sw;
X 
X-	char *statuslog = "/usr/local/nagios/var/status.log";
X+	char *statuslog = "/var/spool/nagios/status.dat";
X 	int interval = 5;
X 	char list_all_problems = 0;
X 	char always_notify = 0;
END-of-net-mgmt/nagcon/files/patch-nc.cpp
echo x - net-mgmt/nagcon/pkg-descr
sed 's/^X//' >net-mgmt/nagcon/pkg-descr << 'END-of-net-mgmt/nagcon/pkg-descr'
XNagcon is a console application interfacing to Nagios 2.0 which gives
Xyou an overview of all services with troubled services.
X
XWWW: http://www.vanheusden.com/nagcon
END-of-net-mgmt/nagcon/pkg-descr
exit


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603300308.k2U388Lq017293>