mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
Add nagios4, the next version of the nagios monitoring system.
While there, garbage collect the UID/GID in nagios. Sponsored by: Absolight
This commit is contained in:
parent
0b13f84f6d
commit
0253032ea5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=340945
@ -139,6 +139,7 @@
|
||||
SUBDIR += nagios-snmp-plugins
|
||||
SUBDIR += nagios-snmp-plugins-extras
|
||||
SUBDIR += nagios-spamd-plugin
|
||||
SUBDIR += nagios4
|
||||
SUBDIR += nagiosagent
|
||||
SUBDIR += nagiosgraph
|
||||
SUBDIR += nagiosql
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= nagios
|
||||
PORTVERSION= 3.5.1
|
||||
PORTREVISION= 3
|
||||
PORTREVISION= 4
|
||||
CATEGORIES= net-mgmt
|
||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-3.x/${PORTNAME}-${PORTVERSION}
|
||||
|
||||
@ -21,7 +21,7 @@ USE_AUTOTOOLS= autoconf libltdl
|
||||
USE_PHP= yes
|
||||
USE_RC_SUBR= nagios
|
||||
|
||||
CONFLICTS= nagios-[12].* nagios-devel-*
|
||||
CONFLICTS= nagios-[12].* nagios-devel-* nagios4-*
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --with-command-user=${NAGIOSUSER} \
|
||||
@ -52,8 +52,6 @@ PLIST_SUB= NAGIOSDIR=${NAGIOSDIR} \
|
||||
NAGIOSWWWDIR=${NAGIOSWWWDIR} \
|
||||
NAGIOSUSER=${NAGIOSUSER} \
|
||||
NAGIOSGROUP=${NAGIOSGROUP} \
|
||||
NAGIOSUID=${NAGIOSUID} \
|
||||
NAGIOSGID=${NAGIOSGID} \
|
||||
NAGIOSHTMURL=${NAGIOSHTMURL} \
|
||||
NAGIOSCGIURL=${NAGIOSCGIURL} \
|
||||
WWWGRP=${WWWGRP}
|
||||
@ -68,9 +66,6 @@ NAGIOSUSER?= nagios
|
||||
NAGIOSGROUP?= nagios
|
||||
NAGIOSDIR?= /var/spool/nagios
|
||||
|
||||
NAGIOSUID= 181
|
||||
NAGIOSGID= ${NAGIOSUID}
|
||||
|
||||
NAGIOSWWWDIR?= www/nagios
|
||||
NAGIOSHTMURL?= /nagios
|
||||
NAGIOSCGIURL?= ${NAGIOSHTMURL}/cgi-bin
|
||||
|
94
net-mgmt/nagios4/Makefile
Normal file
94
net-mgmt/nagios4/Makefile
Normal file
@ -0,0 +1,94 @@
|
||||
# Created by: Blaz Zupan <blaz@si.FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= nagios
|
||||
PORTVERSION= 4.0.2
|
||||
PKGNAMESUFFIX= 4
|
||||
CATEGORIES= net-mgmt
|
||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-4.x/${PORTNAME}-${PORTVERSION}
|
||||
|
||||
MAINTAINER= mat@FreeBSD.org
|
||||
COMMENT= Powerful network monitoring system
|
||||
|
||||
LICENSE= GPLv2
|
||||
|
||||
LIB_DEPENDS= libgd.so:${PORTSDIR}/graphics/gd
|
||||
|
||||
USES= gmake iconv perl5 uidfix
|
||||
USE_PERL5= build
|
||||
USE_AUTOTOOLS= autoconf libltdl
|
||||
USE_PHP= yes
|
||||
USE_RC_SUBR= nagios
|
||||
|
||||
CONFLICTS= nagios-[12].* nagios-devel-*
|
||||
|
||||
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 \
|
||||
--datarootdir=${PREFIX}/${NAGIOSWWWDIR} \
|
||||
--datadir=${PREFIX}/${NAGIOSWWWDIR} \
|
||||
--sysconfdir=${PREFIX}/etc/nagios \
|
||||
--localstatedir=${NAGIOSDIR} \
|
||||
--with-httpd-conf=${PREFIX}/etc \
|
||||
--with-checkresult-dir=${NAGIOSDIR}/checkresults \
|
||||
--disable-statuswrl
|
||||
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib" \
|
||||
PERL=${PERL}
|
||||
|
||||
CPPFLAGS+= -I${LOCALBASE}/include -fPIC
|
||||
CFLAGS+= ${CPPFLAGS}
|
||||
|
||||
INSTALL_TARGET= install install-commandmode install-config
|
||||
PLIST_SUB= NAGIOSDIR=${NAGIOSDIR} \
|
||||
NAGIOSWWWDIR=${NAGIOSWWWDIR} \
|
||||
NAGIOSUSER=${NAGIOSUSER} \
|
||||
NAGIOSGROUP=${NAGIOSGROUP} \
|
||||
NAGIOSHTMURL=${NAGIOSHTMURL} \
|
||||
NAGIOSCGIURL=${NAGIOSCGIURL} \
|
||||
WWWGRP=${WWWGRP}
|
||||
|
||||
SUB_FILES= pkg-message
|
||||
|
||||
# XXX: Don't remove PREFIX from SUB_LIST here.
|
||||
SUB_LIST= PREFIX=${PREFIX} \
|
||||
${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= NANOSLEEP EVENT_BROKER UNHANDLED_HACK
|
||||
NANOSLEEP_DESC= Use nanosleep in event timing
|
||||
EVENT_BROKER_DESC= Enable event broker functionality
|
||||
UNHANDLED_HACK_DESC= Display passive checks in unhandled queries
|
||||
|
||||
OPTIONS_SUB=
|
||||
|
||||
NANOSLEEP_CONFIGURE_ENABLE= nanosleep
|
||||
EVENT_BROKER_CONFIGURE_ENABLE= event-broker
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
post-patch:
|
||||
.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/nagios4/distinfo
Normal file
2
net-mgmt/nagios4/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (nagios-4.0.2.tar.gz) = 01a3865301cb57ffec57247a2a23ea43d9cf2d21a480a89e9070546fdd366629
|
||||
SIZE (nagios-4.0.2.tar.gz) = 1696847
|
103
net-mgmt/nagios4/files/nagios.in
Normal file
103
net-mgmt/nagios4/files/nagios.in
Normal file
@ -0,0 +1,103 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
# 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"
|
51
net-mgmt/nagios4/files/patch-Makefile.in
Normal file
51
net-mgmt/nagios4/files/patch-Makefile.in
Normal file
@ -0,0 +1,51 @@
|
||||
--- ./Makefile.in.orig 2013-11-25 14:16:25.000000000 +0000
|
||||
+++ ./Makefile.in 2014-01-24 22:43:01.000000000 +0000
|
||||
@@ -245,7 +245,7 @@
|
||||
$(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)
|
||||
@@ -269,19 +269,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 ***"
|
||||
@@ -329,7 +328,6 @@
|
||||
|
||||
install-commandmode:
|
||||
$(INSTALL) -m 775 $(COMMAND_OPTS) -d $(DESTDIR)$(LOGDIR)/rw
|
||||
- chmod g+s $(DESTDIR)$(LOGDIR)/rw
|
||||
|
||||
@echo ""
|
||||
@echo "*** External command directory configured ***"
|
15
net-mgmt/nagios4/files/patch-base__Makefile.in
Normal file
15
net-mgmt/nagios4/files/patch-base__Makefile.in
Normal file
@ -0,0 +1,15 @@
|
||||
--- ./base/Makefile.in.orig 2013-11-25 14:16:25.000000000 +0000
|
||||
+++ ./base/Makefile.in 2014-01-24 22:43:21.000000000 +0000
|
||||
@@ -180,9 +180,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@
|
14
net-mgmt/nagios4/files/patch-cgi__Makefile.in
Normal file
14
net-mgmt/nagios4/files/patch-cgi__Makefile.in
Normal file
@ -0,0 +1,14 @@
|
||||
--- ./cgi/Makefile.in.orig 2013-11-25 14:16:25.000000000 +0000
|
||||
+++ ./cgi/Makefile.in 2014-01-24 22:43:36.000000000 +0000
|
||||
@@ -182,9 +182,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:
|
27
net-mgmt/nagios4/files/patch-configure.in
Normal file
27
net-mgmt/nagios4/files/patch-configure.in
Normal file
@ -0,0 +1,27 @@
|
||||
--- ./configure.in.orig 2013-11-25 14:16:25.000000000 +0000
|
||||
+++ ./configure.in 2014-01-24 22:41:15.000000000 +0000
|
||||
@@ -6,7 +6,6 @@
|
||||
|
||||
AC_INIT(base/nagios.c)
|
||||
AC_CONFIG_HEADER(include/config.h lib/snprintf.h lib/iobroker.h)
|
||||
-AC_PREFIX_DEFAULT(/usr/local/nagios)
|
||||
|
||||
PKG_NAME=nagios
|
||||
PKG_VERSION="4.0.2"
|
||||
@@ -134,14 +133,14 @@
|
||||
AC_SUBST(nagios_grp)
|
||||
AC_DEFINE_UNQUOTED(DEFAULT_NAGIOS_USER,"$nagios_user",[user name to run nagios])
|
||||
AC_DEFINE_UNQUOTED(DEFAULT_NAGIOS_GROUP,"$nagios_grp",[group name to run nagios])
|
||||
-INSTALL_OPTS="-o $nagios_user -g $nagios_grp"
|
||||
+INSTALL_OPTS=""
|
||||
AC_SUBST(INSTALL_OPTS)
|
||||
|
||||
AC_ARG_WITH(command_user,AC_HELP_STRING([--with-command-user=<user>],[sets user name for command access]),command_user=$withval,command_user=$nagios_user)
|
||||
AC_ARG_WITH(command_group,AC_HELP_STRING([--with-command-group=<grp>],[sets group name for command access]),command_grp=$withval,command_grp=$nagios_grp)
|
||||
AC_SUBST(command_user)
|
||||
AC_SUBST(command_grp)
|
||||
-COMMAND_OPTS="-o $command_user -g $command_grp"
|
||||
+COMMAND_OPTS=""
|
||||
AC_SUBST(COMMAND_OPTS)
|
||||
|
||||
dnl Check for location of mail program
|
17
net-mgmt/nagios4/files/patch-contrib__Makefile.in
Normal file
17
net-mgmt/nagios4/files/patch-contrib__Makefile.in
Normal file
@ -0,0 +1,17 @@
|
||||
--- ./contrib/Makefile.in.orig 2013-11-25 14:16:25.000000000 +0000
|
||||
+++ ./contrib/Makefile.in 2014-01-24 22:44:01.000000000 +0000
|
||||
@@ -52,10 +52,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
|
@ -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;
|
||||
}
|
||||
}
|
88
net-mgmt/nagios4/files/patch-html__Makefile.in
Normal file
88
net-mgmt/nagios4/files/patch-html__Makefile.in
Normal file
@ -0,0 +1,88 @@
|
||||
--- ./html/Makefile.in.orig 2014-01-24 22:44:21.000000000 +0000
|
||||
+++ ./html/Makefile.in 2014-01-24 22:44:31.000000000 +0000
|
||||
@@ -35,55 +35,55 @@
|
||||
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
|
13
net-mgmt/nagios4/files/patch-html__index.php
Normal file
13
net-mgmt/nagios4/files/patch-html__index.php
Normal file
@ -0,0 +1,13 @@
|
||||
--- ./html/index.php.orig 2013-11-25 14:16:25.000000000 +0000
|
||||
+++ ./html/index.php 2014-01-24 22:40:43.000000000 +0000
|
||||
@@ -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...
|
40
net-mgmt/nagios4/files/patch-html__main.php
Normal file
40
net-mgmt/nagios4/files/patch-html__main.php
Normal file
@ -0,0 +1,40 @@
|
||||
--- ./html/main.php.orig 2013-11-25 14:16:25.000000000 +0000
|
||||
+++ ./html/main.php 2014-01-24 22:40:43.000000000 +0000
|
||||
@@ -40,37 +40,10 @@
|
||||
<div class="product">Nagios<sup><span style="font-size: small;">®</span></sup> Core<sup><span style="font-size: small;">™</span></sup></div>
|
||||
<div class="version">Version 4.0.2</div>
|
||||
<div class="releasedate">November 25, 2013</div>
|
||||
-<div class="checkforupdates"><a href="http://www.nagios.org/checkforupdates/?version=4.0.2&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">
|
||||
<div id='topsplashbox'>
|
11
net-mgmt/nagios4/files/patch-include__locations.h.in
Normal file
11
net-mgmt/nagios4/files/patch-include__locations.h.in
Normal file
@ -0,0 +1,11 @@
|
||||
--- ./include/locations.h.in.orig 2013-11-25 14:16:25.000000000 +0000
|
||||
+++ ./include/locations.h.in 2014-01-24 22:40:43.000000000 +0000
|
||||
@@ -19,7 +19,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/"
|
11
net-mgmt/nagios4/files/patch-sample-config__cgi.cfg.in
Normal file
11
net-mgmt/nagios4/files/patch-sample-config__cgi.cfg.in
Normal file
@ -0,0 +1,11 @@
|
||||
--- ./sample-config/cgi.cfg.in.orig 2013-11-25 14:16:25.000000000 +0000
|
||||
+++ ./sample-config/cgi.cfg.in 2014-01-24 22:40:43.000000000 +0000
|
||||
@@ -263,7 +263,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$
|
||||
|
||||
|
||||
|
11
net-mgmt/nagios4/files/patch-sample-config__nagios.cfg.in
Normal file
11
net-mgmt/nagios4/files/patch-sample-config__nagios.cfg.in
Normal file
@ -0,0 +1,11 @@
|
||||
--- ./sample-config/nagios.cfg.in.orig 2013-11-25 14:16:25.000000000 +0000
|
||||
+++ ./sample-config/nagios.cfg.in 2014-01-24 22:40:43.000000000 +0000
|
||||
@@ -31,7 +31,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
|
@ -0,0 +1,40 @@
|
||||
--- ./sample-config/template-object/localhost.cfg.in.orig 2013-11-25 14:16:25.000000000 +0000
|
||||
+++ ./sample-config/template-object/localhost.cfg.in 2014-01-24 22:40:43.000000000 +0000
|
||||
@@ -4,7 +4,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.
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
@@ -22,9 +22,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
|
||||
@@ -40,12 +40,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
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,26 @@
|
||||
--- ./sample-config/template-object/templates.cfg.in.orig 2013-11-25 14:16:25.000000000 +0000
|
||||
+++ ./sample-config/template-object/templates.cfg.in 2014-01-24 22:40:43.000000000 +0000
|
||||
@@ -61,17 +61,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
|
32
net-mgmt/nagios4/files/pkg-message.in
Normal file
32
net-mgmt/nagios4/files/pkg-message.in
Normal file
@ -0,0 +1,32 @@
|
||||
**********************************************************************
|
||||
|
||||
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. Documentation is available in HTML form
|
||||
in %%PREFIX%%/%%NAGIOSWWWDIR%%/docs.
|
||||
|
||||
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%%/
|
||||
|
||||
**********************************************************************
|
10
net-mgmt/nagios4/pkg-descr
Normal file
10
net-mgmt/nagios4/pkg-descr
Normal file
@ -0,0 +1,10 @@
|
||||
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.
|
||||
|
||||
WWW: http://www.nagios.org/
|
405
net-mgmt/nagios4/pkg-plist
Normal file
405
net-mgmt/nagios4/pkg-plist
Normal file
@ -0,0 +1,405 @@
|
||||
@exec mkdir -p %D/%%NAGIOSWWWDIR%%/ssi
|
||||
@exec mkdir -p %%NAGIOSDIR%%/archives
|
||||
@exec mkdir -p %%NAGIOSDIR%%/checkresults
|
||||
@exec mkdir -p %%NAGIOSDIR%%/rw
|
||||
@exec chmod 775 %%NAGIOSDIR%% %%NAGIOSDIR%%/archives %%NAGIOSDIR%%/checkresults %%NAGIOSDIR%%/rw
|
||||
@exec chown %%NAGIOSUSER%%:%%NAGIOSGROUP%% %%NAGIOSDIR%% %%NAGIOSDIR%%/archives %%NAGIOSDIR%%/checkresults
|
||||
@exec chown %%NAGIOSUSER%%:%%WWWGRP%% %%NAGIOSDIR%%/rw
|
||||
bin/nagios
|
||||
bin/nagiostats
|
||||
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
|
||||
@unexec if cmp -s %D/%%NAGIOSWWWDIR%%/config.inc.php.sample %D/%%NAGIOSWWWDIR%%/config.inc.php; then rm -f %D/%%NAGIOSWWWDIR%%/config.inc.php; fi
|
||||
%%NAGIOSWWWDIR%%/config.inc.php.sample
|
||||
@exec if [ ! -f %D/%%NAGIOSWWWDIR%%/config.inc.php ] ; then cp -p %D/%F %B/config.inc.php; fi
|
||||
%%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
|
||||
@dirrmtry etc/nagios/objects
|
||||
@dirrmtry etc/nagios
|
||||
@dirrm %%NAGIOSWWWDIR%%/cgi-bin
|
||||
@dirrm %%NAGIOSWWWDIR%%/contexthelp
|
||||
@dirrm %%NAGIOSWWWDIR%%/docs/images
|
||||
@dirrm %%NAGIOSWWWDIR%%/docs
|
||||
@dirrm %%NAGIOSWWWDIR%%/images/logos
|
||||
@dirrm %%NAGIOSWWWDIR%%/images
|
||||
@dirrm %%NAGIOSWWWDIR%%/includes/rss/extlib
|
||||
@dirrm %%NAGIOSWWWDIR%%/includes/rss
|
||||
@dirrm %%NAGIOSWWWDIR%%/includes
|
||||
@dirrm %%NAGIOSWWWDIR%%/js
|
||||
@dirrm %%NAGIOSWWWDIR%%/media
|
||||
@dirrm %%NAGIOSWWWDIR%%/ssi
|
||||
@dirrm %%NAGIOSWWWDIR%%/stylesheets
|
||||
@dirrmtry %%NAGIOSWWWDIR%%
|
||||
@dirrmtry %%NAGIOSDIR%%/archives
|
||||
@dirrmtry %%NAGIOSDIR%%/checkresults
|
||||
@dirrmtry %%NAGIOSDIR%%/rw
|
||||
@dirrmtry %%NAGIOSDIR%%
|
||||
@unexec 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
|
||||
@unexec 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
|
Loading…
Reference in New Issue
Block a user