Initial import of nagios 2.0b3 and base plugins 1.4.

Nagios is a host and service monitor designed to inform you of network
problems before your clients, end-users or managers do.  The monitoring
daemon runs intermittent checks on hosts and services you specify using
external "plugins" which return status information to Nagios. When problems
are encountered, the daemon can send notifications out to administrative
contacts in a variety of different ways (email, instant message, SMS, etc.).
Current status information, historical logs, and reports can all be accessed
via a web browser.

NOTE: Nagios might not work on 64bit archs.
This commit is contained in:
sturm 2005-07-25 16:32:05 +00:00
parent b477aa2e05
commit 9820b081ca
44 changed files with 1092 additions and 0 deletions

7
net/nagios/Makefile Normal file
View File

@ -0,0 +1,7 @@
# $OpenBSD: Makefile,v 1.1.1.1 2005/07/25 16:32:05 sturm Exp $
SUBDIR += nagios
SUBDIR += nagios,chroot
SUBDIR += plugins
.include <bsd.port.subdir.mk>

View File

@ -0,0 +1,89 @@
# $OpenBSD: Makefile,v 1.1.1.1 2005/07/25 16:32:05 sturm Exp $
COMMENT= "host and service monitor"
COMMENT-web= "cgis and webpages for nagios"
V= 2.0b3
DISTNAME= nagios-${V}
PKGNAME-web= nagios-web-${V}
CATEGORIES= net
HOMEPAGE= http://www.nagios.org/
MAINTAINER= Nikolay Sturm <sturm@openbsd.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MULTI_PACKAGES= -web
SUBPACKAGE?=
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=nagios/}
BUILD_DEPENDS= :gd-*:graphics/gd
RUN_DEPENDS= ::net/nagios/plugins
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS+=--datadir=/var/www/nagios \
--libexecdir=${PREFIX}/libexec/nagios \
--localstatedir=/var/nagios \
--sbindir=/var/www/cgi-bin/nagios \
--with-cgiurl=/cgi-bin/nagios \
--with-command-group=www \
--with-gd-inc=${LOCALBASE}/include \
--with-gd-lib=${LOCALBASE}/lib \
--with-lockfile=/var/run/nagios/nagios.pid \
--with-nagios-group=_nagios \
--with-nagios-user=_nagios
FLAVORS= chroot
FLAVOR?=
.if ${FLAVOR:L:Mchroot}
CHROOT= /var/www
PATCH_LIST= patch-* chroot-*
.else
CHROOT=
.endif
.if defined(PACKAGING)
WANTLIB= c m
. if ${SUBPACKAGE} == "-web"
WANTLIB+= jpeg png ttf z
PREFIX= /var/www
# overwrite RUN_DEPENDS in order to only depend on the base package
. if ${FLAVOR:L:Mchroot}
WANTLIB=
RUN_DEPENDS= nagios:nagios-${V}-chroot:net/nagios/nagios,chroot
. else
LIB_DEPENDS+= gd::graphics/gd
RUN_DEPENDS= nagios:nagios-${V}-!chroot:net/nagios/nagios
. endif
. else
WANTLIB+= pthread
. endif
.endif
NO_REGRESS= Yes
CONFIG_FILES0= cgi.cfg httpd.conf nagios.cfg resource.cfg
CONFIG_FILES1= bigger.cfg checkcommands.cfg minimal.cfg misccommands.cfg
EXDIR= ${PREFIX}/share/examples/nagios
SUBST_VARS= CHROOT
post-install:
${INSTALL_DATA_DIR} ${EXDIR}
@perl -i -pe "s,%%SYSCONFDIR%%,${SYSCONFDIR}," \
${WRKSRC}/sample-config/httpd.conf
.for f in ${CONFIG_FILES0}
${INSTALL_DATA} ${WRKSRC}/sample-config/${f} ${EXDIR}
.endfor
.for f in ${CONFIG_FILES1}
${INSTALL_DATA} ${WRKSRC}/sample-config/template-object/${f} ${EXDIR}
.endfor
.include <bsd.port.mk>

View File

@ -0,0 +1,4 @@
MD5 (nagios-2.0b3.tar.gz) = 051760458d961b6ee015b5932a8437c4
RMD160 (nagios-2.0b3.tar.gz) = 8f84a4406e1f4d5bd10d55a6fccbe58e01af489a
SHA1 (nagios-2.0b3.tar.gz) = 2bb8a58f68ba68f9e2914cd4a267bb9335b374d7
SIZE (nagios-2.0b3.tar.gz) = 1704070

View File

@ -0,0 +1,12 @@
$OpenBSD: chroot-cgi_Makefile_in,v 1.1.1.1 2005/07/25 16:32:05 sturm Exp $
--- cgi/Makefile.in.orig Mon Jan 24 12:31:08 2005
+++ cgi/Makefile.in Mon Jan 24 12:31:39 2005
@@ -36,7 +36,7 @@ CFLAGS=@CFLAGS@ @DEFS@ -DNSCGI
#CFLAGS_DEBUG=-ggdb3 -g3
#CFLAGS+=$(CFLAGS_WARN) $(CFLAGS_DEBUG)
-LDFLAGS=@LDFLAGS@
+LDFLAGS=-static @LDFLAGS@
LIBS=@LIBS@
CGIS=avail.cgi cmd.cgi config.cgi extinfo.cgi history.cgi notifications.cgi outages.cgi showlog.cgi status.cgi statuswml.cgi summary.cgi tac.cgi $(CGIEXTRAS)

View File

@ -0,0 +1,12 @@
$OpenBSD: chroot-sample-config_cgi_cfg_in,v 1.1.1.1 2005/07/25 16:32:05 sturm Exp $
--- sample-config/cgi.cfg.in.orig Sun Jan 30 16:45:34 2005
+++ sample-config/cgi.cfg.in Sun Jan 30 16:45:56 2005
@@ -21,7 +21,7 @@
# value is used to locate the logo images needed by the statusmap
# and statuswrl CGIs.
-physical_html_path=@datadir@
+physical_html_path=/nagios

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-Makefile_in,v 1.1.1.1 2005/07/25 16:32:05 sturm Exp $
--- Makefile.in.orig Mon Jan 31 20:38:45 2005
+++ Makefile.in Mon Jan 31 20:39:22 2005
@@ -57,7 +57,6 @@ all:
cd $(SRC_BASE) && $(MAKE)
cd $(SRC_CGI) && $(MAKE)
cd $(SRC_HTM) && $(MAKE)
- cd $(SRC_MODULE) && $(MAKE)
@echo ""
@echo "*** Compile finished ***"

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-base_Makefile_in,v 1.1.1.1 2005/07/25 16:32:05 sturm Exp $
--- base/Makefile.in.orig Thu Dec 9 07:48:33 2004
+++ base/Makefile.in Mon Feb 7 22:23:41 2005
@@ -181,10 +181,10 @@ distclean: clean
devclean: distclean
install:
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(BINDIR)
- $(INSTALL) -m 774 $(INSTALL_OPTS) @nagios_name@ $(DESTDIR)$(BINDIR)
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(BINDIR)
+ $(INSTALL) -m 555 $(INSTALL_OPTS) @nagios_name@ $(DESTDIR)$(prefix)/sbin
$(STRIP) $(DESTDIR)$(BINDIR)/@nagios_name@
- $(INSTALL) -m 774 $(INSTALL_OPTS) @nagiostats_name@ $(DESTDIR)$(BINDIR)
+ $(INSTALL) -m 555 $(INSTALL_OPTS) @nagiostats_name@ $(DESTDIR)$(BINDIR)
$(STRIP) $(DESTDIR)$(BINDIR)/@nagiostats_name@

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-cgi_Makefile_in,v 1.1.1.1 2005/07/25 16:32:05 sturm Exp $
--- cgi/Makefile.in.orig Mon Jan 10 18:15:20 2005
+++ cgi/Makefile.in Mon Jan 10 18:17:01 2005
@@ -191,9 +191,9 @@ distclean: clean
devclean: distclean
install:
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(CGIDIR)
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(CGIDIR)
for file in *.cgi; do \
- $(INSTALL) -m 775 $(INSTALL_OPTS) $$file $(DESTDIR)$(CGIDIR); \
+ $(INSTALL) -m 555 $(INSTALL_OPTS) $$file $(DESTDIR)$(CGIDIR); \
$(STRIP) $(DESTDIR)$(CGIDIR)/$$file; \
done

View File

@ -0,0 +1,84 @@
$OpenBSD: patch-configure,v 1.1.1.1 2005/07/25 16:32:05 sturm Exp $
--- configure.orig Tue Dec 14 03:18:58 2004
+++ configure Sun Jan 30 17:47:03 2005
@@ -371,7 +371,7 @@ EOF
ac_prev=sysconfdir ;;
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
- sysconfdir="$ac_optarg" ;;
+ sysconfdir="$ac_optarg/nagios" ;;
-target | --target | --targe | --targ | --tar | --ta | --t)
ac_prev=target ;;
@@ -1901,7 +1901,7 @@ LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
- THREADLIBS="$THREADLIBS -lpthread"
+ THREADLIBS="$THREADLIBS -pthread"
else
echo "$ac_t""no" 1>&6
fi
@@ -1910,14 +1910,14 @@ if test $ac_cv_lib_cma_pthread_create =
have_pthreads="yes"
fi
-echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
-echo "configure:1915: checking for pthread_create in -lpthread" >&5
+echo $ac_n "checking for pthread_create in -pthread""... $ac_c" 1>&6
+echo "configure:1915: checking for pthread_create in -pthread" >&5
ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="-lpthread $LIBS"
+LIBS="-pthread $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1923 "configure"
#include "confdefs.h"
@@ -1945,7 +1945,7 @@ LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
- THREADLIBS="$THREADLIBS -lpthread"
+ THREADLIBS="$THREADLIBS -pthread"
else
echo "$ac_t""no" 1>&6
fi
@@ -1953,14 +1953,14 @@ fi
if test $ac_cv_lib_pthread_pthread_create = yes; then
have_pthreads="yes"
else
- echo $ac_n "checking for pthread_mutex_init in -lpthread""... $ac_c" 1>&6
-echo "configure:1958: checking for pthread_mutex_init in -lpthread" >&5
+ echo $ac_n "checking for pthread_mutex_init in -pthread""... $ac_c" 1>&6
+echo "configure:1958: checking for pthread_mutex_init in -pthread" >&5
ac_lib_var=`echo pthread'_'pthread_mutex_init | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="-lpthread $LIBS"
+LIBS="-pthread $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1966 "configure"
#include "confdefs.h"
@@ -1988,7 +1988,7 @@ LIBS="$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
- THREADLIBS="$THREADLIBS -lpthread"
+ THREADLIBS="$THREADLIBS -pthread"
else
echo "$ac_t""no" 1>&6
fi
@@ -2227,7 +2227,7 @@ cat >> confdefs.h <<EOF
#define DEFAULT_NAGIOS_GROUP "$nagios_grp"
EOF
-INSTALL_OPTS="-o $nagios_user -g $nagios_grp"
+INSTALL_OPTS=""
# Check whether --with-command_user or --without-command_user was given.

View File

@ -0,0 +1,62 @@
$OpenBSD: patch-html_Makefile_in,v 1.1.1.1 2005/07/25 16:32:05 sturm Exp $
--- html/Makefile.in.orig Mon Jan 10 18:15:54 2005
+++ html/Makefile.in Mon Jan 10 18:16:29 2005
@@ -33,37 +33,37 @@ distclean: clean
devclean: distclean
install:
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/media
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/stylesheets
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/contexthelp
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/docs
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/docs/images
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/images
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/images/logos
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/ssi
- $(INSTALL) -m 664 $(INSTALL_OPTS) robots.txt $(DESTDIR)$(HTMLDIR)
- $(INSTALL) -m 664 $(INSTALL_OPTS) docs/robots.txt $(DESTDIR)$(HTMLDIR)/docs
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/media
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/stylesheets
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/contexthelp
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/docs
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/docs/images
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/images
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/images/logos
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/ssi
+ $(INSTALL) -m 444 $(INSTALL_OPTS) robots.txt $(DESTDIR)$(HTMLDIR)
+ $(INSTALL) -m 444 $(INSTALL_OPTS) docs/robots.txt $(DESTDIR)$(HTMLDIR)/docs
for file in *.html; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR); done
+ do $(INSTALL) -m 444 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR); done
for file in media/*.wav; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/media; done
+ do $(INSTALL) -m 444 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/media; done
for file in stylesheets/*.css; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/stylesheets; done
+ do $(INSTALL) -m 444 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/stylesheets; done
for file in contexthelp/*.html; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/contexthelp; done
+ do $(INSTALL) -m 444 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/contexthelp; done
for file in docs/*.html; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/docs; done
+ do $(INSTALL) -m 444 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/docs; done
for file in docs/images/*.*; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/docs/images; done
+ do $(INSTALL) -m 444 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/docs/images; done
for file in images/*.gif; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images; done
+ do $(INSTALL) -m 444 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images; done
for file in images/*.jpg; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images; done
+ do $(INSTALL) -m 444 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images; done
for file in images/*.png; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images; done
+ do $(INSTALL) -m 444 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images; done
for file in images/logos/*.*; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images/logos; done
+ do $(INSTALL) -m 444 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images/logos; done

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-include_locations_h_in,v 1.1.1.1 2005/07/25 16:32:05 sturm Exp $
--- include/locations.h.in.orig Mon Jan 24 16:57:11 2005
+++ include/locations.h.in Mon Jan 24 16:57:37 2005
@@ -21,8 +21,8 @@
#define DEFAULT_TEMP_FILE "@localstatedir@/tempfile"
#define DEFAULT_STATUS_FILE "@localstatedir@/status.dat"
-#define DEFAULT_LOG_FILE "@localstatedir@/nagios.log"
-#define DEFAULT_LOG_ARCHIVE_PATH "@localstatedir@/archives/"
+#define DEFAULT_LOG_FILE "/var/log/nagios/nagios"
+#define DEFAULT_LOG_ARCHIVE_PATH "/var/log/nagios/archives/"
#define DEFAULT_COMMENT_FILE "@localstatedir@/comments.dat"
#define DEFAULT_DOWNTIME_FILE "@localstatedir@/downtime.dat"
#define DEFAULT_RETENTION_FILE "@localstatedir@/retention.dat"

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-sample-config_cgi_cfg_in,v 1.1.1.1 2005/07/25 16:32:05 sturm Exp $
--- sample-config/cgi.cfg.in.orig Fri Oct 10 02:18:25 2003
+++ sample-config/cgi.cfg.in Sun Jul 17 15:45:09 2005
@@ -237,7 +237,7 @@ default_statuswrl_layout=4
# OS and distribution, so you may have to tweak this to
# work on your system.
-ping_syntax=/bin/ping -n -U -c 5 $HOSTADDRESS$
+ping_syntax=/bin/ping -n -c 5 $HOSTADDRESS$

View File

@ -0,0 +1,39 @@
$OpenBSD: patch-sample-config_httpd_conf_in,v 1.1.1.1 2005/07/25 16:32:05 sturm Exp $
--- sample-config/httpd.conf.in.orig Fri Oct 29 20:03:42 2004
+++ sample-config/httpd.conf.in Sun Jul 17 13:43:34 2005
@@ -10,23 +10,23 @@ ScriptAlias @cgiurl@ "@sbindir@"
<Directory "@sbindir@">
# SSLRequireSSL
Options ExecCGI
- AllowOverride AuthConfig
- Order allow,deny
- Allow from all
-# Order deny,allow
-# Deny from all
-# Allow from 127.0.0.1
+
+ AuthName "Nagios Access"
+ AuthType Basic
+ AuthUserFile %%SYSCONFDIR%%/nagios/htpasswd.users
+ require valid-user
+
+ Order deny,allow
+ Deny from all
+ Allow from 127.0.0.1
</Directory>
Alias @htmurl@ "@datadir@"
<Directory "@datadir@">
# SSLRequireSSL
Options None
- AllowOverride AuthConfig
- Order allow,deny
- Allow from all
-# Order deny,allow
-# Deny from all
-# Allow from 127.0.0.1
+ Order deny,allow
+ Deny from all
+ Allow from 127.0.0.1
</Directory>

View File

@ -0,0 +1,34 @@
$OpenBSD: patch-sample-config_nagios_cfg_in,v 1.1.1.1 2005/07/25 16:32:06 sturm Exp $
--- sample-config/nagios.cfg.in.orig Tue Apr 5 21:46:18 2005
+++ sample-config/nagios.cfg.in Tue Apr 5 21:54:15 2005
@@ -16,7 +16,7 @@
# for historical purposes. This should be the first option specified
# in the config file!!!
-log_file=@localstatedir@/nagios.log
+log_file=/var/log/nagios/nagios.log
@@ -34,10 +34,10 @@ log_file=@localstatedir@/nagios.log
# Arguments are likely to change between different releases of the
# plugins, so you should use the same config file provided with the
# plugin release rather than the one provided with Nagios.
-cfg_file=@sysconfdir@/checkcommands.cfg
+#cfg_file=@sysconfdir@/checkcommands.cfg
# Misc commands (notification and event handler commands, etc)
-cfg_file=@sysconfdir@/misccommands.cfg
+#cfg_file=@sysconfdir@/misccommands.cfg
# You can split other types of object definitions across several
# config files if you wish (as done here), or keep them all in a
@@ -240,7 +240,7 @@ log_rotation_method=d
# This is the directory where archived (rotated) log files should be
# placed (assuming you've chosen to do log rotation).
-log_archive_path=@localstatedir@/archives
+log_archive_path=/var/log/nagios/archives

View File

@ -0,0 +1,11 @@
Nagios is a host and service monitor designed to inform you of network
problems before your clients, end-users or managers do. The monitoring
daemon runs intermittent checks on hosts and services you specify using
external "plugins" which return status information to Nagios. When problems
are encountered, the daemon can send notifications out to administrative
contacts in a variety of different ways (email, instant message, SMS, etc.).
Current status information, historical logs, and reports can all be accessed
via a web browser.
FLAVORS:
chroot install Nagios in a way suited for chroot'ed httpd

View File

@ -0,0 +1 @@
This package contains CGIs and webpages for nagios' web frontend.

View File

@ -0,0 +1,4 @@
Sample configuration files and web server configuration can be found in
${PREFIX}/share/examples/nagios.
Beware that Nagios might or might not work correctly on 64bit machines.

View File

@ -0,0 +1,7 @@
@comment $OpenBSD: PFRAG.chroot,v 1.1.1.1 2005/07/25 16:32:06 sturm Exp $
@exec ln -s ${CHROOT}${SYSCONFDIR}/nagios ${SYSCONFDIR}
@exec ln -s ${CHROOT}/var/log/nagios /var/log
@exec ln -s ${CHROOT}/var/nagios /var
@unexec rm ${SYSCONFDIR}/nagios
@unexec rm /var/log/nagios
@unexec rm /var/nagios

View File

@ -0,0 +1,41 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2005/07/25 16:32:06 sturm Exp $
@newgroup _nagios:542
@newuser _nagios:542:_nagios:daemon:Nagios user:/var/www/nagios:/sbin/nologin
bin/nagiostats
sbin/nagios
share/examples/nagios/
share/examples/nagios/bigger.cfg
share/examples/nagios/cgi.cfg
@sample ${CHROOT}${SYSCONFDIR}/nagios/
@sample ${CHROOT}${SYSCONFDIR}/nagios/cgi.cfg
share/examples/nagios/checkcommands.cfg
share/examples/nagios/httpd.conf
share/examples/nagios/minimal.cfg
@sample ${CHROOT}${SYSCONFDIR}/nagios/minimal.cfg
share/examples/nagios/misccommands.cfg
share/examples/nagios/nagios.cfg
@sample ${CHROOT}${SYSCONFDIR}/nagios/nagios.cfg
share/examples/nagios/resource.cfg
@sample ${CHROOT}${SYSCONFDIR}/nagios/resource.cfg
@mode 755
@owner _nagios
@group _nagios
@sample ${CHROOT}/var/log/nagios/
@sample ${CHROOT}/var/log/nagios/archives/
@sample ${CHROOT}/var/nagios/
@sample ${CHROOT}/var/nagios/rw/
@sample /var/run/nagios/
@mode
@owner
@group
@sample /var/www/nagios/
%%chroot%%
@extra ${CHROOT}/var/log/nagios/nagios
@extra ${CHROOT}/var/nagios/comments.dat
@extra ${CHROOT}/var/nagios/downtime.dat
@extra ${CHROOT}/var/nagios/objects.cache
@extra ${CHROOT}/var/nagios/retention.dat
@extra ${CHROOT}/var/nagios/status.dat
@extra ${CHROOT}/var/nagios/rw/nagios.cmd
@extraunexec rm -f ${CHROOT}${SYSCONFDIR}/nagios/*
@extraunexec rm -f ${CHROOT}/var/log/nagios/archives/*

View File

@ -0,0 +1,283 @@
@comment $OpenBSD: PLIST-web,v 1.1.1.1 2005/07/25 16:32:06 sturm Exp $
cgi-bin/nagios/
cgi-bin/nagios/avail.cgi
cgi-bin/nagios/cmd.cgi
cgi-bin/nagios/config.cgi
cgi-bin/nagios/extinfo.cgi
cgi-bin/nagios/histogram.cgi
cgi-bin/nagios/history.cgi
cgi-bin/nagios/notifications.cgi
cgi-bin/nagios/outages.cgi
cgi-bin/nagios/showlog.cgi
cgi-bin/nagios/status.cgi
cgi-bin/nagios/statusmap.cgi
cgi-bin/nagios/statuswml.cgi
cgi-bin/nagios/statuswrl.cgi
cgi-bin/nagios/summary.cgi
cgi-bin/nagios/tac.cgi
cgi-bin/nagios/trends.cgi
nagios/
nagios/contexthelp/
nagios/contexthelp/A1.html
nagios/contexthelp/A2.html
nagios/contexthelp/A3.html
nagios/contexthelp/A4.html
nagios/contexthelp/A5.html
nagios/contexthelp/A6.html
nagios/contexthelp/A7.html
nagios/contexthelp/B1.html
nagios/contexthelp/C1.html
nagios/contexthelp/D1.html
nagios/contexthelp/E1.html
nagios/contexthelp/F1.html
nagios/contexthelp/G1.html
nagios/contexthelp/G2.html
nagios/contexthelp/G3.html
nagios/contexthelp/G4.html
nagios/contexthelp/G5.html
nagios/contexthelp/G6.html
nagios/contexthelp/H1.html
nagios/contexthelp/H2.html
nagios/contexthelp/H3.html
nagios/contexthelp/H4.html
nagios/contexthelp/H5.html
nagios/contexthelp/H6.html
nagios/contexthelp/H7.html
nagios/contexthelp/H8.html
nagios/contexthelp/I1.html
nagios/contexthelp/I2.html
nagios/contexthelp/I3.html
nagios/contexthelp/I4.html
nagios/contexthelp/I5.html
nagios/contexthelp/I6.html
nagios/contexthelp/I7.html
nagios/contexthelp/I8.html
nagios/contexthelp/I9.html
nagios/contexthelp/J1.html
nagios/contexthelp/K1.html
nagios/contexthelp/L1.html
nagios/contexthelp/L10.html
nagios/contexthelp/L11.html
nagios/contexthelp/L12.html
nagios/contexthelp/L13.html
nagios/contexthelp/L2.html
nagios/contexthelp/L3.html
nagios/contexthelp/L4.html
nagios/contexthelp/L5.html
nagios/contexthelp/L6.html
nagios/contexthelp/L7.html
nagios/contexthelp/L8.html
nagios/contexthelp/L9.html
nagios/contexthelp/M1.html
nagios/contexthelp/M2.html
nagios/contexthelp/M3.html
nagios/contexthelp/M4.html
nagios/contexthelp/M5.html
nagios/contexthelp/M6.html
nagios/contexthelp/N1.html
nagios/contexthelp/N2.html
nagios/contexthelp/N3.html
nagios/contexthelp/N4.html
nagios/contexthelp/N5.html
nagios/contexthelp/N6.html
nagios/contexthelp/N7.html
nagios/docs/
nagios/docs/about.html
nagios/docs/adaptive.html
nagios/docs/addons.html
nagios/docs/beginners.html
nagios/docs/cgiauth.html
nagios/docs/cgiincludes.html
nagios/docs/cgis.html
nagios/docs/checkscheduling.html
nagios/docs/clusters.html
nagios/docs/commandfile.html
nagios/docs/config.html
nagios/docs/configcgi.html
nagios/docs/configextinfo.html
nagios/docs/configmain.html
nagios/docs/configobject.html
nagios/docs/dependencies.html
nagios/docs/distributed.html
nagios/docs/downtime.html
nagios/docs/embeddedperl.html
nagios/docs/escalations.html
nagios/docs/eventhandlers.html
nagios/docs/extcommands.html
nagios/docs/flapping.html
nagios/docs/freshness.html
nagios/docs/funstuff.html
nagios/docs/images/
nagios/docs/images/activepassive.png
nagios/docs/images/cgi-avail-a.png
nagios/docs/images/cgi-avail-b.png
nagios/docs/images/cgi-cmd.png
nagios/docs/images/cgi-config.png
nagios/docs/images/cgi-extinfo-a.png
nagios/docs/images/cgi-extinfo-b.png
nagios/docs/images/cgi-extinfo-c.png
nagios/docs/images/cgi-extinfo-d.png
nagios/docs/images/cgi-histogram.png
nagios/docs/images/cgi-history.png
nagios/docs/images/cgi-notifications.png
nagios/docs/images/cgi-outages.png
nagios/docs/images/cgi-showlog.png
nagios/docs/images/cgi-status-a.png
nagios/docs/images/cgi-status-b.png
nagios/docs/images/cgi-status-c.png
nagios/docs/images/cgi-status-d.png
nagios/docs/images/cgi-statusmap.png
nagios/docs/images/cgi-statuswml.png
nagios/docs/images/cgi-statuswrl.png
nagios/docs/images/cgi-summary.png
nagios/docs/images/cgi-tac.png
nagios/docs/images/cgi-trends.png
nagios/docs/images/checktiming.png
nagios/docs/images/distributed.png
nagios/docs/images/host-dependencies.png
nagios/docs/images/indirecthostcheck.png
nagios/docs/images/indirectsvccheck.png
nagios/docs/images/indirectsvccheck2.png
nagios/docs/images/interleaved1.png
nagios/docs/images/interleaved2.png
nagios/docs/images/interleaved3.png
nagios/docs/images/logofullsize.png
nagios/docs/images/mrtgstats.png
nagios/docs/images/network-heirarchy.png
nagios/docs/images/network-outage1.png
nagios/docs/images/network-outage2.png
nagios/docs/images/noninterleaved1.png
nagios/docs/images/noninterleaved2.png
nagios/docs/images/physical-network.png
nagios/docs/images/plugintheory.png
nagios/docs/images/redudancy.png
nagios/docs/images/redundancy.png
nagios/docs/images/service-dependencies.png
nagios/docs/images/statetransitions.png
nagios/docs/images/statetransitions2.png
nagios/docs/index.html
nagios/docs/indirectchecks.html
nagios/docs/installing.html
nagios/docs/installweb.html
nagios/docs/int-snmptrap.html
nagios/docs/int-tcpwrappers.html
nagios/docs/macros.html
nagios/docs/nagiostats.html
nagios/docs/networkoutages.html
nagios/docs/networkreachability.html
nagios/docs/notifications.html
nagios/docs/parallelization.html
nagios/docs/passivechecks.html
nagios/docs/perfdata.html
nagios/docs/plugins.html
nagios/docs/plugintheory.html
nagios/docs/redundancy.html
nagios/docs/robots.txt
nagios/docs/security.html
nagios/docs/stalking.html
nagios/docs/starting.html
nagios/docs/statetypes.html
nagios/docs/stoprestart.html
nagios/docs/templaterecursion.html
nagios/docs/templatetricks.html
nagios/docs/timeperiods.html
nagios/docs/toc.html
nagios/docs/tuning.html
nagios/docs/verifyconfig.html
nagios/docs/volatileservices.html
nagios/docs/whatsnew.html
nagios/docs/xodtemplate.html
nagios/images/
nagios/images/ack.gif
nagios/images/action.gif
nagios/images/command.png
nagios/images/comment.gif
nagios/images/contexthelp1.gif
nagios/images/contexthelp2.gif
nagios/images/critical.png
nagios/images/delay.gif
nagios/images/delete.gif
nagios/images/detail.gif
nagios/images/disabled.gif
nagios/images/down.gif
nagios/images/downtime.gif
nagios/images/empty.gif
nagios/images/enabled.gif
nagios/images/extinfo.gif
nagios/images/flapping.gif
nagios/images/greendot.gif
nagios/images/histogram.png
nagios/images/history.gif
nagios/images/hostevent.gif
nagios/images/info.png
nagios/images/left.gif
nagios/images/logofullsize.jpg
nagios/images/logos/
nagios/images/logos/nagios.gd2
nagios/images/logos/nagios.gif
nagios/images/logos/nagiosvrml.png
nagios/images/logos/unknown.gd2
nagios/images/logos/unknown.gif
nagios/images/logrotate.png
nagios/images/ndisabled.gif
nagios/images/noack.gif
nagios/images/notes.gif
nagios/images/notify.gif
nagios/images/orangedot.gif
nagios/images/passiveonly.gif
nagios/images/recovery.png
nagios/images/redudancy.png
nagios/images/redundancy.png
nagios/images/restart.gif
nagios/images/right.gif
nagios/images/sblogo.jpg
nagios/images/serviceevent.gif
nagios/images/start.gif
nagios/images/status.gif
nagios/images/status2.gif
nagios/images/status3.gif
nagios/images/status4.gif
nagios/images/stop.gif
nagios/images/tacdisabled.jpg
nagios/images/tacdisabled.png
nagios/images/tacenabled.jpg
nagios/images/tacenabled.png
nagios/images/thermcrit.png
nagios/images/thermok.png
nagios/images/thermwarn.png
nagios/images/trends.gif
nagios/images/trendshost.png
nagios/images/trendssvc.png
nagios/images/unknown.png
nagios/images/up.gif
nagios/images/warning.png
nagios/images/weblogo1.png
nagios/images/zoom1.gif
nagios/images/zoom2.gif
nagios/index.html
nagios/main.html
nagios/media/
nagios/media/critical.wav
nagios/media/hostdown.wav
nagios/media/warning.wav
nagios/robots.txt
nagios/side.html
nagios/ssi/
nagios/stylesheets/
nagios/stylesheets/avail.css
nagios/stylesheets/checksanity.css
nagios/stylesheets/cmd.css
nagios/stylesheets/common.css
nagios/stylesheets/config.css
nagios/stylesheets/extinfo.css
nagios/stylesheets/histogram.css
nagios/stylesheets/history.css
nagios/stylesheets/ministatus.css
nagios/stylesheets/notifications.css
nagios/stylesheets/outages.css
nagios/stylesheets/showlog.css
nagios/stylesheets/status.css
nagios/stylesheets/statusmap.css
nagios/stylesheets/summary.css
nagios/stylesheets/tac.css
nagios/stylesheets/trends.css

118
net/nagios/plugins/Makefile Normal file
View File

@ -0,0 +1,118 @@
# $OpenBSD: Makefile,v 1.1.1.1 2005/07/25 16:32:06 sturm Exp $
COMMENT= "nagios base plugins"
COMMENT-fping= "fping plugin"
COMMENT-game= "gameserver plugin"
COMMENT-ldap= "ldap plugin"
COMMENT-mysql= "mysql plugin"
COMMENT-ntp= "ntp plugin"
COMMENT-pgsql= "postgresql plugin"
COMMENT-samba= "samba plugin"
COMMENT-snmp= "plugins using snmp"
V= 1.4
DISTNAME= nagios-plugins-${V:S,_,-,}
PKGNAME= nagios-plugins-${V}
PKGNAME-fping= nagios-plugins-fping-${V}
PKGNAME-game= nagios-plugins-game-${V}
PKGNAME-ldap= nagios-plugins-ldap-${V}
PKGNAME-mysql= nagios-plugins-mysql-${V}
PKGNAME-ntp= nagios-plugins-ntp-${V}
PKGNAME-pgsql= nagios-plugins-pgsql-${V}
PKGNAME-samba= nagios-plugins-samba-${V}
PKGNAME-snmp= nagios-plugins-snmp-${V}
CATEGORIES= net
HOMEPAGE= http://nagiosplug.sourceforge.net/
MAINTAINER= Nikolay Sturm <sturm@openbsd.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
# see below for WANTLIB
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=nagiosplug/}
BUILD_DEPENDS= qstat::games/qstat \
fping::net/fping
CONFIGURE_STYLE=gnu
CONFIGURE_ENV= PATH_TO_FPING=${LOCALBASE}/sbin/fping \
PATH_TO_NTPDATE=${LOCALBASE}/sbin/ntpdate \
PATH_TO_NTPDC=${LOCALBASE}/sbin/ntpdc \
PATH_TO_NTPQ=${LOCALBASE}/sbin/ntpq
CONFIGURE_ARGS+=--libexecdir=${PREFIX}/libexec/nagios \
--with-cgiurl=/cgi-bin/nagios \
--with-nagios-user=_nagios \
--with-nagios-group=_nagios \
--with-openssl=/usr \
PSEUDO_FLAVORS= no_db no_ntp no_samba no_snmp
FLAVOR?=
MULTI_PACKAGES= -fping -game
SUBPACKAGE?=
.if ! ${FLAVOR:L:Mno_db}
MULTI_PACKAGES+=-ldap -mysql -pgsql
BUILD_DEPENDS+= :mysql-client-*:databases/mysql \
:openldap-client-*:databases/openldap \
:postgresql-client-*:databases/postgresql
CONFIGURE_ARGS+=--with-mysql=${LOCALBASE} \
--with-pgsql=${LOCALBASE}
.else
CONFIGURE_ARGS+=--without-mysql --without-pgsql
.endif
.if ! ${FLAVOR:L:Mno_ntp}
MULTI_PACKAGES+=-ntp
BUILD_DEPENDS+= ntpdate::net/ntp
.endif
.if ! ${FLAVOR:L:Mno_samba}
MULTI_PACKAGES+=-samba
BUILD_DEPENDS+= smbclient::net/samba
.endif
.if ! ${FLAVOR:L:Mno_snmp}
MULTI_PACKAGES+=-snmp
BUILD_DEPENDS+= ::net/p5-Net-SNMP \
snmpget::net/net-snmp
.endif
.if defined(PACKAGING)
WANTLIB= c
. if ${SUBPACKAGE} == "-fping"
RUN_DEPENDS= fping::net/fping
. elif ${SUBPACKAGE} == "-game"
RUN_DEPENDS= qstat::games/qstat
. elif ${SUBPACKAGE} == "-ldap"
LIB_DEPENDS= lber,ldap:openldap-client-*:databases/openldap
. elif ${SUBPACKAGE} == "-mysql"
LIB_DEPENDS= mysqlclient:mysql-client-*:databases/mysql
. elif ${SUBPACKAGE} == "-ntp"
WANTLIB=
RUN_DEPENDS= ntpdate::net/ntp
. elif ${SUBPACKAGE} == "-pgsql"
WANTLIB+= crypto
LIB_DEPENDS= pq:postgresql-client-*:databases/postgresql
. elif ${SUBPACKAGE} == "-samba"
WANTLIB=
RUN_DEPENDS= smbclient::net/samba
. elif ${SUBPACKAGE} == "-snmp"
RUN_DEPENDS= snmpget::net/net-snmp \
::net/p5-Net-SNMP
. else
WANTLIB+= crypto ssl
. endif
.else
MODULES= gettext
.endif
NO_REGRESS= lots of broken tests
.include <bsd.port.mk>

View File

@ -0,0 +1,4 @@
MD5 (nagios-plugins-1.4.tar.gz) = 9b21b92acc4b2b0dbb2d12bca6b27582
RMD160 (nagios-plugins-1.4.tar.gz) = e50c16b07754b146483cdeecb04ab86b03f1c84d
SHA1 (nagios-plugins-1.4.tar.gz) = 10b030431aeda1c9219040d6e1d44647b159af43
SIZE (nagios-plugins-1.4.tar.gz) = 972810

View File

@ -0,0 +1,59 @@
$OpenBSD: patch-configure,v 1.1.1.1 2005/07/25 16:32:07 sturm Exp $
--- configure.orig Thu Dec 30 18:21:18 2004
+++ configure Sun Jan 30 19:00:14 2005
@@ -8257,13 +8257,13 @@ if test "${with_pgsql+set}" = set; then
PGSQL=$withval
fi;
-echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
-echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
+echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
+echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
if test "${ac_cv_lib_crypt_main+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lcrypt $LIBS"
+LIBS="-lcrypto $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -8320,7 +8320,7 @@ if test $ac_cv_lib_crypt_main = yes; the
#define HAVE_LIBCRYPT 1
_ACEOF
- LIBS="-lcrypt $LIBS"
+ LIBS="-lcrypto $LIBS"
fi
@@ -8336,7 +8336,7 @@ if test "${ac_cv_lib_pq_PQsetdbLogin+set
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpq -lcrypt $LIBS"
+LIBS="-lpq -lcrypto $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -8855,16 +8855,16 @@ fi
done
if [ -n "$PGSQL" -a "$ac_cv_header_libpq_fe_h" = "yes" ]; then
- PGLIBS="-L$PGSQL/lib -lpq -lcrypt"
+ PGLIBS="-L$PGSQL/lib -lpq -lcrypto"
PGINCLUDE="-I$PGSQL/include"
elif test "$ac_cv_header_pgsql_libpq_fe_h" = "yes"; then
- PGLIBS="-lpq -lcrypt"
+ PGLIBS="-lpq -lcrypto"
PGINCLUDE="-I/usr/include/pgsql"
elif test "$ac_cv_header_postgresql_libpq_fe_h" = "yes"; then
- PGLIBS="-L$PGSQL/lib -lpq -lcrypt"
+ PGLIBS="-L$PGSQL/lib -lpq -lcrypto"
PGINCLUDE="-I/usr/include/postgresql"
elif test "$ac_cv_header_libpq_fe_h" = "yes"; then
- PGLIBS="-L$PGSQL/lib -lpq -lcrypt"
+ PGLIBS="-L$PGSQL/lib -lpq -lcrypto"
PGINCLUDE="-I$PGSQL/include"
fi
if test -z "$PGINCLUDE"; then

View File

@ -0,0 +1,24 @@
$OpenBSD: patch-plugins-scripts_subst_in,v 1.1.1.1 2005/07/25 16:32:07 sturm Exp $
--- plugins-scripts/subst.in.orig Mon Jul 18 22:56:08 2005
+++ plugins-scripts/subst.in Mon Jul 18 22:56:30 2005
@@ -44,10 +44,6 @@ BEGIN {
/^#! ?\/.*\/[a-z]{0,2}awk/ {sub(/^#! ?\/.*\/[a-z]{0,2}awk/,"#! @AWK@");}
/^#! ?\/.*\/sh/ {sub(/^#! ?\/.*\/sh/,"#! @SHELL@");}
-# add to libexecdir to INC for perl utils.pm
-/^use/ { if (/lib/) { if (/utils.pm|"."/ ) {sub(/utils.pm|"."/,led() )} } }
-
-
# Trusted path mechanism (deprecated)
/^[ \t]*\$ENV[ \t]*\{[ \t'"]*PATH[ \t"']*\}[ \t]*=/ {
@@ -67,6 +63,9 @@ BEGIN {
c=substr($0,RSTART,RLENGTH);
sub(c,which(c,path));
}
+
+# add to libexecdir to INC for perl utils.pm
+/^use/ { if (/lib/) { if (/utils.pm|"."/ ) {sub(/utils.pm|"."/,led() )} } }
{
print;

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-plugins_check_pgsql_c,v 1.1.1.1 2005/07/25 16:32:07 sturm Exp $
--- plugins/check_pgsql.c.orig Sun Jan 30 19:15:16 2005
+++ plugins/check_pgsql.c Sun Jan 30 19:15:30 2005
@@ -27,7 +27,7 @@ const char *email = "nagiosplug-devel@li
#include "utils.h"
#include "netutils.h"
-#include <libpq-fe.h>
+#include <postgresql/libpq-fe.h>
#define DEFAULT_DB "template1"
#define DEFAULT_HOST "127.0.0.1"

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-plugins_check_smtp_c,v 1.1.1.1 2005/07/25 16:32:07 sturm Exp $
--- plugins/check_smtp.c.orig Sat Jan 1 17:15:39 2005
+++ plugins/check_smtp.c Mon Jul 18 22:55:58 2005
@@ -76,7 +76,7 @@ int my_close(void);
char regex_expect[MAX_INPUT_BUFFER] = "";
regex_t preg;
regmatch_t pmatch[10];
-char timestamp[10] = "";
+char timestamp[20] = "";
char errbuf[MAX_INPUT_BUFFER];
int cflags = REG_EXTENDED | REG_NOSUB | REG_NEWLINE;
int eflags = 0;
@@ -667,7 +667,7 @@ check_certificate (X509 ** certificate)
days_left = (mktime (&stamp) - time (NULL)) / 86400;
snprintf
- (timestamp, 16, "%02d/%02d/%04d %02d:%02d",
+ (timestamp, sizeof(timestamp), "%02d/%02d/%04d %02d:%02d",
stamp.tm_mon + 1,
stamp.tm_mday, stamp.tm_year + 1900, stamp.tm_hour, stamp.tm_min);

View File

@ -0,0 +1,9 @@
Nagios monitors hosts and services on your network. Actual host and service
checks are performed by separate plugins which return the host or service
status to Nagios. This package provides the base plugins for Nagios.
FLAVORS:
no_db do not build database related packages
no_ntp do not build package with ntp plugin
no_samba do not build package with samba plugin
no_snmp do not build snmp related packages

View File

@ -0,0 +1 @@
Check hosts with fping.

View File

@ -0,0 +1 @@
Check game servers with games/qstat.

View File

@ -0,0 +1 @@
Check LDAP databases.

View File

@ -0,0 +1 @@
Check MySQL databases.

View File

@ -0,0 +1 @@
Check NTP servers.

View File

@ -0,0 +1 @@
Check postgresql databases.

View File

@ -0,0 +1 @@
Check SMB fileservers.

View File

@ -0,0 +1 @@
Check several services via SNMP.

View File

@ -0,0 +1,57 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2005/07/25 16:32:07 sturm Exp $
libexec/nagios/
libexec/nagios/check_by_ssh
libexec/nagios/check_dhcp
libexec/nagios/check_dig
libexec/nagios/check_disk
libexec/nagios/check_dns
libexec/nagios/check_dummy
libexec/nagios/check_file_age
libexec/nagios/check_flexlm
libexec/nagios/check_ftp
libexec/nagios/check_http
libexec/nagios/check_icmp
libexec/nagios/check_imap
libexec/nagios/check_ircd
libexec/nagios/check_jabber
libexec/nagios/check_load
libexec/nagios/check_log
libexec/nagios/check_mailq
libexec/nagios/check_mrtg
libexec/nagios/check_mrtgtraf
libexec/nagios/check_nagios
libexec/nagios/check_nntp
libexec/nagios/check_nntps
libexec/nagios/check_nt
libexec/nagios/check_nwstat
libexec/nagios/check_oracle
libexec/nagios/check_overcr
libexec/nagios/check_ping
libexec/nagios/check_pop
libexec/nagios/check_procs
libexec/nagios/check_real
libexec/nagios/check_rpc
libexec/nagios/check_sensors
libexec/nagios/check_simap
libexec/nagios/check_smtp
libexec/nagios/check_spop
libexec/nagios/check_ssh
libexec/nagios/check_swap
libexec/nagios/check_tcp
libexec/nagios/check_time
libexec/nagios/check_udp
libexec/nagios/check_udp2
libexec/nagios/check_ups
libexec/nagios/check_users
libexec/nagios/check_wave
libexec/nagios/negate
libexec/nagios/urlize
libexec/nagios/utils.pm
libexec/nagios/utils.sh
share/locale/
share/locale/de/
share/locale/de/LC_MESSAGES/
share/locale/de/LC_MESSAGES/nagios-plugins.mo
share/locale/fr/
share/locale/fr/LC_MESSAGES/
share/locale/fr/LC_MESSAGES/nagios-plugins.mo

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST-fping,v 1.1.1.1 2005/07/25 16:32:07 sturm Exp $
libexec/nagios/check_fping

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST-game,v 1.1.1.1 2005/07/25 16:32:07 sturm Exp $
libexec/nagios/check_game

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PLIST-ldap,v 1.1.1.1 2005/07/25 16:32:07 sturm Exp $
libexec/nagios/check_ldap
libexec/nagios/check_ldaps

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST-mysql,v 1.1.1.1 2005/07/25 16:32:07 sturm Exp $
libexec/nagios/check_mysql

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST-ntp,v 1.1.1.1 2005/07/25 16:32:07 sturm Exp $
libexec/nagios/check_ntp

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST-pgsql,v 1.1.1.1 2005/07/25 16:32:07 sturm Exp $
libexec/nagios/check_pgsql

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST-samba,v 1.1.1.1 2005/07/25 16:32:07 sturm Exp $
libexec/nagios/check_disk_smb

View File

@ -0,0 +1,6 @@
@comment $OpenBSD: PLIST-snmp,v 1.1.1.1 2005/07/25 16:32:07 sturm Exp $
libexec/nagios/check_breeze
libexec/nagios/check_hpjd
libexec/nagios/check_ifoperstatus
libexec/nagios/check_ifstatus
libexec/nagios/check_snmp