import Cnagios, based on a submission from Julien TOUCHE.

Cnagios is a full-screen terminal interface for viewing Nagios
HOST and SERVICE objects, and the durations of their current states.

It's lightning fast because it's written in C using the curses
library. And it's super flexible because it uses hooks directly
into the perl C library to shorten plugin output and filter the
displayed HOSTs or SERVICEs.

ok ian (for an earlier version without a license, upstream added
a nice one when I asked, thanks!) "commit it dammit" henning
This commit is contained in:
sthen 2008-02-05 23:00:22 +00:00
parent a0a3998c0c
commit 6f9b9d2771
5 changed files with 100 additions and 0 deletions

View File

@ -0,0 +1,44 @@
# $OpenBSD: Makefile,v 1.1.1.1 2008/02/05 23:00:22 sthen Exp $
COMMENT = console interface for nagios
DISTNAME = cnagios-0.21
CATEGORIES = net/nagios
HOMEPAGE = http://noc.hep.wisc.edu/cnagios.html
MAINTAINER = Stuart Henderson <sthen@openbsd.org>
WANTLIB = c perl util curses m
# ISC
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
MASTER_SITES = ftp://noc.hep.wisc.edu/pub/src/cnagios/
NO_REGRESS = Yes
RUN_DEPENDS = ::net/nagios/nagios
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = --with-nagios-data=2 \
--with-etc-dir="${SYSCONFDIR}/cnagios" \
--with-var-dir="/var/nagios"
ALL_TARGET = cnagios
do-install:
$(INSTALL_PROGRAM) $(WRKSRC)/cnagios ${PREFIX}/bin/
$(INSTALL_DATA_DIR) ${PREFIX}/share/doc/cnagios
$(INSTALL_DATA) $(WRKSRC)/cnagios.help ${PREFIX}/share/doc/cnagios/
$(INSTALL_DATA) $(WRKSRC)/README ${PREFIX}/share/doc/cnagios/
@perl -pi -e 's,/usr/local/nagios/etc,${SYSCONFDIR}/cnagios,g;' \
-e 's,/usr/local/nagios/bin,${TRUEPREFIX}/bin,' \
${PREFIX}/share/doc/cnagios/README
$(INSTALL_DATA_DIR) ${PREFIX}/share/examples/cnagios
$(INSTALL_SCRIPT) $(WRKSRC)/cnagios.pl ${PREFIX}/share/examples/cnagios
$(INSTALL_SCRIPT) $(WRKSRC)/cnagiosrc ${PREFIX}/share/examples/cnagios
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (cnagios-0.21.tar.gz) = 9XPBQjOJ2OYU17CJRgd4kw==
RMD160 (cnagios-0.21.tar.gz) = j+oCu186ntlQEwyPOPKrp0ARSUs=
SHA1 (cnagios-0.21.tar.gz) = HaO4n8NLVqxXdp4Qa8GU5bR2u9w=
SHA256 (cnagios-0.21.tar.gz) = xN+Ajyz55koZCq2eATe1DY+d+Ac7Yh3ES1eyINqedxQ=
SIZE (cnagios-0.21.tar.gz) = 56744

View File

@ -0,0 +1,32 @@
$OpenBSD: patch-configure,v 1.1.1.1 2008/02/05 23:00:22 sthen Exp $
--- configure.orig Tue Feb 5 12:53:01 2008
+++ configure Tue Feb 5 14:27:53 2008
@@ -1480,6 +1480,9 @@ fi;
if test "X $DATA_VER" != "X " ; then
echo "nagios data ver is $DATA_VER"
NAGIOS_STATUS_DATA_VERSION=$DATA_VER
+ if test "${DATA_VER}" == "2" ; then
+ NAGIOS_STATUS_DATA_FILE="$NAGIOS_VAR_DIR/status.dat"
+ fi
fi
echo "nagios status file... $NAGIOS_STATUS_DATA_FILE"
@@ -1488,17 +1491,8 @@ echo "nagios data version... $NAGIOS_STATUS_DATA_VERSI
-if test "X $HOSTNAME" = "X chive.hep.wisc.edu" ; then
- SITE_NAME="TEST "
+ SITE_NAME="OpenBSD World: "
echo "site name... $SITE_NAME"
-else
- echo "enter terse site name (just return for none): "
- read SITE_NAME
- if test "X $SITE_NAME" != "X " ; then
- SITE_NAME="$SITE_NAME "
- fi
-fi
-
ac_config_files="$ac_config_files Makefile cnagios.h"

View File

@ -0,0 +1,7 @@
Cnagios is a full-screen terminal interface for viewing Nagios
HOST and SERVICE objects, and the durations of their current states.
It's lightning fast because it's written in C using the curses
library. And it's super flexible because it uses hooks directly
into the perl C library to shorten plugin output and filter the
displayed HOSTs or SERVICEs.

View File

@ -0,0 +1,12 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/02/05 23:00:22 sthen Exp $
bin/cnagios
share/doc/cnagios/
@sample ${SYSCONFDIR}/cnagios/
share/doc/cnagios/README
share/doc/cnagios/cnagios.help
@sample ${SYSCONFDIR}/cnagios/cnagios.help
share/examples/cnagios/
share/examples/cnagios/cnagios.pl
@sample ${SYSCONFDIR}/cnagios/cnagios.pl
share/examples/cnagios/cnagiosrc
@sample ${SYSCONFDIR}/cnagios/cnagiosrc