pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/nagios-base Initial import of nagios-base 2.0, bas...
details: https://anonhg.NetBSD.org/pkgsrc/rev/64a8ead5f438
branches: trunk
changeset: 508379:64a8ead5f438
user: bouyer <bouyer%pkgsrc.org@localhost>
date: Sat Feb 18 17:12:20 2006 +0000
description:
Initial import of nagios-base 2.0, based on the 1.3.x package in pkgsrc-wip.
Nagios is a program that will monitor hosts and services on your
network. It has the ability to email or page you when a problem arises
and when it gets resolved. Nagios is written in C and is designed to
run under Linux, although it should work under most other *NIX variants.
It can run either as a normal process or as a daemon, intermittently
running checks on various services that you specify. The actual service
checks are performed by external "plugins" which return service
information to Nagios. Several CGI programs are included with Nagios
in order to allow you to view the current service status, history, etc.
via a web browser.
This package provides the core nagios infrastructure and web pages.
diffstat:
net/nagios-base/DESCR | 12 +
net/nagios-base/MESSAGE | 13 +
net/nagios-base/Makefile | 69 +++++++
net/nagios-base/Makefile.common | 25 ++
net/nagios-base/PLIST | 298 +++++++++++++++++++++++++++++++++
net/nagios-base/distinfo | 12 +
net/nagios-base/files/nagios.conf.dist | 22 ++
net/nagios-base/files/nagios.sh | 29 +++
net/nagios-base/options.mk | 19 ++
net/nagios-base/patches/patch-aa | 121 +++++++++++++
net/nagios-base/patches/patch-ab | 29 +++
net/nagios-base/patches/patch-ac | 27 ++
net/nagios-base/patches/patch-ad | 78 ++++++++
net/nagios-base/patches/patch-ae | 17 +
net/nagios-base/patches/patch-af | 76 ++++++++
net/nagios-base/patches/patch-ag | 13 +
16 files changed, 860 insertions(+), 0 deletions(-)
diffs (truncated from 924 to 300 lines):
diff -r 91de2d25c773 -r 64a8ead5f438 net/nagios-base/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/nagios-base/DESCR Sat Feb 18 17:12:20 2006 +0000
@@ -0,0 +1,12 @@
+Nagios is a program that will monitor hosts and services on your
+network. It has the ability to email or page you when a problem arises
+and when it gets resolved. Nagios is written in C and is designed to
+run under Linux, although it should work under most other *NIX variants.
+It can run either as a normal process or as a daemon, intermittently
+running checks on various services that you specify. The actual service
+checks are performed by external "plugins" which return service
+information to Nagios. Several CGI programs are included with Nagios
+in order to allow you to view the current service status, history, etc.
+via a web browser.
+
+This package provides the core nagios infrastructure and web pages.
diff -r 91de2d25c773 -r 64a8ead5f438 net/nagios-base/MESSAGE
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/nagios-base/MESSAGE Sat Feb 18 17:12:20 2006 +0000
@@ -0,0 +1,13 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2006/02/18 17:12:20 bouyer Exp $
+
+Apache Configuration:
+You must add this in your httpd.conf file:
+ Include ${PKG_SYSCONFDIR}/nagios.conf
+
+See the manual for more instructions.
+
+/etc/rc.d startup script:
+Please look in /usr/pkg/share/examples/rc.d/ for a nagios startup script.
+
+===========================================================================
diff -r 91de2d25c773 -r 64a8ead5f438 net/nagios-base/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/nagios-base/Makefile Sat Feb 18 17:12:20 2006 +0000
@@ -0,0 +1,69 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/02/18 17:12:20 bouyer Exp $
+#
+
+DISTNAME= nagios-2.0
+PKGNAME= ${DISTNAME:S/-/-base-/}
+CATEGORIES= net sysutils
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=nagios/}
+
+MAINTAINER= tech-pkg%NetBSD.org@localhost
+HOMEPAGE= http://www.nagios.org/
+COMMENT= Network monitor
+
+.include "../../mk/bsd.prefs.mk"
+.include "../../net/nagios-base/Makefile.common"
+.include "options.mk"
+
+CONFIGURE_ARGS+= --with-gd-lib=${LOCALBASE}/lib \
+ --with-gd-inc=${LOCALBASE}/include \
+ --enable-embedded-perl \
+ --with-perlcache
+
+CONFIGURE_ARGS+= --with-nagios-user=${NAGIOS_USER:Q}
+CONFIGURE_ARGS+= --with-nagios-grp=${NAGIOS_GROUP:Q}
+CONFIGURE_ARGS+= --with-command-user=${ROOT_USER:Q}
+CONFIGURE_ARGS+= --with-command-grp=${ROOT_GROUP:Q}
+CONFIGURE_ARGS+= --with-init-dir=${PREFIX}/share/examples/rc.d
+CONFIGURE_ARGS+= --with-lockfile=/var/run/nagios/nagios.lock
+
+RCD_SCRIPTS+= nagios
+
+INSTALL_TARGET= install install-config
+
+PKG_GROUPS+= ${NAGIOS_GROUP}
+PKG_GROUPS+= ${NAGIOSADM_GROUP}
+
+PKG_USERS+= ${NAGIOS_USER}:${NAGIOS_GROUP}::Nagios\ Runtime\ User
+PKG_USERS+= ${NAGIOSADM_USER}:${NAGIOSADM_GROUP}::Nagios\ Administrator:${PREFIX}/etc/nagios:${SH}
+
+EGDIR= ${PREFIX}/share/examples/nagios
+EGFILES= cgi.cfg checkcommands.cfg contactgroups.cfg contacts.cfg \
+ dependencies.cfg escalations.cfg hostgroups.cfg hosts.cfg \
+ misccommands.cfg nagios.cfg resource.cfg services.cfg \
+ timeperiods.cfg
+
+.for files in ${EGFILES}
+CONF_FILES+= ${EGDIR}/${files}-sample ${PKG_SYSCONFDIR}/${files}
+.endfor
+CONF_FILES+= ${EGDIR}/nagios.conf ${PKG_SYSCONFDIR}/nagios.conf
+
+NAGIOS_DIRS= log/nagios log/nagios/archives run/nagios run/nagios/rw
+.for dir in ${NAGIOS_DIRS}
+OWN_DIRS_PERMS+= ${VARBASE}/${dir} ${NAGIOS_USER} ${NAGIOS_GROUP} 0775
+.endfor
+
+SUBST_CLASSES+= files
+SUBST_STAGE.files= post-build
+SUBST_FILES.files= nagios.conf.dist
+SUBST_SED.files= -e "s|@PREFIX@|${PREFIX}|g"
+SUBST_MESSAGE.files= Fixing configuration files.
+
+pre-build:
+ @${CP} ${FILESDIR}/nagios.conf.dist ${WRKSRC}/nagios.conf.dist
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/nagios.conf.dist ${EGDIR}/nagios.conf
+
+.include "../../graphics/gd/buildlink3.mk"
+.include "../../lang/perl5/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 91de2d25c773 -r 64a8ead5f438 net/nagios-base/Makefile.common
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/nagios-base/Makefile.common Sat Feb 18 17:12:20 2006 +0000
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile.common,v 1.1.1.1 2006/02/18 17:12:20 bouyer Exp $
+#
+
+NAGIOS_USER?= nagios
+NAGIOS_GROUP?= ${NAGIOS_USER}
+
+NAGIOSADM_USER?= nagadmin
+NAGIOSADM_GROUP?= ${NAGIOSADM_USER}
+
+USE_X11= YES
+GNU_CONFIGURE= YES
+USE_TOOLS+= gmake
+USE_PKGINSTALL= YES
+
+PKG_SYSCONFSUBDIR= nagios
+
+PERL5_REQD= 5.6
+
+CONFIGURE_ARGS+= --libexecdir=${PREFIX}/libexec/nagios
+CONFIGURE_ARGS+= --datadir=${PREFIX}/share/nagios
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
+CONFIGURE_ARGS+= --localstatedir=/var
+
+CONFIGURE_ARGS+= --with-cgiurl=/nagios/cgi-bin
+CONFIGURE_ARGS+= --with-htmurl=/nagios
diff -r 91de2d25c773 -r 64a8ead5f438 net/nagios-base/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/nagios-base/PLIST Sat Feb 18 17:12:20 2006 +0000
@@ -0,0 +1,298 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/02/18 17:12:20 bouyer Exp $
+bin/nagios
+bin/nagiostats
+bin/p1.pl
+libexec/nagios/cgi-bin/avail.cgi
+libexec/nagios/cgi-bin/cmd.cgi
+libexec/nagios/cgi-bin/config.cgi
+libexec/nagios/cgi-bin/extinfo.cgi
+libexec/nagios/cgi-bin/histogram.cgi
+libexec/nagios/cgi-bin/history.cgi
+libexec/nagios/cgi-bin/notifications.cgi
+libexec/nagios/cgi-bin/outages.cgi
+libexec/nagios/cgi-bin/showlog.cgi
+libexec/nagios/cgi-bin/status.cgi
+libexec/nagios/cgi-bin/statusmap.cgi
+libexec/nagios/cgi-bin/statuswml.cgi
+libexec/nagios/cgi-bin/statuswrl.cgi
+libexec/nagios/cgi-bin/summary.cgi
+libexec/nagios/cgi-bin/tac.cgi
+libexec/nagios/cgi-bin/trends.cgi
+share/examples/nagios/bigger.cfg-sample
+share/examples/nagios/cgi.cfg-sample
+share/examples/nagios/checkcommands.cfg-sample
+share/examples/nagios/minimal.cfg-sample
+share/examples/nagios/misccommands.cfg-sample
+share/examples/nagios/nagios.cfg-sample
+share/examples/nagios/nagios.conf
+share/examples/nagios/resource.cfg-sample
+share/examples/rc.d/nagios
+share/nagios/contexthelp/A1.html
+share/nagios/contexthelp/A2.html
+share/nagios/contexthelp/A3.html
+share/nagios/contexthelp/A4.html
+share/nagios/contexthelp/A5.html
+share/nagios/contexthelp/A6.html
+share/nagios/contexthelp/A7.html
+share/nagios/contexthelp/B1.html
+share/nagios/contexthelp/C1.html
+share/nagios/contexthelp/D1.html
+share/nagios/contexthelp/E1.html
+share/nagios/contexthelp/F1.html
+share/nagios/contexthelp/G1.html
+share/nagios/contexthelp/G2.html
+share/nagios/contexthelp/G3.html
+share/nagios/contexthelp/G4.html
+share/nagios/contexthelp/G5.html
+share/nagios/contexthelp/G6.html
+share/nagios/contexthelp/H1.html
+share/nagios/contexthelp/H2.html
+share/nagios/contexthelp/H3.html
+share/nagios/contexthelp/H4.html
+share/nagios/contexthelp/H5.html
+share/nagios/contexthelp/H6.html
+share/nagios/contexthelp/H7.html
+share/nagios/contexthelp/H8.html
+share/nagios/contexthelp/I1.html
+share/nagios/contexthelp/I2.html
+share/nagios/contexthelp/I3.html
+share/nagios/contexthelp/I4.html
+share/nagios/contexthelp/I5.html
+share/nagios/contexthelp/I6.html
+share/nagios/contexthelp/I7.html
+share/nagios/contexthelp/I8.html
+share/nagios/contexthelp/I9.html
+share/nagios/contexthelp/J1.html
+share/nagios/contexthelp/K1.html
+share/nagios/contexthelp/L1.html
+share/nagios/contexthelp/L10.html
+share/nagios/contexthelp/L11.html
+share/nagios/contexthelp/L12.html
+share/nagios/contexthelp/L13.html
+share/nagios/contexthelp/L2.html
+share/nagios/contexthelp/L3.html
+share/nagios/contexthelp/L4.html
+share/nagios/contexthelp/L5.html
+share/nagios/contexthelp/L6.html
+share/nagios/contexthelp/L7.html
+share/nagios/contexthelp/L8.html
+share/nagios/contexthelp/L9.html
+share/nagios/contexthelp/M1.html
+share/nagios/contexthelp/M2.html
+share/nagios/contexthelp/M3.html
+share/nagios/contexthelp/M4.html
+share/nagios/contexthelp/M5.html
+share/nagios/contexthelp/M6.html
+share/nagios/contexthelp/N1.html
+share/nagios/contexthelp/N2.html
+share/nagios/contexthelp/N3.html
+share/nagios/contexthelp/N4.html
+share/nagios/contexthelp/N5.html
+share/nagios/contexthelp/N6.html
+share/nagios/contexthelp/N7.html
+share/nagios/docs/about.html
+share/nagios/docs/adaptive.html
+share/nagios/docs/addons.html
+share/nagios/docs/beginners.html
+share/nagios/docs/cgiauth.html
+share/nagios/docs/cgiincludes.html
+share/nagios/docs/cgis.html
+share/nagios/docs/checkscheduling.html
+share/nagios/docs/clusters.html
+share/nagios/docs/commandfile.html
+share/nagios/docs/config.html
+share/nagios/docs/configcgi.html
+share/nagios/docs/configextinfo.html
+share/nagios/docs/configmain.html
+share/nagios/docs/configobject.html
+share/nagios/docs/dependencies.html
+share/nagios/docs/distributed.html
+share/nagios/docs/downtime.html
+share/nagios/docs/embeddedperl.html
+share/nagios/docs/escalations.html
+share/nagios/docs/eventhandlers.html
+share/nagios/docs/extcommands.html
+share/nagios/docs/flapping.html
+share/nagios/docs/freshness.html
+share/nagios/docs/funstuff.html
+share/nagios/docs/images/activepassive.png
+share/nagios/docs/images/cgi-avail-a.png
+share/nagios/docs/images/cgi-avail-b.png
+share/nagios/docs/images/cgi-cmd.png
+share/nagios/docs/images/cgi-config.png
+share/nagios/docs/images/cgi-extinfo-a.png
+share/nagios/docs/images/cgi-extinfo-b.png
+share/nagios/docs/images/cgi-extinfo-c.png
+share/nagios/docs/images/cgi-extinfo-d.png
+share/nagios/docs/images/cgi-histogram.png
+share/nagios/docs/images/cgi-history.png
+share/nagios/docs/images/cgi-notifications.png
+share/nagios/docs/images/cgi-outages.png
+share/nagios/docs/images/cgi-showlog.png
+share/nagios/docs/images/cgi-status-a.png
+share/nagios/docs/images/cgi-status-b.png
+share/nagios/docs/images/cgi-status-c.png
+share/nagios/docs/images/cgi-status-d.png
+share/nagios/docs/images/cgi-statusmap.png
+share/nagios/docs/images/cgi-statuswml.png
+share/nagios/docs/images/cgi-statuswrl.png
+share/nagios/docs/images/cgi-summary.png
+share/nagios/docs/images/cgi-tac.png
+share/nagios/docs/images/cgi-trends.png
+share/nagios/docs/images/checktiming.png
+share/nagios/docs/images/distributed.png
+share/nagios/docs/images/host-dependencies.png
+share/nagios/docs/images/indirecthostcheck.png
+share/nagios/docs/images/indirectsvccheck.png
+share/nagios/docs/images/indirectsvccheck2.png
+share/nagios/docs/images/interleaved1.png
+share/nagios/docs/images/interleaved2.png
+share/nagios/docs/images/interleaved3.png
+share/nagios/docs/images/logofullsize.png
+share/nagios/docs/images/mrtgstats.png
+share/nagios/docs/images/network-heirarchy.png
+share/nagios/docs/images/network-outage1.png
+share/nagios/docs/images/network-outage2.png
+share/nagios/docs/images/noninterleaved1.png
+share/nagios/docs/images/noninterleaved2.png
+share/nagios/docs/images/physical-network.png
+share/nagios/docs/images/plugintheory.png
+share/nagios/docs/images/redudancy.png
+share/nagios/docs/images/redundancy.png
Home |
Main Index |
Thread Index |
Old Index