diff options
author | rh <rh@pkgsrc.org> | 2001-01-16 15:39:42 +0000 |
---|---|---|
committer | rh <rh@pkgsrc.org> | 2001-01-16 15:39:42 +0000 |
commit | 1f469c5d68bbe9e17aa736e62a3c32c7340eae13 (patch) | |
tree | 9fd731f2548c7b83a2f78f42735328af695db631 | |
parent | 2353d3ca579fc27ab7a289e33b45e48949530957 (diff) | |
download | pkgsrc-1f469c5d68bbe9e17aa736e62a3c32c7340eae13.tar.gz |
Initial import of netsaint-0.0.6, an advanced network monitoring program
-rw-r--r-- | net/netsaint-base/Makefile | 39 | ||||
-rw-r--r-- | net/netsaint-base/files/md5 | 3 | ||||
-rw-r--r-- | net/netsaint-base/files/netsaint-setup.sh | 8 | ||||
-rw-r--r-- | net/netsaint-base/files/patch-sum | 11 | ||||
-rw-r--r-- | net/netsaint-base/patches/patch-aa | 13 | ||||
-rw-r--r-- | net/netsaint-base/patches/patch-ab | 33 | ||||
-rw-r--r-- | net/netsaint-base/patches/patch-ac | 38 | ||||
-rw-r--r-- | net/netsaint-base/patches/patch-ad | 13 | ||||
-rw-r--r-- | net/netsaint-base/patches/patch-ae | 63 | ||||
-rw-r--r-- | net/netsaint-base/patches/patch-af | 66 | ||||
-rw-r--r-- | net/netsaint-base/patches/patch-ag | 13 | ||||
-rw-r--r-- | net/netsaint-base/patches/patch-ah | 29 | ||||
-rw-r--r-- | net/netsaint-base/patches/patch-ai | 23 | ||||
-rw-r--r-- | net/netsaint-base/pkg/COMMENT | 1 | ||||
-rw-r--r-- | net/netsaint-base/pkg/DESCR | 10 | ||||
-rw-r--r-- | net/netsaint-base/pkg/MESSAGE | 17 | ||||
-rw-r--r-- | net/netsaint-base/pkg/PLIST | 285 |
17 files changed, 665 insertions, 0 deletions
diff --git a/net/netsaint-base/Makefile b/net/netsaint-base/Makefile new file mode 100644 index 00000000000..ccae90359ef --- /dev/null +++ b/net/netsaint-base/Makefile @@ -0,0 +1,39 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/01/16 15:39:42 rh Exp $ +# + +DISTNAME= netsaint-0.0.6 +PKGNAME= ${DISTNAME:S/-/-base-/} +CATEGORIES= net +MASTER_SITES= http://netsaint.sourceforge.net/download/ + +MAINTAINER= rh@netbsd.org +HOMEPAGE= http://www.netsaint.org/ + +DEPENDS+= gd>1.8.1:../../graphics/gd + +NETSAINT_USER?= netsaint +NETSAINT_GROUP?=${NETSAINT_USER} + +USE_X11= YES +GNU_CONFIGURE= YES +CONFIGURE_ARGS+=--localstatedir=/var +CONFIGURE_ARGS+=--datadir=${PREFIX}/share/netsaint +CONFIGURE_ARGS+=--sysconfdir=${PREFIX}/etc/netsaint +CONFIGURE_ARGS+=--libexecdir=${PREFIX}/libexec/netsaint +CONFIGURE_ARGS+=--with-lockfile=/var/run/netsaint/netsaint.lock +CONFIGURE_ARGS+=--with-netsaint-user=${NETSAINT_USER} +CONFIGURE_ARGS+=--with-netsaint-grp=${NETSAINT_GROUP} + +MESSAGE_FILE= ${WRKDIR}/MESSAGE + +post-configure: + ${SED} <${FILESDIR}/netsaint-setup.sh >${WRKDIR}/netsaint-setup.sh \ + -e 's:@@USER@@:${NETSAINT_USER}:g' \ + -e 's:@@GROUP@@:${NETSAINT_GROUP}:g' + ${SED} -e 's:@@PREFIX@@:${PREFIX}:g' <${PKGDIR}/MESSAGE >${MESSAGE_FILE} + +post-install: + cd ${WRKSRC} && ${MAKE} install-config + cd ${WRKDIR} && ${INSTALL_SCRIPT} netsaint-setup.sh ${PREFIX}/sbin + +.include "../../mk/bsd.pkg.mk" diff --git a/net/netsaint-base/files/md5 b/net/netsaint-base/files/md5 new file mode 100644 index 00000000000..b3b1ef282d1 --- /dev/null +++ b/net/netsaint-base/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 2001/01/16 15:39:43 rh Exp $ + +MD5 (netsaint-0.0.6.tar.gz) = 0d85b66c7258fcb8dd3fbf775dd7728d diff --git a/net/netsaint-base/files/netsaint-setup.sh b/net/netsaint-base/files/netsaint-setup.sh new file mode 100644 index 00000000000..0a05686edff --- /dev/null +++ b/net/netsaint-base/files/netsaint-setup.sh @@ -0,0 +1,8 @@ +#!/bin/sh +# +# $NetBSD: netsaint-setup.sh,v 1.1.1.1 2001/01/16 15:39:43 rh Exp $ +# +install -m 0755 -o @@USER@@ -g @@GROUP@@ -d /var/log/netsaint +install -m 0755 -o @@USER@@ -g @@GROUP@@ -d /var/log/netsaint/archives +install -m 0755 -o @@USER@@ -g @@GROUP@@ -d /var/run/netsaint +install -m 0775 -o @@USER@@ -g @@GROUP@@ -d /var/run/netsaint/rw diff --git a/net/netsaint-base/files/patch-sum b/net/netsaint-base/files/patch-sum new file mode 100644 index 00000000000..33fbe06c3e0 --- /dev/null +++ b/net/netsaint-base/files/patch-sum @@ -0,0 +1,11 @@ +$NetBSD: patch-sum,v 1.1.1.1 2001/01/16 15:39:43 rh Exp $ + +MD5 (patch-aa) = 4678c9224348590e7a33f14e25c8e275 +MD5 (patch-ab) = a6b8b7f86c4ff23e27d4096729ae480e +MD5 (patch-ac) = 43de658b098b2c35c2370edbd3ea9440 +MD5 (patch-ad) = 4a2747dedb23885fb17692e027001320 +MD5 (patch-ae) = 71845c92798a358ba9db59a8c8a961ca +MD5 (patch-af) = 3f9fadf8d528cb58615f7cdd74d40c9a +MD5 (patch-ag) = 14a29828c11597d8510e09891e96132b +MD5 (patch-ah) = 00122a84297edcc182f967a4520c3af4 +MD5 (patch-ai) = 5cdfb2ebe0dd13290b5574ad03f3698a diff --git a/net/netsaint-base/patches/patch-aa b/net/netsaint-base/patches/patch-aa new file mode 100644 index 00000000000..f17394248e4 --- /dev/null +++ b/net/netsaint-base/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2001/01/16 15:39:43 rh Exp $ + +--- configure.orig Thu Dec 28 13:49:35 2000 ++++ configure +@@ -1210,7 +1210,7 @@ + echo $ac_n "(cached) $ac_c" 1>&6 + else + ac_save_LIBS="$LIBS" +- LIBS="-lgd -lz -lm -lpng $LIBS" ++ LIBS="-lgd -lz -lm -lpng -lxpm $LIBS" + cat > conftest.$ac_ext <<EOF + #line 1216 "configure" + #include "confdefs.h" diff --git a/net/netsaint-base/patches/patch-ab b/net/netsaint-base/patches/patch-ab new file mode 100644 index 00000000000..644587e0ee5 --- /dev/null +++ b/net/netsaint-base/patches/patch-ab @@ -0,0 +1,33 @@ +$NetBSD: patch-ab,v 1.1.1.1 2001/01/16 15:39:43 rh Exp $ + +--- cgi/Makefile.in.orig Sun Oct 29 23:43:53 2000 ++++ cgi/Makefile.in +@@ -14,7 +14,7 @@ + LOGDIR=@localstatedir@ + CFGDIR=@sysconfdir@ + BINDIR=@bindir@ +-CGIDIR=@sbindir@ ++CGIDIR=@libexecdir@/cgi-bin + HTMLDIR=@datadir@ + INSTALL=@INSTALL@ + INSTALL_OPTS=@INSTALL_OPTS@ +@@ -24,7 +24,7 @@ + + CP=@CP@ + CC=@CC@ +-CFLAGS=@CFLAGS@ @DEFS@ -DNSCGI ++CFLAGS=@CFLAGS@ @DEFS@ -I${prefix}/include -DNSCGI + #CFLAGS=-O3 -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -DHAVE_CONFIG_H -DNSCGI + LDFLAGS=@LDFLAGS@ @LIBS@ + +@@ -131,8 +131,8 @@ + rm -f *~ + + install: +- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(CGIDIR) ++ [ -d ${DESTDIR}${CGIDIR} ] || ${BSD_INSTALL_DATA_DIR} ${DESTDIR}${CGIDIR} + for file in *.cgi; \ +- do $(INSTALL) -m 775 $(INSTALL_OPTS) $$file $(DESTDIR)$(CGIDIR); done ++ do ${BSD_INSTALL_SCRIPT} $$file $(DESTDIR)$(CGIDIR); done + + diff --git a/net/netsaint-base/patches/patch-ac b/net/netsaint-base/patches/patch-ac new file mode 100644 index 00000000000..4727233b453 --- /dev/null +++ b/net/netsaint-base/patches/patch-ac @@ -0,0 +1,38 @@ +$NetBSD: patch-ac,v 1.1.1.1 2001/01/16 15:39:43 rh Exp $ + +--- Makefile.in.orig Sun Oct 29 23:43:54 2000 ++++ Makefile.in +@@ -94,25 +94,22 @@ + cd $(SRC_BASE); $(MAKE) $@ ; cd .. + cd $(SRC_CGI); $(MAKE) $@ ; cd .. + cd $(SRC_HTM); $(MAKE) $@ ; cd .. +- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(LOGDIR) +- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(LOGDIR)/archives + + install-config: +- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(CFGDIR) +- $(INSTALL) -m 664 $(INSTALL_OPTS) netsaint.cfg $(DESTDIR)$(CFGDIR) +- $(INSTALL) -m 664 $(INSTALL_OPTS) hosts.cfg $(DESTDIR)$(CFGDIR) +- $(INSTALL) -m 664 $(INSTALL_OPTS) commands.cfg $(DESTDIR)$(CFGDIR) +- $(INSTALL) -m 664 $(INSTALL_OPTS) nscgi.cfg $(DESTDIR)$(CFGDIR) +- $(INSTALL) -m 660 $(INSTALL_OPTS) resource.cfg $(DESTDIR)$(CFGDIR) ++ [ -d ${DESTDIR}${CFGDIR} ] || ${BSD_INSTALL_DATA_DIR} ${DESTDIR}${CFGDIR} ++ ${BSD_INSTALL_DATA} netsaint.cfg $(DESTDIR)$(CFGDIR)/netsaint.cfg.sample ++ ${BSD_INSTALL_DATA} hosts.cfg $(DESTDIR)$(CFGDIR)/hosts.cfg.sample ++ ${BSD_INSTALL_DATA} commands.cfg $(DESTDIR)$(CFGDIR)/commands.cfg.sample ++ ${BSD_INSTALL_DATA} nscgi.cfg $(DESTDIR)$(CFGDIR)/nscgi.cfg.sample ++ ${BSD_INSTALL_DATA} resource.cfg $(DESTDIR)$(CFGDIR)/resource.cfg.sample + + install-init: +- $(INSTALL) -m 774 $(INIT_OPTS) init-script $(DESTDIR)$(INIT_DIR)/netsaint ++ ${BSD_INSTALL_SCRIPT} init-script $(DESTDIR)$(INIT_DIR)/netsaint + + install-daemoninit: +- $(INSTALL) -m 774 $(INIT_OPTS) daemon-init $(DESTDIR)$(INIT_DIR)/netsaint ++ ${BSD_INSTALL_SCRIPT} daemon-init $(DESTDIR)$(INIT_DIR)/netsaint + + install-commandmode: +- $(INSTALL) -m 775 $(COMMAND_OPTS) -d $(DESTDIR)$(LOGDIR)/rw + + uninstall: + rm -rf $(DESTDIR)$(BINDIR)/netsaint $(DESTDIR)$(CGIDIR)/*.cgi $(DESTDIR)$(CFGDIR)/*.cfg $(DESTDIR)$(HTMLDIR) diff --git a/net/netsaint-base/patches/patch-ad b/net/netsaint-base/patches/patch-ad new file mode 100644 index 00000000000..456d7c9c83a --- /dev/null +++ b/net/netsaint-base/patches/patch-ad @@ -0,0 +1,13 @@ +$NetBSD: patch-ad,v 1.1.1.1 2001/01/16 15:39:43 rh Exp $ + +--- base/Makefile.in.orig Sun Oct 29 23:43:53 2000 ++++ base/Makefile.in +@@ -83,7 +83,5 @@ + rm -f *~ + + install: +- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(BINDIR) +- $(INSTALL) -m 774 $(INSTALL_OPTS) netsaint $(DESTDIR)$(BINDIR) +- ++ ${BSD_INSTALL_PROGRAM} netsaint $(DESTDIR)$(BINDIR) + diff --git a/net/netsaint-base/patches/patch-ae b/net/netsaint-base/patches/patch-ae new file mode 100644 index 00000000000..e2c7c571a95 --- /dev/null +++ b/net/netsaint-base/patches/patch-ae @@ -0,0 +1,63 @@ +$NetBSD: patch-ae,v 1.1.1.1 2001/01/16 15:39:43 rh Exp $ + +--- html/Makefile.in.orig Sun Oct 29 23:43:53 2000 ++++ html/Makefile.in +@@ -36,38 +36,34 @@ + rm -f docs/developer/*~ + + 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)/docs/images +- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/docs/developer +- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/docs/developer/images +- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/images +- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/images/logos +- $(INSTALL) -m 664 $(INSTALL_OPTS) robots.txt $(DESTDIR)$(HTMLDIR) +- $(INSTALL) -m 664 $(INSTALL_OPTS) docs/robots.txt $(DESTDIR)$(HTMLDIR)/docs ++ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(HTMLDIR) ++ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(HTMLDIR)/media ++ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(HTMLDIR)/stylesheets ++ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(HTMLDIR)/docs/images ++ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(HTMLDIR)/docs/developer ++ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(HTMLDIR)/docs/developer/images ++ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(HTMLDIR)/images ++ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(HTMLDIR)/images/logos ++ ${BSD_INSTALL_DATA} robots.txt $(DESTDIR)$(HTMLDIR) ++ ${BSD_INSTALL_DATA} docs/robots.txt $(DESTDIR)$(HTMLDIR)/docs + for file in *.html; \ +- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR); done ++ do ${BSD_INSTALL_DATA} $$file $(DESTDIR)$(HTMLDIR); done + for file in media/*.wav; \ +- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/media; done ++ do ${BSD_INSTALL_DATA} $$file $(DESTDIR)$(HTMLDIR)/media; done + for file in stylesheets/*.css; \ +- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/stylesheets; done ++ do ${BSD_INSTALL_DATA} $$file $(DESTDIR)$(HTMLDIR)/stylesheets; done + for file in docs/*.html; \ +- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/docs; done ++ do ${BSD_INSTALL_DATA} $$file $(DESTDIR)$(HTMLDIR)/docs; done + for file in docs/developer/*.html; \ +- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/docs/developer; done ++ do ${BSD_INSTALL_DATA} $$file $(DESTDIR)$(HTMLDIR)/docs/developer; done + for file in docs/developer/images/*; \ +- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/docs/developer/images; done ++ do ${BSD_INSTALL_DATA} $$file $(DESTDIR)$(HTMLDIR)/docs/developer/images; done + for file in docs/images/*; \ +- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/docs/images; done ++ do ${BSD_INSTALL_DATA} $$file $(DESTDIR)$(HTMLDIR)/docs/images; done + for file in images/*.gif; \ +- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images; done ++ do ${BSD_INSTALL_DATA} $$file $(DESTDIR)$(HTMLDIR)/images; done + for file in images/*.png; \ +- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images; done ++ do ${BSD_INSTALL_DATA} $$file $(DESTDIR)$(HTMLDIR)/images; done + for file in images/logos/*; \ +- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images/logos; done +- +- +- +- ++ do ${BSD_INSTALL_DATA} $$file $(DESTDIR)$(HTMLDIR)/images/logos; done + diff --git a/net/netsaint-base/patches/patch-af b/net/netsaint-base/patches/patch-af new file mode 100644 index 00000000000..ff107a7d417 --- /dev/null +++ b/net/netsaint-base/patches/patch-af @@ -0,0 +1,66 @@ +$NetBSD: patch-af,v 1.1.1.1 2001/01/16 15:39:43 rh Exp $ + +--- netsaint.cfg.in.orig Tue Jan 16 11:05:53 2001 ++++ netsaint.cfg.in +@@ -16,7 +16,7 @@ + # for historical purposes. This should be the first option specified + # in the config file!!! + +-log_file=@localstatedir@/netsaint.log ++log_file=@localstatedir@/log/netsaint/netsaint.log + + + # OBJECT CONFIGURATION FILE (A.K.A "HOST" CONFIG FILE) +@@ -64,7 +64,7 @@ + # The contentsof the status file are deleted every time NetSaint + # restarts. + +-status_file=@localstatedir@/status.log ++status_file=@localstatedir@/log/netsaint/status.log + + + # NETSAINT USER +@@ -124,14 +124,14 @@ + # directory level instead of on the file, as the file is deleted every + # time its contents are processed. + +-command_file=@localstatedir@/rw/netsaint.cmd ++command_file=@localstatedir@/run/netsaint/rw/netsaint.cmd + + + # COMMENT FILE + # This is the file that NetSaint will use for storing host and service + # comments. + +-comment_file=@localstatedir@/comment.log ++comment_file=@localstatedir@/log/netsaint/comment.log + + + # LOCK FILE +@@ -149,7 +149,7 @@ + # the other files (status log, comment file, main log file) are + # located on. This limitation will likely disappear in future versions. + +-temp_file=@localstatedir@/netsaint.tmp ++temp_file=@localstatedir@/run/netsaint/netsaint.tmp + + + # LOG ROTATION METHOD +@@ -168,7 +168,7 @@ + # 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=@localstatedir@/log/netsaint/archives + + + # LOG SEVERITY LEVEL +@@ -370,7 +370,7 @@ + # This file is used only if the preserve_state_information + # variable is set to 1. + +-state_retention_file=@localstatedir@/status.sav ++state_retention_file=@localstatedir@/log/netsaint/status.sav + + + # INTERVAL LENGTH diff --git a/net/netsaint-base/patches/patch-ag b/net/netsaint-base/patches/patch-ag new file mode 100644 index 00000000000..b4144bd3786 --- /dev/null +++ b/net/netsaint-base/patches/patch-ag @@ -0,0 +1,13 @@ +$NetBSD: patch-ag,v 1.1.1.1 2001/01/16 15:39:43 rh Exp $ + +--- nscgi.cfg.in.orig Sun Oct 29 23:43:54 2000 ++++ nscgi.cfg.in +@@ -55,7 +55,7 @@ + # NetSaint. Run the 'ps' command manually to see what the command + # line entry for the NetSaint process looks like. + +-#netsaint_check_command=@libexecdir@/check_netsaint @localstatedir@/status.log 5 '@bindir@/netsaint' ++#netsaint_check_command=@libexecdir@/check_netsaint @localstatedir@/log/netsaint/status.log 5 'netsaint' + + + diff --git a/net/netsaint-base/patches/patch-ah b/net/netsaint-base/patches/patch-ah new file mode 100644 index 00000000000..a77941ed5fd --- /dev/null +++ b/net/netsaint-base/patches/patch-ah @@ -0,0 +1,29 @@ +$NetBSD: patch-ah,v 1.1.1.1 2001/01/16 15:39:43 rh Exp $ + +--- hosts.cfg.in.orig Tue Jan 16 12:57:49 2001 ++++ hosts.cfg.in +@@ -199,20 +199,20 @@ + + # Service notification command - send email with problem summary + +-command[notify-by-email]=/bin/echo -e '***** NetSaint 0.0.6 *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info:\n\n$OUTPUT$' | /bin/mail -s '** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **' $CONTACTEMAIL$ ++command[notify-by-email]=/bin/echo -e '***** NetSaint 0.0.6 *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info:\n\n$OUTPUT$' | /usr/bin/mail -s '** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **' $CONTACTEMAIL$ + + # Service notification command - send email to alphanumeric pager gateway + # The notify-by-epager command assumes that each contact has a pager email gateway, and + # that the address has been entered into the appropriate contact field instead of an + # actual pager number. (i.e. 'pagejoe@nowhere.com' routes mail to Joe's alphanumeric pager) + +-command[notify-by-epager]=/bin/echo -e "Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $OUTPUT$\nDate: $DATETIME$" | /bin/mail -s '$NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$' $CONTACTPAGER$ ++command[notify-by-epager]=/bin/echo -e "Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $OUTPUT$\nDate: $DATETIME$" | /usr/bin/mail -s '$NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$' $CONTACTPAGER$ + + # Host notification commands (one for email, one for alphanumeric pager with email gateway) + +-command[host-notify-by-email]=/bin/echo -e "***** NetSaint 0.0.6 *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $OUTPUT$\n\nDate/Time: $DATETIME$\n" | /bin/mail -s 'Host $HOSTSTATE$ alert for $HOSTNAME$!' $CONTACTEMAIL$ ++command[host-notify-by-email]=/bin/echo -e "***** NetSaint 0.0.6 *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $OUTPUT$\n\nDate/Time: $DATETIME$\n" | /usr/bin/mail -s 'Host $HOSTSTATE$ alert for $HOSTNAME$!' $CONTACTEMAIL$ + +-command[host-notify-by-epager]=/bin/echo -e "Host '$HOSTALIAS$' is $HOSTSTATE$\nInfo: $OUTPUT$\nTime: $DATETIME$" | /bin/mail -s '$NOTIFICATIONTYPE$ alert - Host $HOSTNAME$ is $HOSTSTATE$' $CONTACTPAGER$ ++command[host-notify-by-epager]=/bin/echo -e "Host '$HOSTALIAS$' is $HOSTSTATE$\nInfo: $OUTPUT$\nTime: $DATETIME$" | /usr/bin/mail -s '$NOTIFICATIONTYPE$ alert - Host $HOSTNAME$ is $HOSTSTATE$' $CONTACTPAGER$ + + + diff --git a/net/netsaint-base/patches/patch-ai b/net/netsaint-base/patches/patch-ai new file mode 100644 index 00000000000..a00c2f805fe --- /dev/null +++ b/net/netsaint-base/patches/patch-ai @@ -0,0 +1,23 @@ +$NetBSD: patch-ai,v 1.1.1.1 2001/01/16 15:39:43 rh Exp $ + +--- common/locations.h.in.orig Tue Jan 16 14:06:12 2001 ++++ common/locations.h.in +@@ -19,12 +19,12 @@ + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + ************************************************************************/ + +-#define DEFAULT_TEMP_FILE "@localstatedir@/netsaint.tmp" +-#define DEFAULT_STATUS_FILE "@localstatedir@/status.log" +-#define DEFAULT_LOG_FILE "@localstatedir@/netsaint.log" +-#define DEFAULT_LOG_ARCHIVE_PATH "@localstatedir@/archives/" +-#define DEFAULT_COMMENT_FILE "@localstatedir@/comment.log" +-#define DEFAULT_COMMAND_FILE "@localstatedir@/rw/netsaint.cmd" ++#define DEFAULT_TEMP_FILE "@localstatedir@/run/netsaint/netsaint.tmp" ++#define DEFAULT_STATUS_FILE "@localstatedir@/log/netsaint/status.log" ++#define DEFAULT_LOG_FILE "@localstatedir@/log/netsaint/netsaint.log" ++#define DEFAULT_LOG_ARCHIVE_PATH "@localstatedir@/log/netsaint/archives/" ++#define DEFAULT_COMMENT_FILE "@localstatedir@/log/netsaint/comment.log" ++#define DEFAULT_COMMAND_FILE "@localstatedir@/run/netsaint/rw/netsaint.cmd" + #define DEFAULT_PHYSICAL_HTML_PATH "@datadir@" + #define DEFAULT_URL_HTML_PATH "@htmurl@" + #define DEFAULT_PHYSICAL_CGIBIN_PATH "@sbindir@" diff --git a/net/netsaint-base/pkg/COMMENT b/net/netsaint-base/pkg/COMMENT new file mode 100644 index 00000000000..65a1323a63b --- /dev/null +++ b/net/netsaint-base/pkg/COMMENT @@ -0,0 +1 @@ +network monitor diff --git a/net/netsaint-base/pkg/DESCR b/net/netsaint-base/pkg/DESCR new file mode 100644 index 00000000000..2e583623b88 --- /dev/null +++ b/net/netsaint-base/pkg/DESCR @@ -0,0 +1,10 @@ + NetSaint 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. NetSaint 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 NetSaint. Several CGI programs are included with NetSaint +in order to allow you to view the current service status, history, etc. +via a web browser. diff --git a/net/netsaint-base/pkg/MESSAGE b/net/netsaint-base/pkg/MESSAGE new file mode 100644 index 00000000000..37671b23bda --- /dev/null +++ b/net/netsaint-base/pkg/MESSAGE @@ -0,0 +1,17 @@ +$NetBSD: MESSAGE,v 1.1.1.1 2001/01/16 15:39:43 rh Exp $ + +========================================================================== + netsaint-base has now been installed. Before using this package for + the first time, you need to run 'netsaint-setup.sh' and then set up the + configuration files in @@PREFIX@@/etc/netsaint (simply copy over the + sample configuration files you find there and edit them accordingly). + + If you want to use the web frontend, you need to make sure that the + user your CGI scripts are running under has write access to the + directory 'netsaint.cmd' resides in (see 'command_file' in the + 'netsaint.cfg' configuration file for more information). + + Please note that without plug-ins, this package will not do anything + useful. It is therefore recommended to install the 'netsaint-plugins' + package as well. +========================================================================== diff --git a/net/netsaint-base/pkg/PLIST b/net/netsaint-base/pkg/PLIST new file mode 100644 index 00000000000..a7d6c014ec7 --- /dev/null +++ b/net/netsaint-base/pkg/PLIST @@ -0,0 +1,285 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/01/16 15:39:42 rh Exp $ +bin/netsaint +etc/netsaint/commands.cfg.sample +etc/netsaint/hosts.cfg.sample +etc/netsaint/netsaint.cfg.sample +etc/netsaint/nscgi.cfg.sample +etc/netsaint/resource.cfg.sample +libexec/netsaint/cgi-bin/cmd.cgi +libexec/netsaint/cgi-bin/config.cgi +libexec/netsaint/cgi-bin/extinfo.cgi +libexec/netsaint/cgi-bin/history.cgi +libexec/netsaint/cgi-bin/notifications.cgi +libexec/netsaint/cgi-bin/outages.cgi +libexec/netsaint/cgi-bin/showlog.cgi +libexec/netsaint/cgi-bin/status.cgi +libexec/netsaint/cgi-bin/statusmap.cgi +libexec/netsaint/cgi-bin/statuswrl.cgi +libexec/netsaint/cgi-bin/trends.cgi +sbin/netsaint-setup.sh +share/netsaint/docs/about.html +share/netsaint/docs/addons.html +share/netsaint/docs/bigtime.html +share/netsaint/docs/cgiauth.html +share/netsaint/docs/cgis.html +share/netsaint/docs/checkscheduling.html +share/netsaint/docs/clusters.html +share/netsaint/docs/commandfile.html +share/netsaint/docs/config.html +share/netsaint/docs/configcgi.html +share/netsaint/docs/confighost.html +share/netsaint/docs/configmain.html +share/netsaint/docs/developer/commentfile.html +share/netsaint/docs/developer/images/xcdapi.gif +share/netsaint/docs/developer/images/xedapi.gif +share/netsaint/docs/developer/images/xodapi.gif +share/netsaint/docs/developer/images/xrdapi.gif +share/netsaint/docs/developer/images/xsdapi.gif +share/netsaint/docs/developer/index.html +share/netsaint/docs/developer/pluginhowto.html +share/netsaint/docs/developer/stateretentionfile.html +share/netsaint/docs/developer/statusfile.html +share/netsaint/docs/developer/xcd.html +share/netsaint/docs/developer/xdata.html +share/netsaint/docs/developer/xed.html +share/netsaint/docs/developer/xod.html +share/netsaint/docs/developer/xrd.html +share/netsaint/docs/developer/xsd.html +share/netsaint/docs/distributed.html +share/netsaint/docs/escalations.html +share/netsaint/docs/eventhandlers.html +share/netsaint/docs/extcommands.html +share/netsaint/docs/faqs.html +share/netsaint/docs/funstuff.html +share/netsaint/docs/images/activepassive.gif +share/netsaint/docs/images/checktiming.gif +share/netsaint/docs/images/cmd_cgi.gif +share/netsaint/docs/images/config_cgi.gif +share/netsaint/docs/images/distributed.gif +share/netsaint/docs/images/extinfo_cgi_a.gif +share/netsaint/docs/images/extinfo_cgi_b.gif +share/netsaint/docs/images/extinfo_cgi_c.gif +share/netsaint/docs/images/extinfo_cgi_d.gif +share/netsaint/docs/images/history_cgi.gif +share/netsaint/docs/images/indirecthostcheck.gif +share/netsaint/docs/images/indirectsvccheck.gif +share/netsaint/docs/images/indirectsvccheck2.gif +share/netsaint/docs/images/interleaved1.gif +share/netsaint/docs/images/interleaved2.gif +share/netsaint/docs/images/network-heirarchy.gif +share/netsaint/docs/images/network-outage1.gif +share/netsaint/docs/images/network-outage2.gif +share/netsaint/docs/images/noninterleaved1.gif +share/netsaint/docs/images/noninterleaved2.gif +share/netsaint/docs/images/notification-process.gif +share/netsaint/docs/images/notifications_cgi.gif +share/netsaint/docs/images/outages_cgi.gif +share/netsaint/docs/images/physical-network.gif +share/netsaint/docs/images/plugintheory.gif +share/netsaint/docs/images/redundancy-1.gif +share/netsaint/docs/images/redundancy-2.gif +share/netsaint/docs/images/showlog_cgi.gif +share/netsaint/docs/images/status_cgi_a.gif +share/netsaint/docs/images/status_cgi_b.gif +share/netsaint/docs/images/statusmap_cgi.gif +share/netsaint/docs/images/statuswrl_cgi.gif +share/netsaint/docs/images/trends_cgi.gif +share/netsaint/docs/index.html +share/netsaint/docs/indirectchecks.html +share/netsaint/docs/installing.html +share/netsaint/docs/installweb.html +share/netsaint/docs/macros.html +share/netsaint/docs/makehtml.html +share/netsaint/docs/networkoutages.html +share/netsaint/docs/networkreachability.html +share/netsaint/docs/notifications.html +share/netsaint/docs/oldplugins.html +share/netsaint/docs/parallelization.html +share/netsaint/docs/passivechecks.html +share/netsaint/docs/pluginhowto.html +share/netsaint/docs/plugins.html +share/netsaint/docs/plugintheory.html +share/netsaint/docs/programmodes.html +share/netsaint/docs/redundancy.html +share/netsaint/docs/robots.txt +share/netsaint/docs/security.html +share/netsaint/docs/starting.html +share/netsaint/docs/statetypes.html +share/netsaint/docs/statuslevels.html +share/netsaint/docs/stoprestart.html +share/netsaint/docs/theory.html +share/netsaint/docs/timeperiods.html +share/netsaint/docs/verifyconfig.html +share/netsaint/docs/volatileservices.html +share/netsaint/docs/whatsnew.html +share/netsaint/images/ack.gif +share/netsaint/images/active.gif +share/netsaint/images/command.gif +share/netsaint/images/commandsbar.gif +share/netsaint/images/comment.gif +share/netsaint/images/config.gif +share/netsaint/images/contact.gif +share/netsaint/images/contactgroup.gif +share/netsaint/images/contactgroupsbar.gif +share/netsaint/images/contactsbar.gif +share/netsaint/images/critical.gif +share/netsaint/images/delay.gif +share/netsaint/images/delete.gif +share/netsaint/images/disabled.gif +share/netsaint/images/docbar.gif +share/netsaint/images/down.gif +share/netsaint/images/enabled.gif +share/netsaint/images/extinfo.gif +share/netsaint/images/greendot.gif +share/netsaint/images/history.gif +share/netsaint/images/historybar.gif +share/netsaint/images/homebar.gif +share/netsaint/images/host.gif +share/netsaint/images/hostevent.gif +share/netsaint/images/hostgroupsbar.gif +share/netsaint/images/hostsbar.gif +share/netsaint/images/info.gif +share/netsaint/images/left.gif +share/netsaint/images/logfilebar.gif +share/netsaint/images/logofullsize.gif +share/netsaint/images/logos/aix.gd2 +share/netsaint/images/logos/aix.gif +share/netsaint/images/logos/amiga.gd2 +share/netsaint/images/logos/amiga.gif +share/netsaint/images/logos/apple.gd2 +share/netsaint/images/logos/apple.gif +share/netsaint/images/logos/beos.gd2 +share/netsaint/images/logos/beos.gif +share/netsaint/images/logos/caldera.gd2 +share/netsaint/images/logos/caldera.gif +share/netsaint/images/logos/cat1900.gd2 +share/netsaint/images/logos/cat2900.gd2 +share/netsaint/images/logos/cat5000.gd2 +share/netsaint/images/logos/debian.gd2 +share/netsaint/images/logos/debian.gif +share/netsaint/images/logos/freebsd40.gd2 +share/netsaint/images/logos/freebsd40.gif +share/netsaint/images/logos/hp-printer40.gd2 +share/netsaint/images/logos/hp-printer40.gif +share/netsaint/images/logos/hpux.gd2 +share/netsaint/images/logos/hpux.gif +share/netsaint/images/logos/irix.gd2 +share/netsaint/images/logos/irix.gif +share/netsaint/images/logos/linux40.gd2 +share/netsaint/images/logos/linux40.gif +share/netsaint/images/logos/logo.gd2 +share/netsaint/images/logos/mac40.gd2 +share/netsaint/images/logos/mac40.gif +share/netsaint/images/logos/mandrake.gd2 +share/netsaint/images/logos/mandrake.gif +share/netsaint/images/logos/next.gd2 +share/netsaint/images/logos/next.gif +share/netsaint/images/logos/ng-switch40.gd2 +share/netsaint/images/logos/ng-switch40.gif +share/netsaint/images/logos/novell40.gd2 +share/netsaint/images/logos/novell40.gif +share/netsaint/images/logos/openbsd.gd2 +share/netsaint/images/logos/openbsd.gif +share/netsaint/images/logos/redhat.gd2 +share/netsaint/images/logos/redhat.gif +share/netsaint/images/logos/router40.gd2 +share/netsaint/images/logos/router40.gif +share/netsaint/images/logos/slackware.gd2 +share/netsaint/images/logos/slackware.gif +share/netsaint/images/logos/stampede.gd2 +share/netsaint/images/logos/stampede.gif +share/netsaint/images/logos/storm.gd2 +share/netsaint/images/logos/storm.gif +share/netsaint/images/logos/sun40.gd2 +share/netsaint/images/logos/sun40.gif +share/netsaint/images/logos/sunlogo.gd2 +share/netsaint/images/logos/sunlogo.gif +share/netsaint/images/logos/switch40.gd2 +share/netsaint/images/logos/switch40.gif +share/netsaint/images/logos/turbolinux.gd2 +share/netsaint/images/logos/turbolinux.gif +share/netsaint/images/logos/ultrapenguin.gd2 +share/netsaint/images/logos/ultrapenguin.gif +share/netsaint/images/logos/unicos.gd2 +share/netsaint/images/logos/unicos.gif +share/netsaint/images/logos/unknown.gd2 +share/netsaint/images/logos/win40.gd2 +share/netsaint/images/logos/win40.gif +share/netsaint/images/logos/yellowdog.gd2 +share/netsaint/images/logos/yellowdog.gif +share/netsaint/images/logrotate.gif +share/netsaint/images/logs.gif +share/netsaint/images/ndisabled.gif +share/netsaint/images/networkhealthbar.gif +share/netsaint/images/networkoutagesbar.gif +share/netsaint/images/noack.gif +share/netsaint/images/notes.gif +share/netsaint/images/notificationsbar.gif +share/netsaint/images/notify.gif +share/netsaint/images/orangedot.gif +share/netsaint/images/parentup.gif +share/netsaint/images/processinfobar.gif +share/netsaint/images/recovery.gif +share/netsaint/images/restart.gif +share/netsaint/images/right.gif +share/netsaint/images/sbbg.gif +share/netsaint/images/sbconfig.gif +share/netsaint/images/sbgeneral.gif +share/netsaint/images/sblogo.gif +share/netsaint/images/sbmonitor.gif +share/netsaint/images/scale.gif +share/netsaint/images/serviceevent.gif +share/netsaint/images/serviceproblemsbar.gif +share/netsaint/images/servicesbar.gif +share/netsaint/images/standby.gif +share/netsaint/images/start.gif +share/netsaint/images/status.gif +share/netsaint/images/status2.gif +share/netsaint/images/status3.gif +share/netsaint/images/status4.gif +share/netsaint/images/statusdetailbar.gif +share/netsaint/images/statusmapbar.gif +share/netsaint/images/statusoverviewbar.gif +share/netsaint/images/statussummarybar.gif +share/netsaint/images/statusworldbar.gif +share/netsaint/images/stop.gif +share/netsaint/images/thermcrit.gif +share/netsaint/images/thermok.gif +share/netsaint/images/thermwarn.gif +share/netsaint/images/timeperiodsbar.gif +share/netsaint/images/trends.gif +share/netsaint/images/trendsbar.gif +share/netsaint/images/trendshost.png +share/netsaint/images/trendssvc.png +share/netsaint/images/unknown.gif +share/netsaint/images/up.gif +share/netsaint/images/warning.gif +share/netsaint/index.html +share/netsaint/main.html +share/netsaint/media/critical.wav +share/netsaint/media/hostdown.wav +share/netsaint/media/warning.wav +share/netsaint/robots.txt +share/netsaint/side.html +share/netsaint/stylesheets/cmd.css +share/netsaint/stylesheets/config.css +share/netsaint/stylesheets/extinfo.css +share/netsaint/stylesheets/history.css +share/netsaint/stylesheets/notifications.css +share/netsaint/stylesheets/outages.css +share/netsaint/stylesheets/showlog.css +share/netsaint/stylesheets/status.css +share/netsaint/stylesheets/statusmap.css +share/netsaint/stylesheets/trends.css +@dirrm share/netsaint/stylesheets +@dirrm share/netsaint/media +@dirrm share/netsaint/images/logos +@dirrm share/netsaint/images +@dirrm share/netsaint/docs/images +@dirrm share/netsaint/docs/developer/images +@dirrm share/netsaint/docs/developer +@dirrm share/netsaint/docs +@dirrm share/netsaint +@dirrm libexec/netsaint/cgi-bin +@dirrm libexec/netsaint +@dirrm etc/netsaint |