Verisign stuff

This commit is contained in:
2024-12-16 09:43:03 +01:00
parent 2b0788e34d
commit 17b695b587
59 changed files with 1428 additions and 3112 deletions

105
net-mgmt/nagios/Makefile Normal file
View File

@ -0,0 +1,105 @@
PORTNAME= nagios
PORTVERSION= 3.5.1
PORTREVISION= 12
CATEGORIES= net-mgmt
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-3.x/${PORTNAME}-${PORTVERSION}
MAINTAINER= joneum@FreeBSD.org
COMMENT= Powerful network monitoring system
WWW= https://www.nagios.org/
LICENSE= GPLv2
LIB_DEPENDS= libltdl.so:devel/libltdl \
libgd.so:graphics/gd
PORTSCOUT= limit:^3.
USES= cpe localbase perl5 php
USE_PERL5= build
USE_RC_SUBR= nagios
CONFLICTS= nagios-[12].* nagios-devel nagios4
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-command-user=${NAGIOSUSER} \
--with-command-group=${WWWGRP} \
--with-nagios-user=${NAGIOSUSER} \
--with-nagios-group=${NAGIOSGROUP} \
--with-htmurl=${NAGIOSHTMURL} \
--with-cgiurl=${NAGIOSCGIURL} \
--sbindir=${PREFIX}/${NAGIOSWWWDIR}/cgi-bin \
--libexecdir=${PREFIX}/libexec/nagios \
--datadir=${PREFIX}/${NAGIOSWWWDIR} \
--sysconfdir=${PREFIX}/etc/nagios \
--localstatedir=${NAGIOSDIR} \
--with-httpd-conf=${PREFIX}/etc \
--with-checkresult-dir=${NAGIOSDIR}/checkresults \
--disable-statuswrl \
ac_cv_lib_iconv_main=no
CONFIGURE_ENV= PERL=${PERL}
MAKE_JOBS_UNSAFE= yes
INSTALL_TARGET= install install-commandmode install-config
PLIST_SUB= NAGIOSDIR=${NAGIOSDIR} \
NAGIOSWWWDIR=${NAGIOSWWWDIR} \
NAGIOSUSER=${NAGIOSUSER} \
NAGIOSGROUP=${NAGIOSGROUP} \
WWWGRP=${WWWGRP}
SUB_FILES= pkg-message
# XXX: Don't remove PREFIX from SUB_LIST here.
SUB_LIST= PREFIX=${PREFIX} \
NAGIOSHTMURL=${NAGIOSHTMURL} \
NAGIOSCGIURL=${NAGIOSCGIURL} \
${PLIST_SUB}
NAGIOSUSER?= nagios
NAGIOSGROUP?= nagios
NAGIOSDIR?= /var/spool/nagios
NAGIOSWWWDIR?= www/nagios
NAGIOSHTMURL?= /nagios
NAGIOSCGIURL?= ${NAGIOSHTMURL}/cgi-bin
USERS= ${NAGIOSUSER}
GROUPS= ${NAGIOSGROUP}
OPTIONS_DEFINE= EMBEDDED_PERL NANOSLEEP EVENT_BROKER UNHANDLED_HACK
OPTIONS_RADIO= PLUGINS
OPTIONS_RADIO_PLUGINS= MONPLUGINS NAGPLUGINS
OPTIONS_DEFAULT= NAGPLUGINS
EMBEDDED_PERL_DESC= Enable embedded Perl [requires Perl 5.8.0+]
NANOSLEEP_DESC= Use nanosleep in event timing
EVENT_BROKER_DESC= Enable event broker functionality
UNHANDLED_HACK_DESC= Display passive checks in unhandled queries
MONPLUGINS_RUN_DEPENDS= ${LOCALBASE}/libexec/nagios/check_nagios:net-mgmt/monitoring-plugins
NAGPLUGINS_RUN_DEPENDS= ${LOCALBASE}/libexec/nagios/check_nagios:net-mgmt/nagios-plugins
OPTIONS_SUB=
EMBEDDED_PERL_USE= perl5=run
EMBEDDED_PERL_CONFIGURE_ENABLE= embedded-perl
EMBEDDED_PERL_CONFIGURE_WITH= perlcache
NANOSLEEP_CONFIGURE_ENABLE= nanosleep
EVENT_BROKER_CONFIGURE_ENABLE= event-broker
post-extract:
@${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC}
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} '/^INSTALL_OPTS=/d' ${WRKSRC}/configure
.if ${PORT_OPTIONS:MUNHANDLED_HACK}
@${REINPLACE_CMD} -e 's#;serviceprops=42\&#;serviceprops=10\&#g' \
-e 's#;hostprops=42\"#;hostprops=10\"#g' ${WRKSRC}/html/side.php
.endif
post-install:
@${MV} ${STAGEDIR}${PREFIX}/${NAGIOSWWWDIR}/config.inc.php ${STAGEDIR}${PREFIX}/${NAGIOSWWWDIR}/config.inc.php.sample
.include <bsd.port.mk>

2
net-mgmt/nagios/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (nagios-3.5.1.tar.gz) = ca9dd68234fa090b3c35ecc8767b2c9eb743977eaf32612fa9b8341cc00a0f99
SIZE (nagios-3.5.1.tar.gz) = 1763584

View File

@ -0,0 +1,100 @@
#!/bin/sh
# PROVIDE: nagios
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable nagios:
# nagios_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable nagios.
# nagios_precache (bool): Set to "NO" by default.
# Set it to "YES" to enable pre-caching.
# nagios_flags (str): Set to "" by default.
# nagios_configfile (str): Set to "%%PREFIX%%/etc/nagios/nagios.cfg" by default.
#
. /etc/rc.subr
name="nagios"
rcvar=nagios_enable
command="%%PREFIX%%/bin/nagios"
command_args="-d"
extra_commands="reload configtest"
pidfile="%%NAGIOSDIR%%/nagios.lock"
nagios_user="%%NAGIOSUSER%%"
start_precmd="start_precmd"
stop_postcmd="stop_postcmd"
restart_precmd="nagios_checkconfig"
reload_precmd="reload_precmd"
configtest_cmd="nagios_checkconfig"
sig_reload=HUP
load_rc_config "${name}"
[ -z "${nagios_enable}" ] && nagios_enable="NO"
[ -z "${nagios_configfile}" ] && nagios_configfile="%%PREFIX%%/etc/nagios/nagios.cfg"
[ -z "${nagios_precache}" ] && nagios_precache="NO"
required_files="${nagios_configfile}"
command_args="${command_args} ${nagios_configfile}"
nagios_cacheconfig() {
if ! checkyesno nagios_precache; then
return 0
fi
echo -n "Pre-Caching nagios configuration: "
${command} -pv ${nagios_configfile} 2>&1 >/dev/null
if [ $? != 0 ]; then
echo "FAILED"
${command} -v ${nagios_configfile}
return 1
else
command_args="-u -x ${command_args}"
echo "OK"
fi
}
nagios_checkconfig() {
echo -n "Performing sanity check of nagios configuration: "
${command} -v ${nagios_configfile} 2>&1 >/dev/null
if [ $? != 0 ]; then
echo "FAILED"
${command} -v ${nagios_configfile}
return 1
else
echo "OK"
fi
}
reload_precmd() {
if ! nagios_checkconfig; then
return 1
fi
if ! nagios_cacheconfig; then
return 1
fi
}
start_precmd() {
if ! nagios_checkconfig; then
return 1
fi
if ! nagios_cacheconfig; then
return 1
fi
su -m "${nagios_user}" -c "touch \"%%NAGIOSDIR%%/nagios.log\" \"%%NAGIOSDIR%%/status.sav\""
rm -f "%%NAGIOSDIR%%/rw/nagios.cmd"
}
stop_postcmd() {
rm -f "%%NAGIOSDIR%%/nagios.tmp" "%%NAGIOSDIR%%/rw/nagios.cmd"
}
run_rc_command "$1"

View File

@ -0,0 +1,32 @@
--- ./include/downtime.h.orig 2013-08-30 19:46:14.000000000 +0200
+++ ./include/downtime.h 2014-04-18 10:49:26.000000000 +0200
@@ -39,24 +39,26 @@
char *service_description;
time_t entry_time;
time_t start_time;
- time_t flex_downtime_start; /* Time the flexible downtime started */
time_t end_time;
int fixed;
unsigned long triggered_by;
unsigned long duration;
unsigned long downtime_id;
- int is_in_effect;
- int start_notification_sent;
char *author;
char *comment;
#ifdef NSCORE
unsigned long comment_id;
+#endif
+ int is_in_effect;
+#ifdef NSCORE
int start_flex_downtime;
int incremented_pending_downtime;
// int start_event;
// int stop_event;
#endif
struct scheduled_downtime_struct *next;
+ time_t flex_downtime_start; /* Time the flexible downtime started */
+ int start_notification_sent;
} scheduled_downtime;

View File

@ -0,0 +1,66 @@
--- ./Makefile.in.orig 2013-08-30 19:46:14.000000000 +0200
+++ ./Makefile.in 2014-01-14 13:57:06.000000000 +0100
@@ -30,8 +30,6 @@
LIBEXECDIR=@libexecdir@
HTMLDIR=@datadir@
INSTALL=@INSTALL@
-INSTALL_OPTS=@INSTALL_OPTS@
-COMMAND_OPTS=@COMMAND_OPTS@
HTTPD_CONF=@HTTPD_CONF@
INIT_DIR=@init_dir@
INIT_OPTS=-o root -g root
@@ -234,12 +232,12 @@
$(MAKE) install-basic
install-basic:
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(LIBEXECDIR)
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(LIBEXECDIR)
$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(LOGDIR)
$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(LOGDIR)/archives
$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(CHECKRESULTDIR)
if [ $(INSTALLPERLSTUFF) = yes ]; then \
- $(INSTALL) -m 664 $(INSTALL_OPTS) p1.pl $(DESTDIR)$(BINDIR); \
+ $(INSTALL) -m 644 $(INSTALL_OPTS) p1.pl $(DESTDIR)$(BINDIR); \
fi;
@echo ""
@@ -261,19 +259,18 @@
install-config:
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(CFGDIR)
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(CFGDIR)/objects
- $(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/nagios.cfg $(DESTDIR)$(CFGDIR)/nagios.cfg
- $(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/cgi.cfg $(DESTDIR)$(CFGDIR)/cgi.cfg
- $(INSTALL) -b -m 660 $(INSTALL_OPTS) sample-config/resource.cfg $(DESTDIR)$(CFGDIR)/resource.cfg
- $(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/template-object/templates.cfg $(DESTDIR)$(CFGDIR)/objects/templates.cfg
- $(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/template-object/commands.cfg $(DESTDIR)$(CFGDIR)/objects/commands.cfg
- $(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/template-object/contacts.cfg $(DESTDIR)$(CFGDIR)/objects/contacts.cfg
- $(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/template-object/timeperiods.cfg $(DESTDIR)$(CFGDIR)/objects/timeperiods.cfg
- $(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/template-object/localhost.cfg $(DESTDIR)$(CFGDIR)/objects/localhost.cfg
- $(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/template-object/windows.cfg $(DESTDIR)$(CFGDIR)/objects/windows.cfg
- $(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/template-object/printer.cfg $(DESTDIR)$(CFGDIR)/objects/printer.cfg
- $(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/template-object/switch.cfg $(DESTDIR)$(CFGDIR)/objects/switch.cfg
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(CFGDIR)
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(CFGDIR)/objects
+ $(INSTALL) -m 644 $(INSTALL_OPTS) sample-config/nagios.cfg $(DESTDIR)$(CFGDIR)/nagios.cfg-sample
+ $(INSTALL) -m 644 $(INSTALL_OPTS) sample-config/cgi.cfg $(DESTDIR)$(CFGDIR)/cgi.cfg-sample
+ $(INSTALL) -m 644 $(INSTALL_OPTS) sample-config/resource.cfg $(DESTDIR)$(CFGDIR)/resource.cfg-sample
+ $(INSTALL) -m 644 $(INSTALL_OPTS) sample-config/template-object/templates.cfg $(DESTDIR)$(CFGDIR)/objects/templates.cfg-sample
+ $(INSTALL) -m 644 $(INSTALL_OPTS) sample-config/template-object/commands.cfg $(DESTDIR)$(CFGDIR)/objects/commands.cfg-sample
+ $(INSTALL) -m 644 $(INSTALL_OPTS) sample-config/template-object/contacts.cfg $(DESTDIR)$(CFGDIR)/objects/contacts.cfg-sample
+ $(INSTALL) -m 644 $(INSTALL_OPTS) sample-config/template-object/timeperiods.cfg $(DESTDIR)$(CFGDIR)/objects/timeperiods.cfg-sample
+ $(INSTALL) -m 644 $(INSTALL_OPTS) sample-config/template-object/localhost.cfg $(DESTDIR)$(CFGDIR)/objects/localhost.cfg-sample
+ $(INSTALL) -m 644 $(INSTALL_OPTS) sample-config/template-object/printer.cfg $(DESTDIR)$(CFGDIR)/objects/printer.cfg-sample
+ $(INSTALL) -m 644 $(INSTALL_OPTS) sample-config/template-object/switch.cfg $(DESTDIR)$(CFGDIR)/objects/switch.cfg-sample
@echo ""
@echo "*** Config files installed ***"
@@ -321,7 +318,6 @@
install-commandmode:
$(INSTALL) -m 775 $(COMMAND_OPTS) -d $(DESTDIR)$(LOGDIR)/rw
- chmod g+s $(DESTDIR)$(LOGDIR)/rw
@echo ""
@echo "*** External command directory configured ***"

View File

@ -0,0 +1,24 @@
--- ./base/Makefile.in.orig 2013-08-30 19:46:14.000000000 +0200
+++ ./base/Makefile.in 2014-01-14 13:57:06.000000000 +0100
@@ -39,8 +39,6 @@
CGIDIR=@sbindir@
HTMLDIR=@datarootdir@
INSTALL=@INSTALL@
-INSTALL_OPTS=@INSTALL_OPTS@
-COMMAND_OPTS=@COMMAND_OPTS@
STRIP=@STRIP@
CGIURL=@cgiurl@
@@ -204,9 +202,9 @@
$(MAKE) install-basic
install-basic:
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(BINDIR)
- $(INSTALL) -m 774 $(INSTALL_OPTS) @nagios_name@ $(DESTDIR)$(BINDIR)
- $(INSTALL) -m 774 $(INSTALL_OPTS) @nagiostats_name@ $(DESTDIR)$(BINDIR)
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(BINDIR)
+ $(INSTALL) -m 755 $(INSTALL_OPTS) @nagios_name@ $(DESTDIR)$(BINDIR)
+ $(INSTALL) -m 755 $(INSTALL_OPTS) @nagiostats_name@ $(DESTDIR)$(BINDIR)
strip-post-install:
$(STRIP) $(DESTDIR)$(BINDIR)/@nagios_name@

View File

@ -0,0 +1,23 @@
--- ./cgi/Makefile.in.orig 2013-08-30 19:46:14.000000000 +0200
+++ ./cgi/Makefile.in 2014-01-14 13:57:06.000000000 +0100
@@ -18,8 +18,6 @@
CGIDIR=@sbindir@
HTMLDIR=@datarootdir@
INSTALL=@INSTALL@
-INSTALL_OPTS=@INSTALL_OPTS@
-COMMAND_OPTS=@COMMAND_OPTS@
STRIP=@STRIP@
CGIEXTRAS=@CGIEXTRAS@
@@ -201,9 +199,9 @@
$(MAKE) install-basic
install-basic:
- $(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 755 $(INSTALL_OPTS) $$file $(DESTDIR)$(CGIDIR); \
done
strip-post-install:

View File

@ -0,0 +1,25 @@
--- ./contrib/Makefile.in.orig 2013-08-30 19:46:14.000000000 +0200
+++ ./contrib/Makefile.in 2014-01-14 13:57:06.000000000 +0100
@@ -16,7 +16,6 @@
# Generated automatically from configure script
SNPRINTF_O=@SNPRINTF_O@
INSTALL=@INSTALL@
-INSTALL_OPTS=@INSTALL_OPTS@
prefix=@prefix@
@@ -51,10 +50,10 @@
devclean: distclean
install:
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(CGIDIR)
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(BINDIR)
- for f in $(CGIS); do $(INSTALL) -m 775 $(INSTALL_OPTS) $$f $(DESTDIR)$(CGIDIR); done
- for f in $(UTILS); do $(INSTALL) -m 775 $(INSTALL_OPTS) $$f $(DESTDIR)$(BINDIR); done
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(CGIDIR)
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(BINDIR)
+ for f in $(CGIS); do $(INSTALL) -m 755 $(INSTALL_OPTS) $$f $(DESTDIR)$(CGIDIR); done
+ for f in $(UTILS); do $(INSTALL) -m 755 $(INSTALL_OPTS) $$f $(DESTDIR)$(BINDIR); done
##############################################################################
# rules and dependencies for actual target programs

View File

@ -0,0 +1,175 @@
commit d97e03f32741a7d851826b03ed73ff4c9612a866
Author: Eric Stanley <estanley@nagios.com>
Date: 2013-12-20 13:14:30 -0600
CGIs: Fixed minor vulnerability where a custom query could crash the CGI.
Most CGIs previously incremented the input variable counter twice when
it encountered a long key value. This could cause the CGI to read past
the end of the list of CGI variables. This commit removes the second
increment, removing the possibility of reading past the end of the list
of CGI variables.
diff --git ./cgi/avail.c ./cgi/avail.c
index 76afd86..64eaadc 100644
--- ./cgi/avail.c
+++ ./cgi/avail.c
@@ -1096,7 +1096,6 @@ int process_cgivars(void) {
/* do some basic length checking on the variable identifier to prevent buffer overflows */
if(strlen(variables[x]) >= MAX_INPUT_BUFFER - 1) {
- x++;
continue;
}
diff --git ./cgi/cmd.c ./cgi/cmd.c
index fa6cf5a..50504eb 100644
--- ./cgi/cmd.c
+++ ./cgi/cmd.c
@@ -311,7 +311,6 @@ int process_cgivars(void) {
/* do some basic length checking on the variable identifier to prevent buffer overflows */
if(strlen(variables[x]) >= MAX_INPUT_BUFFER - 1) {
- x++;
continue;
}
diff --git ./cgi/config.c ./cgi/config.c
index f061b0f..3360e70 100644
--- ./cgi/config.c
+++ ./cgi/config.c
@@ -344,7 +344,6 @@ int process_cgivars(void) {
/* do some basic length checking on the variable identifier to prevent buffer overflows */
if(strlen(variables[x]) >= MAX_INPUT_BUFFER - 1) {
- x++;
continue;
}
diff --git ./cgi/extinfo.c ./cgi/extinfo.c
index 62a1b18..5113df4 100644
--- ./cgi/extinfo.c
+++ ./cgi/extinfo.c
@@ -591,7 +591,6 @@ int process_cgivars(void) {
/* do some basic length checking on the variable identifier to prevent buffer overflows */
if(strlen(variables[x]) >= MAX_INPUT_BUFFER - 1) {
- x++;
continue;
}
diff --git ./cgi/histogram.c ./cgi/histogram.c
index 4616541..f6934d0 100644
--- ./cgi/histogram.c
+++ ./cgi/histogram.c
@@ -1060,7 +1060,6 @@ int process_cgivars(void) {
/* do some basic length checking on the variable identifier to prevent buffer overflows */
if(strlen(variables[x]) >= MAX_INPUT_BUFFER - 1) {
- x++;
continue;
}
diff --git ./cgi/notifications.c ./cgi/notifications.c
index 8ba11c1..461ae84 100644
--- ./cgi/notifications.c
+++ ./cgi/notifications.c
@@ -327,7 +327,6 @@ int process_cgivars(void) {
/* do some basic length checking on the variable identifier to prevent buffer overflows */
if(strlen(variables[x]) >= MAX_INPUT_BUFFER - 1) {
- x++;
continue;
}
diff --git ./cgi/outages.c ./cgi/outages.c
index 426ede6..cb58dee 100644
--- ./cgi/outages.c
+++ ./cgi/outages.c
@@ -225,7 +225,6 @@ int process_cgivars(void) {
/* do some basic length checking on the variable identifier to prevent buffer overflows */
if(strlen(variables[x]) >= MAX_INPUT_BUFFER - 1) {
- x++;
continue;
}
diff --git ./cgi/status.c ./cgi/status.c
index 3253340..4ec1c92 100644
--- ./cgi/status.c
+++ ./cgi/status.c
@@ -567,7 +567,6 @@ int process_cgivars(void) {
/* do some basic length checking on the variable identifier to prevent buffer overflows */
if(strlen(variables[x]) >= MAX_INPUT_BUFFER - 1) {
- x++;
continue;
}
diff --git ./cgi/statusmap.c ./cgi/statusmap.c
index ea48368..2580ae5 100644
--- ./cgi/statusmap.c
+++ ./cgi/statusmap.c
@@ -400,7 +400,6 @@ int process_cgivars(void) {
/* do some basic length checking on the variable identifier to prevent buffer overflows */
if(strlen(variables[x]) >= MAX_INPUT_BUFFER - 1) {
- x++;
continue;
}
diff --git ./cgi/statuswml.c ./cgi/statuswml.c
index bd8cea2..d25abef 100644
--- ./cgi/statuswml.c
+++ ./cgi/statuswml.c
@@ -226,8 +226,13 @@ int process_cgivars(void) {
for(x = 0; variables[x] != NULL; x++) {
+ /* do some basic length checking on the variable identifier to prevent buffer overflows */
+ if(strlen(variables[x]) >= MAX_INPUT_BUFFER - 1) {
+ continue;
+ }
+
/* we found the hostgroup argument */
- if(!strcmp(variables[x], "hostgroup")) {
+ else if(!strcmp(variables[x], "hostgroup")) {
display_type = DISPLAY_HOSTGROUP;
x++;
if(variables[x] == NULL) {
diff --git ./cgi/summary.c ./cgi/summary.c
index 126ce5e..749a02c 100644
--- ./cgi/summary.c
+++ ./cgi/summary.c
@@ -725,7 +725,6 @@ int process_cgivars(void) {
/* do some basic length checking on the variable identifier to prevent buffer overflows */
if(strlen(variables[x]) >= MAX_INPUT_BUFFER - 1) {
- x++;
continue;
}
diff --git ./cgi/trends.c ./cgi/trends.c
index b35c18e..895db01 100644
--- ./cgi/trends.c
+++ ./cgi/trends.c
@@ -1263,7 +1263,6 @@ int process_cgivars(void) {
/* do some basic length checking on the variable identifier to prevent buffer overflows */
if(strlen(variables[x]) >= MAX_INPUT_BUFFER - 1) {
- x++;
continue;
}
diff --git ./contrib/daemonchk.c ./contrib/daemonchk.c
index 78716e5..9bb6c4b 100644
--- ./contrib/daemonchk.c
+++ ./contrib/daemonchk.c
@@ -174,7 +174,6 @@ static int process_cgivars(void) {
/* do some basic length checking on the variable identifier to prevent buffer overflows */
if(strlen(variables[x]) >= MAX_INPUT_BUFFER - 1) {
- x++;
continue;
}
}

View File

@ -0,0 +1,97 @@
--- html/Makefile.in.orig 2013-08-30 17:46:14 UTC
+++ html/Makefile.in
@@ -10,8 +10,6 @@ BINDIR=@bindir@
CGIDIR=@sbindir@
HTMLDIR=@datadir@
INSTALL=@INSTALL@
-INSTALL_OPTS=@INSTALL_OPTS@
-COMMAND_OPTS=@COMMAND_OPTS@
CP=@CP@
@@ -34,55 +32,55 @@ 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)/js
- $(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)/includes
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/includes/rss
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/includes/rss/extlib
- $(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)/js
+ $(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)/includes
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/includes/rss
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/includes/rss/extlib
+ $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/ssi
+ $(INSTALL) -m 644 $(INSTALL_OPTS) robots.txt $(DESTDIR)$(HTMLDIR)
+# $(INSTALL) -m 644 $(INSTALL_OPTS) docs/robots.txt $(DESTDIR)$(HTMLDIR)/docs
# Remove old HTML files (PHP files are used now)
rm -f $(DESTDIR)$(HTMLDIR)/index.html
rm -f $(DESTDIR)$(HTMLDIR)/main.html
rm -f $(DESTDIR)$(HTMLDIR)/side.html
for file in *.php; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR); done
+ do $(INSTALL) -m 644 $(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 644 $(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 644 $(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 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/contexthelp; done
for file in js/*.js; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/js; done
+ do $(INSTALL) -m 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/js; done
# for file in docs/*.html; \
-# do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/docs; done
+# do $(INSTALL) -m 644 $(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 644 $(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 644 $(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 644 $(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 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images; done
for file in images/*.ico; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images; done
+ do $(INSTALL) -m 644 $(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 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images/logos; done
for file in includes/*.*; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/includes; done
+ do $(INSTALL) -m 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/includes; done
for file in includes/rss/*.*; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/includes/rss; done
+ do $(INSTALL) -m 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/includes/rss; done
for file in includes/rss/extlib/*.*; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/includes/rss/extlib; done
+ do $(INSTALL) -m 644 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/includes/rss/extlib; done
install-unstripped:
$(MAKE) install

View File

@ -0,0 +1,13 @@
--- ./html/index.php.orig 2013-08-30 19:46:14.000000000 +0200
+++ ./html/index.php 2014-01-14 13:57:06.000000000 +0100
@@ -8,8 +8,9 @@
</head>
<?php
+include_once(dirname(__FILE__).'/includes/utils.inc.php');
// allow specifying main window URL for permalinks, etc.
-$corewindow="main.php";
+$corewindow=$cfg["cgi_base_url"]."/tac.cgi";
if(isset($_GET['corewindow'])){
// default window url may have been overridden with a permalink...

View File

@ -0,0 +1,39 @@
--- ./html/main.php.orig 2013-08-30 19:46:14.000000000 +0200
+++ ./html/main.php 2014-01-14 13:57:06.000000000 +0100
@@ -40,36 +40,10 @@
<div class="product">Nagios<sup><span style="font-size: small;">&reg;</span></sup> Core<sup><span style="font-size: small;">&trade;</span></sup></div>
<div class="version">Version 3.5.1</div>
<div class="releasedate">August 30, 2013</div>
-<div class="checkforupdates"><a href="http://www.nagios.org/checkforupdates/?version=3.5.1&product=nagioscore" target="_blank">Check for updates</a></div>
<!--<div class="whatsnew"><a href="http://go.nagios.com/nagioscore/whatsnew">Read what's new in Nagios Core 3</a></div>-->
</div>
-<div id="updateversioninfo">
-<?php
- $updateinfo=get_update_information();
- //print_r($updateinfo);
- //$updateinfo['update_checks_enabled']=false;
- //$updateinfo['update_available']=true;
- if($updateinfo['update_checks_enabled']==false){
-?>
- <div class="updatechecksdisabled">
- <div class="warningmessage">Warning: Automatic Update Checks are Disabled!</div>
- <div class="submessage">Disabling update checks presents a possible security risk. Visit <a href="http://www.nagios.org/" target="_blank">nagios.org</a> to check for updates manually or enable update checks in your Nagios config file.</a></div>
- </div>
-<?php
- }
- else if($updateinfo['update_available']==true && $this_version!=$updateinfo['update_version']){
-?>
- <div class="updateavailable">
- <div class="updatemessage">A new version of Nagios Core is available!</div>
- <div class="submessage">Visit <a href="http://www.nagios.org/download/" target="_blank">nagios.org</a> to download Nagios <?php echo $updateinfo['update_version'];?>.</div>
- </div>
-<?php
- }
-?>
-</div>
-
<div id="splashboxes">

View File

@ -0,0 +1,11 @@
--- html/includes/rss/rss_parse.inc.orig 2017-12-21 16:55:41.032397000 +0100
+++ html/includes/rss/rss_parse.inc 2017-12-21 16:57:40.079068000 +0100
@@ -150,7 +150,7 @@
// check for a namespace, and split if found
$ns = false;
if ( strpos( $element, ':' ) ) {
- list($ns, $el) = split( ':', $element, 2);
+ list($ns, $el) = explode( ':', $element, 2);
}
if ( $ns and $ns != 'rdf' ) {
$this->current_namespace = $ns;

View File

@ -0,0 +1,11 @@
--- ./include/locations.h.in.orig 2013-08-30 19:46:14.000000000 +0200
+++ ./include/locations.h.in 2014-01-14 13:57:06.000000000 +0100
@@ -20,7 +20,7 @@
#define DEFAULT_TEMP_FILE "@localstatedir@/tempfile"
#define DEFAULT_TEMP_PATH "/tmp"
-#define DEFAULT_CHECK_RESULT_PATH "@localstatedir@/spool/checkresults"
+#define DEFAULT_CHECK_RESULT_PATH "@localstatedir@/checkresults"
#define DEFAULT_STATUS_FILE "@localstatedir@/status.dat"
#define DEFAULT_LOG_FILE "@localstatedir@/nagios.log"
#define DEFAULT_LOG_ARCHIVE_PATH "@localstatedir@/archives/"

View File

@ -0,0 +1,11 @@
--- ./sample-config/cgi.cfg.in.orig 2013-08-30 19:46:14.000000000 +0200
+++ ./sample-config/cgi.cfg.in 2014-01-14 13:57:06.000000000 +0100
@@ -264,7 +264,7 @@
# 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=/sbin/ping -n -c 5 $HOSTADDRESS$

View File

@ -0,0 +1,11 @@
--- ./sample-config/nagios.cfg.in.orig 2013-08-30 19:46:14.000000000 +0200
+++ ./sample-config/nagios.cfg.in 2014-01-14 13:57:06.000000000 +0100
@@ -32,7 +32,7 @@
cfg_file=@sysconfdir@/objects/timeperiods.cfg
cfg_file=@sysconfdir@/objects/templates.cfg
-# Definitions for monitoring the local (Linux) host
+# Definitions for monitoring the local (FreeBSD) host
cfg_file=@sysconfdir@/objects/localhost.cfg
# Definitions for monitoring a Windows machine

View File

@ -0,0 +1,40 @@
--- ./sample-config/template-object/localhost.cfg.in.orig 2013-08-30 19:46:14.000000000 +0200
+++ ./sample-config/template-object/localhost.cfg.in 2014-01-14 13:57:06.000000000 +0100
@@ -5,7 +5,7 @@
#
# NOTE: This config file is intended to serve as an *extremely* simple
# example of how you can create configuration entries to monitor
-# the local (Linux) machine.
+# the local (FreeBSD) machine.
#
###############################################################################
@@ -23,9 +23,9 @@
# Define a host for the local machine
define host{
- use linux-server ; Name of host template to use
+ use freebsd-server ; Name of host template to use
; This host definition will inherit all variables that are defined
- ; in (or inherited by) the linux-server host template definition.
+ ; in (or inherited by) the freebsd-server host template definition.
host_name localhost
alias localhost
address 127.0.0.1
@@ -41,12 +41,12 @@
###############################################################################
###############################################################################
-# Define an optional hostgroup for Linux machines
+# Define an optional hostgroup for FreeBSD machines
define hostgroup{
- hostgroup_name linux-servers ; The name of the hostgroup
- alias Linux Servers ; Long name of the group
- members localhost ; Comma separated list of hosts that belong to this group
+ hostgroup_name freebsd-servers ; The name of the hostgroup
+ alias FreeBSD Servers ; Long name of the group
+ members localhost ; Comma separated list of hosts that belong to this group
}

View File

@ -0,0 +1,26 @@
--- ./sample-config/template-object/templates.cfg.in.orig 2013-08-30 19:46:14.000000000 +0200
+++ ./sample-config/template-object/templates.cfg.in 2014-01-14 13:57:06.000000000 +0100
@@ -63,17 +63,17 @@
}
-# Linux host definition template - This is NOT a real host, just a template!
+# FreeBSD host definition template - This is NOT a real host, just a template!
define host{
- name linux-server ; The name of this host template
+ name freebsd-server ; The name of this host template
use generic-host ; This template inherits other values from the generic-host template
- check_period 24x7 ; By default, Linux hosts are checked round the clock
+ check_period 24x7 ; By default, FreeBSD hosts are checked round the clock
check_interval 5 ; Actively check the host every 5 minutes
retry_interval 1 ; Schedule host check retries at 1 minute intervals
- max_check_attempts 10 ; Check each Linux host 10 times (max)
- check_command check-host-alive ; Default command to check Linux hosts
- notification_period workhours ; Linux admins hate to be woken up, so we only notify during the day
+ max_check_attempts 10 ; Check each FreeBSD host 10 times (max)
+ check_command check-host-alive ; Default command to check FreeBSD hosts
+ notification_period workhours ; FreeBSD admins hate to be woken up, so we only notify during the day
; Note that the notification_period variable is being overridden from
; the value that is inherited from the generic-host template!
notification_interval 120 ; Resend notifications every 2 hours

View File

@ -0,0 +1,34 @@
[
{
message: <<EOT
Enable Nagios in /etc/rc.conf with the following line:
nagios_enable="YES"
Configuration templates are available in %%PREFIX%%/etc/nagios as
*.cfg-sample files. Copy them to *.cfg files where required and
edit to suit your needs.
If you don't already have a web server running, you will need to
install and configure one to finish off your Nagios installation.
When used with Apache, the following should be sufficient to publish
the web component of Nagios (modify the allow list to suit):
<Directory %%PREFIX%%/%%NAGIOSWWWDIR%%>
Order deny,allow
Deny from all
Allow from 127.0.0.1
php_flag engine on
php_admin_value open_basedir %%PREFIX%%/%%NAGIOSWWWDIR%%/:%%NAGIOSDIR%%/
</Directory>
<Directory %%PREFIX%%/%%NAGIOSWWWDIR%%/cgi-bin>
Options ExecCGI
</Directory>
ScriptAlias %%NAGIOSCGIURL%%/ %%PREFIX%%/%%NAGIOSWWWDIR%%/cgi-bin/
Alias %%NAGIOSHTMURL%%/ %%PREFIX%%/%%NAGIOSWWWDIR%%/
EOT
type: install
}
]

View File

@ -0,0 +1,8 @@
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.

383
net-mgmt/nagios/pkg-plist Normal file
View File

@ -0,0 +1,383 @@
bin/nagios
bin/nagiostats
%%EMBEDDED_PERL%%bin/p1.pl
etc/nagios/cgi.cfg-sample
etc/nagios/nagios.cfg-sample
etc/nagios/objects/commands.cfg-sample
etc/nagios/objects/contacts.cfg-sample
etc/nagios/objects/localhost.cfg-sample
etc/nagios/objects/printer.cfg-sample
etc/nagios/objects/switch.cfg-sample
etc/nagios/objects/templates.cfg-sample
etc/nagios/objects/timeperiods.cfg-sample
etc/nagios/resource.cfg-sample
%%NAGIOSWWWDIR%%/cgi-bin/avail.cgi
%%NAGIOSWWWDIR%%/cgi-bin/cmd.cgi
%%NAGIOSWWWDIR%%/cgi-bin/config.cgi
%%NAGIOSWWWDIR%%/cgi-bin/extinfo.cgi
%%NAGIOSWWWDIR%%/cgi-bin/histogram.cgi
%%NAGIOSWWWDIR%%/cgi-bin/history.cgi
%%NAGIOSWWWDIR%%/cgi-bin/notifications.cgi
%%NAGIOSWWWDIR%%/cgi-bin/outages.cgi
%%NAGIOSWWWDIR%%/cgi-bin/showlog.cgi
%%NAGIOSWWWDIR%%/cgi-bin/status.cgi
%%NAGIOSWWWDIR%%/cgi-bin/statusmap.cgi
%%NAGIOSWWWDIR%%/cgi-bin/statuswml.cgi
%%NAGIOSWWWDIR%%/cgi-bin/summary.cgi
%%NAGIOSWWWDIR%%/cgi-bin/tac.cgi
%%NAGIOSWWWDIR%%/cgi-bin/trends.cgi
@sample %%NAGIOSWWWDIR%%/config.inc.php.sample
%%NAGIOSWWWDIR%%/contexthelp/A1.html
%%NAGIOSWWWDIR%%/contexthelp/A2.html
%%NAGIOSWWWDIR%%/contexthelp/A3.html
%%NAGIOSWWWDIR%%/contexthelp/A4.html
%%NAGIOSWWWDIR%%/contexthelp/A5.html
%%NAGIOSWWWDIR%%/contexthelp/A6.html
%%NAGIOSWWWDIR%%/contexthelp/A7.html
%%NAGIOSWWWDIR%%/contexthelp/B1.html
%%NAGIOSWWWDIR%%/contexthelp/C1.html
%%NAGIOSWWWDIR%%/contexthelp/D1.html
%%NAGIOSWWWDIR%%/contexthelp/E1.html
%%NAGIOSWWWDIR%%/contexthelp/F1.html
%%NAGIOSWWWDIR%%/contexthelp/G1.html
%%NAGIOSWWWDIR%%/contexthelp/G2.html
%%NAGIOSWWWDIR%%/contexthelp/G3.html
%%NAGIOSWWWDIR%%/contexthelp/G4.html
%%NAGIOSWWWDIR%%/contexthelp/G5.html
%%NAGIOSWWWDIR%%/contexthelp/G6.html
%%NAGIOSWWWDIR%%/contexthelp/H1.html
%%NAGIOSWWWDIR%%/contexthelp/H2.html
%%NAGIOSWWWDIR%%/contexthelp/H3.html
%%NAGIOSWWWDIR%%/contexthelp/H4.html
%%NAGIOSWWWDIR%%/contexthelp/H5.html
%%NAGIOSWWWDIR%%/contexthelp/H6.html
%%NAGIOSWWWDIR%%/contexthelp/H7.html
%%NAGIOSWWWDIR%%/contexthelp/H8.html
%%NAGIOSWWWDIR%%/contexthelp/I1.html
%%NAGIOSWWWDIR%%/contexthelp/I2.html
%%NAGIOSWWWDIR%%/contexthelp/I3.html
%%NAGIOSWWWDIR%%/contexthelp/I4.html
%%NAGIOSWWWDIR%%/contexthelp/I5.html
%%NAGIOSWWWDIR%%/contexthelp/I6.html
%%NAGIOSWWWDIR%%/contexthelp/I7.html
%%NAGIOSWWWDIR%%/contexthelp/I8.html
%%NAGIOSWWWDIR%%/contexthelp/I9.html
%%NAGIOSWWWDIR%%/contexthelp/J1.html
%%NAGIOSWWWDIR%%/contexthelp/K1.html
%%NAGIOSWWWDIR%%/contexthelp/L1.html
%%NAGIOSWWWDIR%%/contexthelp/L10.html
%%NAGIOSWWWDIR%%/contexthelp/L11.html
%%NAGIOSWWWDIR%%/contexthelp/L12.html
%%NAGIOSWWWDIR%%/contexthelp/L13.html
%%NAGIOSWWWDIR%%/contexthelp/L2.html
%%NAGIOSWWWDIR%%/contexthelp/L3.html
%%NAGIOSWWWDIR%%/contexthelp/L4.html
%%NAGIOSWWWDIR%%/contexthelp/L5.html
%%NAGIOSWWWDIR%%/contexthelp/L6.html
%%NAGIOSWWWDIR%%/contexthelp/L7.html
%%NAGIOSWWWDIR%%/contexthelp/L8.html
%%NAGIOSWWWDIR%%/contexthelp/L9.html
%%NAGIOSWWWDIR%%/contexthelp/M1.html
%%NAGIOSWWWDIR%%/contexthelp/M2.html
%%NAGIOSWWWDIR%%/contexthelp/M3.html
%%NAGIOSWWWDIR%%/contexthelp/M4.html
%%NAGIOSWWWDIR%%/contexthelp/M5.html
%%NAGIOSWWWDIR%%/contexthelp/M6.html
%%NAGIOSWWWDIR%%/contexthelp/N1.html
%%NAGIOSWWWDIR%%/contexthelp/N2.html
%%NAGIOSWWWDIR%%/contexthelp/N3.html
%%NAGIOSWWWDIR%%/contexthelp/N4.html
%%NAGIOSWWWDIR%%/contexthelp/N5.html
%%NAGIOSWWWDIR%%/contexthelp/N6.html
%%NAGIOSWWWDIR%%/contexthelp/N7.html
%%NAGIOSWWWDIR%%/images/Nagios-clearbg.png
%%NAGIOSWWWDIR%%/images/NagiosEnterprises-whitebg-112x46.png
%%NAGIOSWWWDIR%%/images/ack.gif
%%NAGIOSWWWDIR%%/images/action-graph.gif
%%NAGIOSWWWDIR%%/images/action-nagios.gif
%%NAGIOSWWWDIR%%/images/action-orig.gif
%%NAGIOSWWWDIR%%/images/action.gif
%%NAGIOSWWWDIR%%/images/b_first2.png
%%NAGIOSWWWDIR%%/images/b_last2.png
%%NAGIOSWWWDIR%%/images/b_next2.png
%%NAGIOSWWWDIR%%/images/b_prev2.png
%%NAGIOSWWWDIR%%/images/command.png
%%NAGIOSWWWDIR%%/images/comment.gif
%%NAGIOSWWWDIR%%/images/contexthelp1.gif
%%NAGIOSWWWDIR%%/images/contexthelp2.gif
%%NAGIOSWWWDIR%%/images/critical.png
%%NAGIOSWWWDIR%%/images/delay.gif
%%NAGIOSWWWDIR%%/images/delete.gif
%%NAGIOSWWWDIR%%/images/detail.gif
%%NAGIOSWWWDIR%%/images/disabled.gif
%%NAGIOSWWWDIR%%/images/down.gif
%%NAGIOSWWWDIR%%/images/downtime.gif
%%NAGIOSWWWDIR%%/images/empty.gif
%%NAGIOSWWWDIR%%/images/enabled.gif
%%NAGIOSWWWDIR%%/images/extinfo.gif
%%NAGIOSWWWDIR%%/images/favicon.ico
%%NAGIOSWWWDIR%%/images/flapping.gif
%%NAGIOSWWWDIR%%/images/globe-support-150x150.png
%%NAGIOSWWWDIR%%/images/graph.gif
%%NAGIOSWWWDIR%%/images/greendot.gif
%%NAGIOSWWWDIR%%/images/histogram.png
%%NAGIOSWWWDIR%%/images/history.gif
%%NAGIOSWWWDIR%%/images/hostevent.gif
%%NAGIOSWWWDIR%%/images/info.png
%%NAGIOSWWWDIR%%/images/left.gif
%%NAGIOSWWWDIR%%/images/logofullsize.png
%%NAGIOSWWWDIR%%/images/logos/aix.gd2
%%NAGIOSWWWDIR%%/images/logos/aix.gif
%%NAGIOSWWWDIR%%/images/logos/aix.jpg
%%NAGIOSWWWDIR%%/images/logos/aix.png
%%NAGIOSWWWDIR%%/images/logos/amiga.gd2
%%NAGIOSWWWDIR%%/images/logos/amiga.gif
%%NAGIOSWWWDIR%%/images/logos/amiga.jpg
%%NAGIOSWWWDIR%%/images/logos/amiga.png
%%NAGIOSWWWDIR%%/images/logos/apple.gd2
%%NAGIOSWWWDIR%%/images/logos/apple.gif
%%NAGIOSWWWDIR%%/images/logos/apple.jpg
%%NAGIOSWWWDIR%%/images/logos/apple.png
%%NAGIOSWWWDIR%%/images/logos/beos.gd2
%%NAGIOSWWWDIR%%/images/logos/beos.gif
%%NAGIOSWWWDIR%%/images/logos/beos.jpg
%%NAGIOSWWWDIR%%/images/logos/beos.png
%%NAGIOSWWWDIR%%/images/logos/bluetooth.png
%%NAGIOSWWWDIR%%/images/logos/caldera.gd2
%%NAGIOSWWWDIR%%/images/logos/caldera.gif
%%NAGIOSWWWDIR%%/images/logos/caldera.jpg
%%NAGIOSWWWDIR%%/images/logos/caldera.png
%%NAGIOSWWWDIR%%/images/logos/cat1900.gd2
%%NAGIOSWWWDIR%%/images/logos/cat2900.gd2
%%NAGIOSWWWDIR%%/images/logos/cat5000.gd2
%%NAGIOSWWWDIR%%/images/logos/database.gd2
%%NAGIOSWWWDIR%%/images/logos/database.gif
%%NAGIOSWWWDIR%%/images/logos/debian.gd2
%%NAGIOSWWWDIR%%/images/logos/debian.gif
%%NAGIOSWWWDIR%%/images/logos/debian.jpg
%%NAGIOSWWWDIR%%/images/logos/debian.png
%%NAGIOSWWWDIR%%/images/logos/desktop-server.gd2
%%NAGIOSWWWDIR%%/images/logos/desktop-server.gif
%%NAGIOSWWWDIR%%/images/logos/ethernet_card.png
%%NAGIOSWWWDIR%%/images/logos/fax.gd2
%%NAGIOSWWWDIR%%/images/logos/fax.gif
%%NAGIOSWWWDIR%%/images/logos/firewall.gd2
%%NAGIOSWWWDIR%%/images/logos/firewall.gif
%%NAGIOSWWWDIR%%/images/logos/freebsd40.gd2
%%NAGIOSWWWDIR%%/images/logos/freebsd40.gif
%%NAGIOSWWWDIR%%/images/logos/freebsd40.jpg
%%NAGIOSWWWDIR%%/images/logos/freebsd40.png
%%NAGIOSWWWDIR%%/images/logos/globe.png
%%NAGIOSWWWDIR%%/images/logos/graph.gif
%%NAGIOSWWWDIR%%/images/logos/hp-printer40.gd2
%%NAGIOSWWWDIR%%/images/logos/hp-printer40.gif
%%NAGIOSWWWDIR%%/images/logos/hp-printer40.jpg
%%NAGIOSWWWDIR%%/images/logos/hp-printer40.png
%%NAGIOSWWWDIR%%/images/logos/hpux.gd2
%%NAGIOSWWWDIR%%/images/logos/hpux.gif
%%NAGIOSWWWDIR%%/images/logos/hpux.jpg
%%NAGIOSWWWDIR%%/images/logos/hpux.png
%%NAGIOSWWWDIR%%/images/logos/hub.gd2
%%NAGIOSWWWDIR%%/images/logos/hub.gif
%%NAGIOSWWWDIR%%/images/logos/internet.gd2
%%NAGIOSWWWDIR%%/images/logos/internet.gif
%%NAGIOSWWWDIR%%/images/logos/internet_device.png
%%NAGIOSWWWDIR%%/images/logos/ip-pbx.gd2
%%NAGIOSWWWDIR%%/images/logos/ip-pbx.gif
%%NAGIOSWWWDIR%%/images/logos/irix.gd2
%%NAGIOSWWWDIR%%/images/logos/irix.gif
%%NAGIOSWWWDIR%%/images/logos/irix.jpg
%%NAGIOSWWWDIR%%/images/logos/irix.png
%%NAGIOSWWWDIR%%/images/logos/linux40.gd2
%%NAGIOSWWWDIR%%/images/logos/linux40.gif
%%NAGIOSWWWDIR%%/images/logos/linux40.jpg
%%NAGIOSWWWDIR%%/images/logos/linux40.png
%%NAGIOSWWWDIR%%/images/logos/logo.gd2
%%NAGIOSWWWDIR%%/images/logos/mac40.gd2
%%NAGIOSWWWDIR%%/images/logos/mac40.gif
%%NAGIOSWWWDIR%%/images/logos/mac40.jpg
%%NAGIOSWWWDIR%%/images/logos/mac40.png
%%NAGIOSWWWDIR%%/images/logos/mainframe.gd2
%%NAGIOSWWWDIR%%/images/logos/mainframe.gif
%%NAGIOSWWWDIR%%/images/logos/mandrake.gd2
%%NAGIOSWWWDIR%%/images/logos/mandrake.gif
%%NAGIOSWWWDIR%%/images/logos/mandrake.jpg
%%NAGIOSWWWDIR%%/images/logos/mandrake.png
%%NAGIOSWWWDIR%%/images/logos/monitor.png
%%NAGIOSWWWDIR%%/images/logos/nagios.gd2
%%NAGIOSWWWDIR%%/images/logos/nagios.gif
%%NAGIOSWWWDIR%%/images/logos/nagiosvrml.png
%%NAGIOSWWWDIR%%/images/logos/next.gd2
%%NAGIOSWWWDIR%%/images/logos/next.gif
%%NAGIOSWWWDIR%%/images/logos/next.jpg
%%NAGIOSWWWDIR%%/images/logos/next.png
%%NAGIOSWWWDIR%%/images/logos/ng-switch40.gd2
%%NAGIOSWWWDIR%%/images/logos/ng-switch40.gif
%%NAGIOSWWWDIR%%/images/logos/ng-switch40.jpg
%%NAGIOSWWWDIR%%/images/logos/ng-switch40.png
%%NAGIOSWWWDIR%%/images/logos/notebook.gd2
%%NAGIOSWWWDIR%%/images/logos/notebook.gif
%%NAGIOSWWWDIR%%/images/logos/novell40.gd2
%%NAGIOSWWWDIR%%/images/logos/novell40.gif
%%NAGIOSWWWDIR%%/images/logos/novell40.jpg
%%NAGIOSWWWDIR%%/images/logos/novell40.png
%%NAGIOSWWWDIR%%/images/logos/openbsd.gd2
%%NAGIOSWWWDIR%%/images/logos/openbsd.gif
%%NAGIOSWWWDIR%%/images/logos/openbsd.jpg
%%NAGIOSWWWDIR%%/images/logos/openbsd.png
%%NAGIOSWWWDIR%%/images/logos/printer.gd2
%%NAGIOSWWWDIR%%/images/logos/printer.gif
%%NAGIOSWWWDIR%%/images/logos/rack-server.gd2
%%NAGIOSWWWDIR%%/images/logos/rack-server.gif
%%NAGIOSWWWDIR%%/images/logos/redhat.gd2
%%NAGIOSWWWDIR%%/images/logos/redhat.gif
%%NAGIOSWWWDIR%%/images/logos/redhat.jpg
%%NAGIOSWWWDIR%%/images/logos/redhat.png
%%NAGIOSWWWDIR%%/images/logos/router.gd2
%%NAGIOSWWWDIR%%/images/logos/router.gif
%%NAGIOSWWWDIR%%/images/logos/router40.gd2
%%NAGIOSWWWDIR%%/images/logos/router40.gif
%%NAGIOSWWWDIR%%/images/logos/router40.jpg
%%NAGIOSWWWDIR%%/images/logos/router40.png
%%NAGIOSWWWDIR%%/images/logos/san.gd2
%%NAGIOSWWWDIR%%/images/logos/san.gif
%%NAGIOSWWWDIR%%/images/logos/satellite.png
%%NAGIOSWWWDIR%%/images/logos/server.png
%%NAGIOSWWWDIR%%/images/logos/signal.png
%%NAGIOSWWWDIR%%/images/logos/slackware.gd2
%%NAGIOSWWWDIR%%/images/logos/slackware.gif
%%NAGIOSWWWDIR%%/images/logos/slackware.jpg
%%NAGIOSWWWDIR%%/images/logos/slackware.png
%%NAGIOSWWWDIR%%/images/logos/stampede.gd2
%%NAGIOSWWWDIR%%/images/logos/stampede.gif
%%NAGIOSWWWDIR%%/images/logos/stampede.jpg
%%NAGIOSWWWDIR%%/images/logos/stampede.png
%%NAGIOSWWWDIR%%/images/logos/station.gd2
%%NAGIOSWWWDIR%%/images/logos/storm.gd2
%%NAGIOSWWWDIR%%/images/logos/storm.gif
%%NAGIOSWWWDIR%%/images/logos/storm.jpg
%%NAGIOSWWWDIR%%/images/logos/storm.png
%%NAGIOSWWWDIR%%/images/logos/sun40.gd2
%%NAGIOSWWWDIR%%/images/logos/sun40.gif
%%NAGIOSWWWDIR%%/images/logos/sun40.jpg
%%NAGIOSWWWDIR%%/images/logos/sun40.png
%%NAGIOSWWWDIR%%/images/logos/sunlogo.gd2
%%NAGIOSWWWDIR%%/images/logos/sunlogo.gif
%%NAGIOSWWWDIR%%/images/logos/sunlogo.jpg
%%NAGIOSWWWDIR%%/images/logos/sunlogo.png
%%NAGIOSWWWDIR%%/images/logos/switch.gd2
%%NAGIOSWWWDIR%%/images/logos/switch.gif
%%NAGIOSWWWDIR%%/images/logos/switch40.gd2
%%NAGIOSWWWDIR%%/images/logos/switch40.gif
%%NAGIOSWWWDIR%%/images/logos/switch40.jpg
%%NAGIOSWWWDIR%%/images/logos/switch40.png
%%NAGIOSWWWDIR%%/images/logos/thin-client.gd2
%%NAGIOSWWWDIR%%/images/logos/thin-client.gif
%%NAGIOSWWWDIR%%/images/logos/turbolinux.gd2
%%NAGIOSWWWDIR%%/images/logos/turbolinux.gif
%%NAGIOSWWWDIR%%/images/logos/turbolinux.jpg
%%NAGIOSWWWDIR%%/images/logos/turbolinux.png
%%NAGIOSWWWDIR%%/images/logos/ultrapenguin.gd2
%%NAGIOSWWWDIR%%/images/logos/ultrapenguin.gif
%%NAGIOSWWWDIR%%/images/logos/ultrapenguin.jpg
%%NAGIOSWWWDIR%%/images/logos/ultrapenguin.png
%%NAGIOSWWWDIR%%/images/logos/unicos.gd2
%%NAGIOSWWWDIR%%/images/logos/unicos.gif
%%NAGIOSWWWDIR%%/images/logos/unicos.jpg
%%NAGIOSWWWDIR%%/images/logos/unicos.png
%%NAGIOSWWWDIR%%/images/logos/unknown.gd2
%%NAGIOSWWWDIR%%/images/logos/unknown.gif
%%NAGIOSWWWDIR%%/images/logos/webcamera.png
%%NAGIOSWWWDIR%%/images/logos/wifi.gd2
%%NAGIOSWWWDIR%%/images/logos/wifi.gif
%%NAGIOSWWWDIR%%/images/logos/wifi_modem.png
%%NAGIOSWWWDIR%%/images/logos/win40.gd2
%%NAGIOSWWWDIR%%/images/logos/win40.gif
%%NAGIOSWWWDIR%%/images/logos/win40.jpg
%%NAGIOSWWWDIR%%/images/logos/win40.png
%%NAGIOSWWWDIR%%/images/logos/workstation.gd2
%%NAGIOSWWWDIR%%/images/logos/workstation.gif
%%NAGIOSWWWDIR%%/images/logos/workstation.png
%%NAGIOSWWWDIR%%/images/logos/workstation_locked.png
%%NAGIOSWWWDIR%%/images/logos/yellowdog.gd2
%%NAGIOSWWWDIR%%/images/logos/yellowdog.gif
%%NAGIOSWWWDIR%%/images/logos/yellowdog.jpg
%%NAGIOSWWWDIR%%/images/logos/yellowdog.png
%%NAGIOSWWWDIR%%/images/logrotate.png
%%NAGIOSWWWDIR%%/images/ndisabled.gif
%%NAGIOSWWWDIR%%/images/noack.gif
%%NAGIOSWWWDIR%%/images/notes.gif
%%NAGIOSWWWDIR%%/images/notify.gif
%%NAGIOSWWWDIR%%/images/orangedot.gif
%%NAGIOSWWWDIR%%/images/passiveonly.gif
%%NAGIOSWWWDIR%%/images/recovery.png
%%NAGIOSWWWDIR%%/images/redudancy.png
%%NAGIOSWWWDIR%%/images/redundancy.png
%%NAGIOSWWWDIR%%/images/restart.gif
%%NAGIOSWWWDIR%%/images/right.gif
%%NAGIOSWWWDIR%%/images/sblogo.png
%%NAGIOSWWWDIR%%/images/serviceevent.gif
%%NAGIOSWWWDIR%%/images/sflogo.png
%%NAGIOSWWWDIR%%/images/splunk1.gif
%%NAGIOSWWWDIR%%/images/splunk2.gif
%%NAGIOSWWWDIR%%/images/start.gif
%%NAGIOSWWWDIR%%/images/status.gif
%%NAGIOSWWWDIR%%/images/status2.gif
%%NAGIOSWWWDIR%%/images/status3.gif
%%NAGIOSWWWDIR%%/images/status4.gif
%%NAGIOSWWWDIR%%/images/stop.gif
%%NAGIOSWWWDIR%%/images/tacdisabled.jpg
%%NAGIOSWWWDIR%%/images/tacdisabled.png
%%NAGIOSWWWDIR%%/images/tacenabled.jpg
%%NAGIOSWWWDIR%%/images/tacenabled.png
%%NAGIOSWWWDIR%%/images/thermcrit.png
%%NAGIOSWWWDIR%%/images/thermok.png
%%NAGIOSWWWDIR%%/images/thermwarn.png
%%NAGIOSWWWDIR%%/images/trends.gif
%%NAGIOSWWWDIR%%/images/trendshost.png
%%NAGIOSWWWDIR%%/images/trendssvc.png
%%NAGIOSWWWDIR%%/images/unknown.png
%%NAGIOSWWWDIR%%/images/up.gif
%%NAGIOSWWWDIR%%/images/warning.png
%%NAGIOSWWWDIR%%/images/weblogo1.png
%%NAGIOSWWWDIR%%/images/zoom1.gif
%%NAGIOSWWWDIR%%/images/zoom2.gif
%%NAGIOSWWWDIR%%/includes/rss/extlib/Snoopy.class.inc
%%NAGIOSWWWDIR%%/includes/rss/rss_cache.inc
%%NAGIOSWWWDIR%%/includes/rss/rss_fetch.inc
%%NAGIOSWWWDIR%%/includes/rss/rss_parse.inc
%%NAGIOSWWWDIR%%/includes/rss/rss_utils.inc
%%NAGIOSWWWDIR%%/includes/jquery-1.7.1.min.js
%%NAGIOSWWWDIR%%/includes/utils.inc.php
%%NAGIOSWWWDIR%%/index.php
%%NAGIOSWWWDIR%%/js/jquery-1.7.1.min.js
%%NAGIOSWWWDIR%%/main.php
%%NAGIOSWWWDIR%%/robots.txt
%%NAGIOSWWWDIR%%/rss-corefeed.php
%%NAGIOSWWWDIR%%/rss-newsfeed.php
%%NAGIOSWWWDIR%%/side.php
%%NAGIOSWWWDIR%%/stylesheets/avail.css
%%NAGIOSWWWDIR%%/stylesheets/checksanity.css
%%NAGIOSWWWDIR%%/stylesheets/cmd.css
%%NAGIOSWWWDIR%%/stylesheets/common.css
%%NAGIOSWWWDIR%%/stylesheets/config.css
%%NAGIOSWWWDIR%%/stylesheets/extinfo.css
%%NAGIOSWWWDIR%%/stylesheets/histogram.css
%%NAGIOSWWWDIR%%/stylesheets/history.css
%%NAGIOSWWWDIR%%/stylesheets/ministatus.css
%%NAGIOSWWWDIR%%/stylesheets/notifications.css
%%NAGIOSWWWDIR%%/stylesheets/outages.css
%%NAGIOSWWWDIR%%/stylesheets/showlog.css
%%NAGIOSWWWDIR%%/stylesheets/status.css
%%NAGIOSWWWDIR%%/stylesheets/statusmap.css
%%NAGIOSWWWDIR%%/stylesheets/summary.css
%%NAGIOSWWWDIR%%/stylesheets/tac.css
%%NAGIOSWWWDIR%%/stylesheets/trends.css
@dir libexec/nagios
@dir %%NAGIOSWWWDIR%%/ssi
@dir(%%NAGIOSUSER%%,%%NAGIOSGROUP%%,775) %%NAGIOSDIR%%/archives
@dir(%%NAGIOSUSER%%,%%NAGIOSGROUP%%,775) %%NAGIOSDIR%%/checkresults
@dir(%%NAGIOSUSER%%,%%WWWGRP%%,775) %%NAGIOSDIR%%/rw
@dir(%%NAGIOSUSER%%,%%NAGIOSGROUP%%,775) %%NAGIOSDIR%%
@postunexec if [ -d %%NAGIOSDIR%% ]; then echo "==> If you are permanently removing this port, you should do a ``rm -rf %%NAGIOSDIR%%`` to remove any files left behind."; fi
@postunexec if [ -d %%ETCDIR%% ]; then echo "==> If you are permanently removing this port, you should do a ``rm -rf %%ETCDIR%%`` to remove any configuration files."; fi