diff options
author | ivan <ivan> | 2010-12-27 00:04:44 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-12-27 00:04:44 +0000 |
commit | 74e058c8a010ef6feb539248a550d0bb169c1e94 (patch) | |
tree | 6e8d3efb218dd0f41970b62c7f29758d1ae9a937 /torrus/configs | |
parent | 35359a73152b3d7a9ad5e3d37faf81f6fedb76e8 (diff) |
import torrus 1.0.9
Diffstat (limited to 'torrus/configs')
-rw-r--r-- | torrus/configs/Makefile.am | 52 | ||||
-rw-r--r-- | torrus/configs/Makefile.in | 399 | ||||
-rw-r--r-- | torrus/configs/devdiscover-config.pl | 1430 | ||||
-rw-r--r-- | torrus/configs/devdiscover-siteconfig.pl | 4 | ||||
-rw-r--r-- | torrus/configs/email-siteconfig.pl | 16 | ||||
-rw-r--r-- | torrus/configs/initscript.conf | 31 | ||||
-rw-r--r-- | torrus/configs/notify-siteconfig.pl | 31 | ||||
-rw-r--r-- | torrus/configs/snmptrap-siteconfig.pl | 19 | ||||
-rw-r--r-- | torrus/configs/torrus-config.pl | 377 | ||||
-rw-r--r-- | torrus/configs/torrus-siteconfig.pl | 21 | ||||
-rw-r--r-- | torrus/configs/webmux.pl | 38 | ||||
-rw-r--r-- | torrus/configs/webmux2.pl | 74 |
12 files changed, 2492 insertions, 0 deletions
diff --git a/torrus/configs/Makefile.am b/torrus/configs/Makefile.am new file mode 100644 index 000000000..2b10a7cb0 --- /dev/null +++ b/torrus/configs/Makefile.am @@ -0,0 +1,52 @@ + +# Copyright (C) 2004 Stanislav Sinyagin +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + +# $Id: Makefile.am,v 1.1 2010-12-27 00:04:41 ivan Exp $ +# Stanislav Sinyagin <ssinyagin@yahoo.com> +# + +EXTRA_DIST = \ + devdiscover-config.pl \ + devdiscover-siteconfig.pl \ + email-siteconfig.pl \ + initscript.conf \ + notify-siteconfig.pl \ + snmptrap-siteconfig.pl \ + torrus-config.pl \ + torrus-siteconfig.pl \ + webmux.pl \ + webmux2.pl + +DISTCLEANFILES = instvars + +instvarsdir = $(cfgdefdir) +nodist_instvars_DATA = instvars + +install-data-local: + $(mkinstalldirs) $(DESTDIR)$(cfgdefdir) $(DESTDIR)$(siteconfdir) + for f in initscript.conf devdiscover-config.pl torrus-config.pl \ + webmux.pl webmux2.pl; do \ + @abs_top_builddir@/setup_tools/substvars.sh $$f > \ + $(DESTDIR)$(cfgdefdir)/$$f; \ + done + for f in devdiscover-siteconfig.pl email-siteconfig.pl \ + notify-siteconfig.pl \ + snmptrap-siteconfig.pl torrus-siteconfig.pl; do \ + if test ! -r $(DESTDIR)$(siteconfdir)/$$f; then \ + $(INSTALL_DATA) $$f $(DESTDIR)$(siteconfdir)/$$f; \ + fi \ + done diff --git a/torrus/configs/Makefile.in b/torrus/configs/Makefile.in new file mode 100644 index 000000000..a3c979e7c --- /dev/null +++ b/torrus/configs/Makefile.in @@ -0,0 +1,399 @@ +# Makefile.in generated by automake 1.9.6 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +# Copyright (C) 2004 Stanislav Sinyagin +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + +# $Id: Makefile.in,v 1.1 2010-12-27 00:04:41 ivan Exp $ +# Stanislav Sinyagin <ssinyagin@yahoo.com> +# + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = .. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = @INSTALL@ +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = configs +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_CLEAN_FILES = +SOURCES = +DIST_SOURCES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(instvarsdir)" +nodist_instvarsDATA_INSTALL = $(INSTALL_DATA) +DATA = $(nodist_instvars_DATA) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +FIND = @FIND@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +KILL = @KILL@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEINFO = @MAKEINFO@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PERL = @PERL@ +PERLINC = @PERLINC@ +POD2MAN = @POD2MAN@ +POD2MAN_PRESENT_FALSE = @POD2MAN_PRESENT_FALSE@ +POD2MAN_PRESENT_TRUE = @POD2MAN_PRESENT_TRUE@ +POD2TEXT = @POD2TEXT@ +POD2TEXT_PRESENT_FALSE = @POD2TEXT_PRESENT_FALSE@ +POD2TEXT_PRESENT_TRUE = @POD2TEXT_PRESENT_TRUE@ +RM = @RM@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +SLEEP = @SLEEP@ +STRIP = @STRIP@ +SU = @SU@ +VERSION = @VERSION@ +ac_ct_STRIP = @ac_ct_STRIP@ +am__leading_dot = @am__leading_dot@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +cachedir = @cachedir@ +cfgdefdir = @cfgdefdir@ +datadir = @datadir@ +dbhome = @dbhome@ +defrrddir = @defrrddir@ +distxmldir = @distxmldir@ +enable_pkgonly = @enable_pkgonly@ +enable_varperm = @enable_varperm@ +exec_prefix = @exec_prefix@ +exmpdir = @exmpdir@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localstatedir = @localstatedir@ +logdir = @logdir@ +mandir = @mandir@ +mansec_misc = @mansec_misc@ +mansec_usercmd = @mansec_usercmd@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +perlithreads = @perlithreads@ +perllibdir = @perllibdir@ +perllibdirs = @perllibdirs@ +piddir = @piddir@ +pkgbindir = @pkgbindir@ +pkgdocdir = @pkgdocdir@ +pkghome = @pkghome@ +plugdevdisccfgdir = @plugdevdisccfgdir@ +pluginsdir = @pluginsdir@ +plugtorruscfgdir = @plugtorruscfgdir@ +plugwrapperdir = @plugwrapperdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +reportsdir = @reportsdir@ +sbindir = @sbindir@ +scriptsdir = @scriptsdir@ +seslockdir = @seslockdir@ +sesstordir = @sesstordir@ +sharedstatedir = @sharedstatedir@ +siteconfdir = @siteconfdir@ +sitedir = @sitedir@ +sitexmldir = @sitexmldir@ +supdir = @supdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +tmpldir = @tmpldir@ +tmpluserdir = @tmpluserdir@ +torrus_user = @torrus_user@ +var_group = @var_group@ +var_mode = @var_mode@ +var_user = @var_user@ +varprefix = @varprefix@ +webplaindir = @webplaindir@ +webscriptsdir = @webscriptsdir@ +wrapperdir = @wrapperdir@ +EXTRA_DIST = \ + devdiscover-config.pl \ + devdiscover-siteconfig.pl \ + email-siteconfig.pl \ + initscript.conf \ + notify-siteconfig.pl \ + snmptrap-siteconfig.pl \ + torrus-config.pl \ + torrus-siteconfig.pl \ + webmux.pl \ + webmux2.pl + +DISTCLEANFILES = instvars +instvarsdir = $(cfgdefdir) +nodist_instvars_DATA = instvars +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu configs/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu configs/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +uninstall-info-am: +install-nodist_instvarsDATA: $(nodist_instvars_DATA) + @$(NORMAL_INSTALL) + test -z "$(instvarsdir)" || $(mkdir_p) "$(DESTDIR)$(instvarsdir)" + @list='$(nodist_instvars_DATA)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f=$(am__strip_dir) \ + echo " $(nodist_instvarsDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(instvarsdir)/$$f'"; \ + $(nodist_instvarsDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(instvarsdir)/$$f"; \ + done + +uninstall-nodist_instvarsDATA: + @$(NORMAL_UNINSTALL) + @list='$(nodist_instvars_DATA)'; for p in $$list; do \ + f=$(am__strip_dir) \ + echo " rm -f '$(DESTDIR)$(instvarsdir)/$$f'"; \ + rm -f "$(DESTDIR)$(instvarsdir)/$$f"; \ + done +tags: TAGS +TAGS: + +ctags: CTAGS +CTAGS: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ + list='$(DISTFILES)'; for file in $$list; do \ + case $$file in \ + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ + esac; \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(DATA) +installdirs: + for dir in "$(DESTDIR)$(instvarsdir)"; do \ + test -z "$$dir" || $(mkdir_p) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-data-local install-nodist_instvarsDATA + +install-exec-am: + +install-info: install-info-am + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-info-am uninstall-nodist_instvarsDATA + +.PHONY: all all-am check check-am clean clean-generic distclean \ + distclean-generic distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am \ + install-data-local install-exec install-exec-am install-info \ + install-info-am install-man install-nodist_instvarsDATA \ + install-strip installcheck installcheck-am installdirs \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-generic pdf pdf-am ps ps-am uninstall uninstall-am \ + uninstall-info-am uninstall-nodist_instvarsDATA + + +install-data-local: + $(mkinstalldirs) $(DESTDIR)$(cfgdefdir) $(DESTDIR)$(siteconfdir) + for f in initscript.conf devdiscover-config.pl torrus-config.pl \ + webmux.pl webmux2.pl; do \ + @abs_top_builddir@/setup_tools/substvars.sh $$f > \ + $(DESTDIR)$(cfgdefdir)/$$f; \ + done + for f in devdiscover-siteconfig.pl email-siteconfig.pl \ + notify-siteconfig.pl \ + snmptrap-siteconfig.pl torrus-siteconfig.pl; do \ + if test ! -r $(DESTDIR)$(siteconfdir)/$$f; then \ + $(INSTALL_DATA) $$f $(DESTDIR)$(siteconfdir)/$$f; \ + fi \ + done +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/torrus/configs/devdiscover-config.pl b/torrus/configs/devdiscover-config.pl new file mode 100644 index 000000000..34c6dd22e --- /dev/null +++ b/torrus/configs/devdiscover-config.pl @@ -0,0 +1,1430 @@ +# Copyright (C) 2003 Stanislav Sinyagin +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + +# $Id: devdiscover-config.pl,v 1.1 2010-12-27 00:04:42 ivan Exp $ +# Stanislav Sinyagin <ssinyagin@yahoo.com> + + +# DO NOT EDIT THIS FILE! + +# Torrus Device Discovery local configuration. +# Put all your local settings into devdiscover-siteconfig.pl + +use lib(@perllibdirs@); + +$Torrus::Global::version = '@VERSION@'; +$Torrus::Global::discoveryDir = '@sitedir@/discovery/'; +$Torrus::Global::siteXmlDir = '@sitexmldir@'; + +$Torrus::Global::threadsEnabled = '@perlithreads@'; + +$Torrus::DevDiscover::timeFormat = '%d-%m-%Y %H:%M'; + + +@Torrus::DevDiscover::loadModules = + ( + 'Torrus::DevDiscover::RFC1628_UPS_MIB', + 'Torrus::DevDiscover::RFC1657_BGP4_MIB', + 'Torrus::DevDiscover::RFC2011_IP_MIB', + 'Torrus::DevDiscover::RFC2863_IF_MIB', + 'Torrus::DevDiscover::RFC2662_ADSL_LINE', # needs testing + 'Torrus::DevDiscover::RFC2670_DOCS_IF', + 'Torrus::DevDiscover::RFC2737_ENTITY_MIB', + 'Torrus::DevDiscover::RFC2790_HOST_RESOURCES', + 'Torrus::DevDiscover::Alteon', + 'Torrus::DevDiscover::ALU_Timetra', + 'Torrus::DevDiscover::AlliedTelesyn_PBC18', + 'Torrus::DevDiscover::Apple_AE', + 'Torrus::DevDiscover::Arbor_E', + 'Torrus::DevDiscover::Arista', + 'Torrus::DevDiscover::AscendMax', + 'Torrus::DevDiscover::ATMEL', + 'Torrus::DevDiscover::AxxessIT', + 'Torrus::DevDiscover::BetterNetworks', + 'Torrus::DevDiscover::CasaCMTS', + 'Torrus::DevDiscover::CiscoCatOS', + 'Torrus::DevDiscover::CiscoFirewall', + 'Torrus::DevDiscover::CiscoGeneric', + 'Torrus::DevDiscover::CiscoIOS', + 'Torrus::DevDiscover::CiscoIOS_Docsis', + 'Torrus::DevDiscover::CiscoIOS_MacAccounting', + 'Torrus::DevDiscover::CiscoIOS_SAA', + 'Torrus::DevDiscover::CiscoSCE', + 'Torrus::DevDiscover::CiscoVDSL', + 'Torrus::DevDiscover::CompaqCIM', + 'Torrus::DevDiscover::EmpireSystemedge', + 'Torrus::DevDiscover::F5BigIp', + 'Torrus::DevDiscover::Foundry', + 'Torrus::DevDiscover::FTOS', + 'Torrus::DevDiscover::Jacarta', + 'Torrus::DevDiscover::JunOS', + 'Torrus::DevDiscover::Liebert', + 'Torrus::DevDiscover::MicrosoftWindows', + 'Torrus::DevDiscover::MotorolaBSR', + 'Torrus::DevDiscover::NetApp', + 'Torrus::DevDiscover::NetScreen', + 'Torrus::DevDiscover::NetBotz', + 'Torrus::DevDiscover::OracleDatabase', + 'Torrus::DevDiscover::Paradyne', # needs testing + 'Torrus::DevDiscover::RFC1697_RDBMS', + 'Torrus::DevDiscover::Symmetricom', + 'Torrus::DevDiscover::UcdSnmp', + 'Torrus::DevDiscover::Xylan' + ); + + + +# Template name and source file for each template referenced in discovery +# modules + +%Torrus::ConfigBuilder::templateRegistry = + ( + #### SNMP defaults + '::holt-winters-defaults' => { + 'name' => 'holt-winters-defaults', + 'source' => 'snmp-defs.xml' + }, + '::snmp-defaults' => { + 'name' => 'snmp-defaults', + 'source' => 'snmp-defs.xml' + }, + '::viewonly-defaults' => { + 'name' => 'viewonly-defaults', + 'source' => 'snmp-defs.xml' + }, + + #### CDef Collector defaults + '::cdef-collector-defaults' => { + 'name' => 'cdef-collector-defaults', + 'source' => 'cdef-collector-defs.xml' + }, + + #### UPS-MIB + 'RFC1628_UPS_MIB::battery-subtree' => { + 'name' => 'battery-subtree', + 'source' => 'generic/rfc1628.ups.xml' + }, + 'RFC1628_UPS_MIB::ups-input-subtree' => { + 'name' => 'ups-input-subtree', + 'source' => 'generic/rfc1628.ups.xml' + }, + 'RFC1628_UPS::ups-input-leaf' => { + 'name' => 'ups-input-leaf', + 'source' => 'generic/rfc1628.ups.xml' + }, + 'RFC1628_UPS_MIB::ups-output-subtree' => { + 'name' => 'ups-output-subtree', + 'source' => 'generic/rfc1628.ups.xml' + }, + 'RFC1628_UPS::ups-output-leaf' => { + 'name' => 'ups-output-leaf', + 'source' => 'generic/rfc1628.ups.xml' + }, + 'RFC1628_UPS_MIB::ups-bypass-subtree' => { + 'name' => 'ups-bypass-subtree', + 'source' => 'generic/rfc1628.ups.xml' + }, + 'RFC1628_UPS::ups-bypass-leaf' => { + 'name' => 'ups-bypass-leaf', + 'source' => 'generic/rfc1628.ups.xml' + }, + + #### IF-MIB + 'RFC2863_IF_MIB::rfc2863-ifmib-hostlevel' => { + 'name' => 'rfc2863-ifmib-hostlevel', + 'source' => 'generic/rfc2863.if-mib.xml' + }, + 'RFC2863_IF_MIB::rfc2863-ifmib-subtree' => { + 'name' => 'rfc2863-ifmib-subtree', + 'source' => 'generic/rfc2863.if-mib.xml' + }, + 'RFC2863_IF_MIB::iftable-octets' => { + 'name' => 'iftable-octets', + 'source' => 'generic/rfc2863.if-mib.xml' + }, + 'RFC2863_IF_MIB::iftable-ucast-packets' => { + 'name' => 'iftable-ucast-packets', + 'source' => 'generic/rfc2863.if-mib.xml' + }, + 'RFC2863_IF_MIB::iftable-discards-in' => { + 'name' => 'iftable-discards-in', + 'source' => 'generic/rfc2863.if-mib.xml' + }, + 'RFC2863_IF_MIB::iftable-discards-out' => { + 'name' => 'iftable-discards-out', + 'source' => 'generic/rfc2863.if-mib.xml' + }, + 'RFC2863_IF_MIB::iftable-errors-in' => { + 'name' => 'iftable-errors-in', + 'source' => 'generic/rfc2863.if-mib.xml' + }, + 'RFC2863_IF_MIB::iftable-errors-out' => { + 'name' => 'iftable-errors-out', + 'source' => 'generic/rfc2863.if-mib.xml' + }, + 'RFC2863_IF_MIB::ifxtable-hcoctets' => { + 'name' => 'ifxtable-hcoctets', + 'source' => 'generic/rfc2863.if-mib.xml' + }, + 'RFC2863_IF_MIB::ifxtable-hcucast-packets' => { + 'name' => 'ifxtable-hcucast-packets', + 'source' => 'generic/rfc2863.if-mib.xml' + }, + 'RFC2863_IF_MIB::interface-bandwidth-usage' => { + 'name' => 'interface-bandwidth-usage', + 'source' => 'generic/rfc2863.if-mib.xml' + }, + + #### RDBMS MIB + 'RFC1697_RDBMS::rdbms-dbtable' => { + 'name' => 'rdbms-dbtable', + 'source' => 'generic/rfc1697.rdbms.xml', + }, + + #### DOCSIS MIB + 'RFC2670_DOCS_IF::docsis-downstream-subtree' => { + 'name' => 'docsis-downstream-subtree', + 'source' => 'generic/rfc2670.docsis-if.xml' + }, + 'RFC2670_DOCS_IF::docsis-downstream-util' => { + 'name' => 'docsis-downstream-util', + 'source' => 'generic/rfc2670.docsis-if.xml' + }, + 'RFC2670_DOCS_IF::docsis-upstream-subtree' => { + 'name' => 'docsis-upstream-subtree', + 'source' => 'generic/rfc2670.docsis-if.xml' + }, + 'RFC2670_DOCS_IF::docsis-upstream-stats' => { + 'name' => 'docsis-upstream-stats', + 'source' => 'generic/rfc2670.docsis-if.xml' + }, + + #### RFC2790_HOST_RESOURCES + 'RFC2790_HOST_RESOURCES::hr-system-performance-subtree' => { + 'name' => 'hr-system-performance-subtree', + 'source' => 'generic/rfc2790.host-resources.xml' + }, + 'RFC2790_HOST_RESOURCES::hr-system-uptime' => { + 'name' => 'hr-system-uptime', + 'source' => 'generic/rfc2790.host-resources.xml' + }, + 'RFC2790_HOST_RESOURCES::hr-system-num-users' => { + 'name' => 'hr-system-num-users', + 'source' => 'generic/rfc2790.host-resources.xml' + }, + 'RFC2790_HOST_RESOURCES::hr-system-processes' => { + 'name' => 'hr-system-processes', + 'source' => 'generic/rfc2790.host-resources.xml' + }, + 'RFC2790_HOST_RESOURCES::hr-storage-subtree' => { + 'name' => 'hr-storage-subtree', + 'source' => 'generic/rfc2790.host-resources.xml' + }, + 'RFC2790_HOST_RESOURCES::hr-storage-usage' => { + 'name' => 'hr-storage-usage', + 'source' => 'generic/rfc2790.host-resources.xml' + }, + + #### ADSL-LINE-MIB + 'RFC2662_ADSL_LINE::adsl-line-interface' => { + 'name' => 'adsl-line-interface', + 'source' => 'generic/rfc2662.adsl-line.xml' + }, + + #### Alteon application switches + 'Alteon::alteon-cpu' => { + 'name' => 'alteon-cpu', + 'source' => 'vendor/alteon.xml' + }, + 'Alteon::alteon-mem' => { + 'name' => 'alteon-mem', + 'source' => 'vendor/alteon.xml' + }, + 'Alteon::alteon-packets' => { + 'name' => 'alteon-packets', + 'source' => 'vendor/alteon.xml' + }, + 'Alteon::alteon-sensor' => { + 'name' => 'alteon-sensor', + 'source' => 'vendor/alteon.xml' + }, + 'Alteon::alteon-vserver-subtree' => { + 'name' => 'alteon-vserver-subtree', + 'source' => 'vendor/alteon.xml' + }, + 'Alteon::alteon-vserver' => { + 'name' => 'alteon-vserver', + 'source' => 'vendor/alteon.xml' + }, + 'Alteon::alteon-maint-subtree' => { + 'name' => 'alteon-maint-subtree', + 'source' => 'vendor/alteon.xml' + }, + 'Alteon::alteon-maint' => { + 'name' => 'alteon-maint', + 'source' => 'vendor/alteon.xml' + }, + + #### Alcatel-Lucent ESS and SR + 'ALU_Timetra::alu-timetra-customer' => { + 'name' => 'alu-timetra-customer', + 'source' => 'vendor/alu-timetra.xml' + }, + 'ALU_Timetra::alu-timetra-sap' => { + 'name' => 'alu-timetra-sap', + 'source' => 'vendor/alu-timetra.xml' + }, + + #### Apple Airport Extreme + 'Apple_AE::ae-wireless-clients-subtree' => { + 'name' => 'ae-wireless-clients-subtree', + 'source' => 'vendor/apple.ae.xml' + }, + 'Apple_AE::ae-wireless-clients-leaf' => { + 'name' => 'ae-wireless-clients-leaf', + 'source' => 'vendor/apple.ae.xml' + }, + 'Apple_AE::ae-global-stats' => { + 'name' => 'ae-global-stats', + 'source' => 'vendor/apple.ae.xml' + }, + + #### Arbor Networks E Series + 'Arbor_E::arbor-bundle-subtree' => { + 'name' => 'arbor-bundle-subtree', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::arbor-bundle' => { + 'name' => 'arbor-bundle', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::arbor-bundle-deny' => { + 'name' => 'arbor-bundle-deny', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::arbor-bundle-pktsize' => { + 'name' => 'arbor-bundle-pktsize', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::arbor-bundle-ratelimit' => { + 'name' => 'arbor-bundle-ratelimit', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::arbor-bundle-subcount' => { + 'name' => 'arbor-bundle-subcount', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::arbor-flowlkup-subtree' => { + 'name' => 'arbor-flowlkup-subtree', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::arbor-flowlkup' => { + 'name' => 'arbor-flowlkup', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::arbor-flowlkup-leaf' => { + 'name' => 'arbor-flowlkup-leaf', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::e30-buffers' => { + 'name' => 'e30-buffers', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::e30-bundle-subtree' => { + 'name' => 'e30-bundle-subtree', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::e30-bundle' => { + 'name' => 'e30-bundle', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::e30-bundle-deny' => { + 'name' => 'e30-bundle-deny', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::e30-bundle-ratelimit' => { + 'name' => 'e30-bundle-ratelimit', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::e30-cpu' => { + 'name' => 'e30-cpu', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::e30-fwdTable' => { + 'name' => 'e30-fwdTable', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::e30-fwdTable-login' => { + 'name' => 'e30-fwdTable-login', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::e30-hdd-subtree' => { + 'name' => 'e30-hdd-subtree', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::e30-hdd' => { + 'name' => 'e30-hdd', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::e30-hdd-errors' => { + 'name' => 'e30-hdd-errors', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::e30-hdd-logs' => { + 'name' => 'e30-hdd-logs', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::e30-l2tp-subtree' => { + 'name' => 'e30-l2tp-subtree', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::e30-l2tp' => { + 'name' => 'e30-l2tp', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::e30-l2tp-secure-endpoints-subtree' => { + 'name' => 'e30-l2tp-secure-endpoints-subtree', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::e30-l2tp-secure-endpoints-leaf' => { + 'name' => 'e30-l2tp-secure-endpoints-leaf', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::e30-mem' => { + 'name' => 'e30-mem', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::e30-mempool-subtree' => { + 'name' => 'e30-mempool-subtree', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::e30-mempool' => { + 'name' => 'e30-mempool', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::e30-slowpath' => { + 'name' => 'e30-slowpath', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::e100-cpu-subtree' => { + 'name' => 'e100-cpu-subtree', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::e100-cpu' => { + 'name' => 'e100-cpu', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::e100-hdd-subtree' => { + 'name' => 'e100-hdd-subtree', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::e100-hdd' => { + 'name' => 'e100-hdd', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::e100-mem-subtree' => { + 'name' => 'e100-mem-subtree', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::e100-mem' => { + 'name' => 'e100-mem', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::e100-policymgmt' => { + 'name' => 'e100-policymgmt', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::e100-submgmt-subtree' => { + 'name' => 'e100-submgmt-subtree', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::e100-submgmt-state-subtree' => { + 'name' => 'e100-submgmt-state-subtree', + 'source' => 'vendor/arbor_e.xml' + }, + 'Arbor_E::e100-submgmt-state' => { + 'name' => 'e100-submgmt-state', + 'source' => 'vendor/arbor_e.xml' + }, + + #### ATMEL smartbridges + 'ATMEL::atmel-device-subtree' => { + 'name' => 'atmel-device-subtree', + 'source' => 'vendor/atmel.xml' + }, + 'ATMEL::atmel-accesspoint-stats' => { + 'name' => 'atmel-accesspoint-stats', + 'source' => 'vendor/atmel.xml' + }, + 'ATMEL::atmel-client-stats' => { + 'name' => 'atmel-client-stats', + 'source' => 'vendor/atmel.xml' + }, + + #### AscendMax + 'AscendMax::ascend-totalcalls' => { + 'name' => 'ascend-totalcalls', + 'source' => 'vendor/ascend.max.xml' + }, + 'AscendMax::ascend-line-stats' => { + 'name' => 'ascend-line-stats', + 'source' => 'vendor/ascend.max.xml' + }, + + #### BetterNetworks + 'BetterNetworks::betternetworks-sensor' => { + 'name' => 'betternetworks-sensor', + 'source' => 'vendor/betternetworks.xml' + }, + + #### CASA Systems CMTS + 'CasaCMTS::casa-docsis-mac-subtree' => { + 'name' => 'casa-docsis-mac-subtree', + 'source' => 'vendor/casa-cmts.xml' + }, + 'CasaCMTS::casa-docsis-mac-util' => { + 'name' => 'casa-docsis-mac-util', + 'source' => 'vendor/casa-cmts.xml' + }, + 'CasaCMTS::casa-docsis-upstream-util' => { + 'name' => 'casa-docsis-upstream-util', + 'source' => 'vendor/casa-cmts.xml' + }, + 'CasaCMTS::casa-docsis-downstream-util' => { + 'name' => 'casa-docsis-downstream-util', + 'source' => 'vendor/casa-cmts.xml' + }, + + #### Cisco + 'CiscoGeneric::cisco-cpu' => { + 'name' => 'cisco-cpu', + 'source' => 'vendor/cisco.generic.xml' + }, + 'CiscoGeneric::cisco-cpu-revised' => { + 'name' => 'cisco-cpu-revised', + 'source' => 'vendor/cisco.generic.xml' + }, + 'CiscoGeneric::cisco-cpu-usage-subtree' => { + 'name' => 'cisco-cpu-usage-subtree', + 'source' => 'vendor/cisco.generic.xml' + }, + 'CiscoGeneric::old-cisco-cpu' => { + 'name' => 'old-cisco-cpu', + 'source' => 'vendor/cisco.generic.xml' + }, + 'CiscoGeneric::old-cisco-mempool' => { + 'name' => 'cisco-mempool', + 'source' => 'vendor/cisco.generic.xml' + }, + 'CiscoGeneric::cisco-mempool' => { + 'name' => 'cisco-mempool', + 'source' => 'vendor/cisco.generic.xml' + }, + 'CiscoGeneric::cisco-enh-mempool' => { + 'name' => 'cisco-enh-mempool', + 'source' => 'vendor/cisco.generic.xml' + }, + 'CiscoGeneric::cisco-memusage-subtree' => { + 'name' => 'cisco-memusage-subtree', + 'source' => 'vendor/cisco.generic.xml' + }, + 'CiscoGeneric::cisco-temperature-subtree' => { + 'name' => 'cisco-temperature-subtree', + 'source' => 'vendor/cisco.generic.xml' + }, + 'CiscoGeneric::cisco-temperature-sensor' => { + 'name' => 'cisco-temperature-sensor', + 'source' => 'vendor/cisco.generic.xml' + }, + 'CiscoGeneric::cisco-temperature-sensor-fahrenheit' => { + 'name' => 'cisco-temperature-sensor-fahrenheit', + 'source' => 'vendor/cisco.generic.xml' + }, + 'CiscoGeneric::cisco-power-supply' => { + 'name' => 'cisco-power-supply', + 'source' => 'vendor/cisco.generic.xml' + }, + 'CiscoIOS::cisco-interface-counters' => { + 'name' => 'cisco-interface-counters', + 'source' => 'vendor/cisco.ios.xml' + }, + 'CiscoIOS::old-cisco-memory-buffers' => { + 'name' => 'old-cisco-memory-buffers', + 'source' => 'vendor/cisco.ios.xml' + }, + 'CiscoIOS::cisco-ipsec-flow-globals' => { + 'name' => 'cisco-ipsec-flow-globals', + 'source' => 'vendor/cisco.ios.xml' + }, + 'CiscoIOS::cisco-bgp' => { + 'name' => 'cisco-bgp', + 'source' => 'vendor/cisco.ios.xml' + }, + 'CiscoIOS::cisco-car-subtree' => { + 'name' => 'cisco-car-subtree', + 'source' => 'vendor/cisco.ios.xml' + }, + 'CiscoIOS::cisco-car' => { + 'name' => 'cisco-car', + 'source' => 'vendor/cisco.ios.xml' + }, + 'CiscoIOS::cisco-vpdn-subtree' => { + 'name' => 'cisco-vpdn-subtree', + 'source' => 'vendor/cisco.ios.xml' + }, + 'CiscoIOS::cisco-vpdn-leaf' => { + 'name' => 'cisco-vpdn-leaf', + 'source' => 'vendor/cisco.ios.xml' + }, + 'CiscoIOS_Docsis::cisco-docsis-mac-subtree' => { + 'name' => 'cisco-docsis-mac-subtree', + 'source' => 'vendor/cisco.ios.docsis.xml' + }, + 'CiscoIOS_Docsis::cisco-docsis-mac-util' => { + 'name' => 'cisco-docsis-mac-util', + 'source' => 'vendor/cisco.ios.docsis.xml' + }, + 'CiscoIOS_Docsis::cisco-docsis-upstream-util' => { + 'name' => 'cisco-docsis-upstream-util', + 'source' => 'vendor/cisco.ios.docsis.xml' + }, + 'CiscoIOS_MacAccounting::cisco-macacc-subtree' => { + 'name' => 'cisco-macacc-subtree', + 'source' => 'vendor/cisco.ios.mac-accounting.xml' + }, + 'CiscoIOS_MacAccounting::cisco-macacc' => { + 'name' => 'cisco-macacc', + 'source' => 'vendor/cisco.ios.mac-accounting.xml' + }, + 'CiscoIOS_SAA::cisco-saa-subtree' => { + 'name' => 'cisco-saa-subtree', + 'source' => 'vendor/cisco.ios.xml' + }, + 'CiscoIOS_SAA::cisco-rtt-echo-subtree' => { + 'name' => 'cisco-rtt-echo-subtree', + 'source' => 'vendor/cisco.ios.xml' + }, + 'CiscoFirewall::cisco-firewall-subtree' => { + 'name' => 'cisco-firewall-subtree', + 'source' => 'vendor/cisco.firewall.xml', + }, + 'CiscoFirewall::events' => { + 'name' => 'cisco-firewall-events-delta', + 'source' => 'vendor/cisco.firewall.xml', + }, + 'CiscoFirewall::connections' => { + 'name' => 'cisco-firewall-connections', + 'source' => 'vendor/cisco.firewall.xml', + }, + + 'CiscoSCE::cisco-sce-disk' => { + 'name' => 'cisco-sce-disk', + 'source' => 'vendor/cisco.sce.xml', + }, + 'CiscoSCE::cisco-sce-subscribers' => { + 'name' => 'cisco-sce-subscribers', + 'source' => 'vendor/cisco.sce.xml', + }, + 'CiscoSCE::cisco-sce-tp-subtree' => { + 'name' => 'cisco-sce-tp-subtree', + 'source' => 'vendor/cisco.sce.xml', + }, + 'CiscoSCE::cisco-sce-tp' => { + 'name' => 'cisco-sce-tp', + 'source' => 'vendor/cisco.sce.xml', + }, + 'CiscoSCE::cisco-sce-rdr' => { + 'name' => 'cisco-sce-rdr', + 'source' => 'vendor/cisco.sce.xml', + }, + 'CiscoSCE::cisco-sce-rdr-category' => { + 'name' => 'cisco-sce-rdr-category', + 'source' => 'vendor/cisco.sce.xml', + }, + 'CiscoSCE::cisco-sce-rdr-category-subtree' => { + 'name' => 'cisco-sce-rdr-category-subtree', + 'source' => 'vendor/cisco.sce.xml', + }, + 'CiscoSCE::cisco-sce-queues-subtree' => { + 'name' => 'cisco-sce-queues-subtree', + 'source' => 'vendor/cisco.sce.xml', + }, + 'CiscoSCE::cisco-sce-gc-subtree' => { + 'name' => 'cisco-sce-gc-subtree', + 'source' => 'vendor/cisco.sce.xml', + }, + 'CiscoSCE::cisco-sce-gcounter' => { + 'name' => 'cisco-sce-gcounter', + 'source' => 'vendor/cisco.sce.xml', + }, + + 'CiscoVDSL::cvdsl-subtree' => { + 'name' => 'cvdsl-subtree', + 'source' => 'vendor/cisco.vdsl-line.xml', + }, + 'CiscoVDSL::cvdsl-interface' => { + 'name' => 'cvdsl-interface', + 'source' => 'vendor/cisco.vdsl-line.xml', + }, + + ### Compaq Insite Manager + 'CompaqCIM::cpq-cim-temperature-sensor' => { + 'name' => 'cpq-cim-temperature-sensor', + 'source' => 'vendor/compaq.cim.xml', + }, + 'CompaqCIM::cpq-cim-corr-mem-errs' => { + 'name' => 'cpq-cim-corr-mem-errs', + 'source' => 'vendor/compaq.cim.xml', + }, + + #### Empire Sysedge + 'EmpireSystemedge::sysedge_opmode' => { + 'name' => 'sysedge_opmode', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-memory' => { + 'name' => 'empire-memory', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-swap-counters-nt' => { + 'name' => 'empire-swap-counters-nt', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-swap-counters-nt40Intel' => { + 'name' => 'empire-swap-counters-nt40Intel', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-swap-counters-nt50Intel' => { + 'name' => 'empire-swap-counters-nt50Intel', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-swap-counters-unix' => { + 'name' => 'empire-swap-counters-unix', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-swap-counters-solarisSparc' => { + 'name' => 'empire-swap-counters-solarisSparc', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-swap-counters-aix5RS6000' => { + 'name' => 'empire-swap-counters-aix5RS6000', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-swap-counters-linuxIntel' => { + 'name' => 'empire-swap-counters-linuxIntel', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-performance' => { + 'name' => 'empire-performance', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-device-subtree' => { + 'name' => 'empire-device-subtree', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-device' => { + 'name' => 'empire-device', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-load' => { + 'name' => 'empire-load', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-cpu-subtree' => { + 'name' => 'empire-cpu-subtree', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-cpu-nt' => { + 'name' => 'empire-cpu-nt', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-cpu-nt40Intel' => { + 'name' => 'empire-cpu-nt40Intel', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-cpu-nt50Intel' => { + 'name' => 'empire-cpu-nt50Intel', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-cpu-unix' => { + 'name' => 'empire-cpu-unix', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-cpu-solarisSparc' => { + 'name' => 'empire-cpu-solarisSparc', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-cpu-aix5RS6000' => { + 'name' => 'empire-cpu-aix5RS6000', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-cpu-linuxIntel' => { + 'name' => 'empire-cpu-linuxIntel', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-total-cpu-nt' => { + 'name' => 'empire-total-cpu-nt', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-total-cpu-nt40Intel' => { + 'name' => 'empire-total-cpu-nt40Intel', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-total-cpu-nt50Intel' => { + 'name' => 'empire-total-cpu-nt50Intel', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-total-cpu-unix' => { + 'name' => 'empire-total-cpu-unix', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-total-cpu-solarisSparc' => { + 'name' => 'empire-total-cpu-solarisSparc', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-total-cpu-aix5RS6000' => { + 'name' => 'empire-total-cpu-aix5RS6000', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-total-cpu-linuxIntel' => { + 'name' => 'empire-total-cpu-linuxIntel', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-cpu-raw-unix' => { + 'name' => 'empire-cpu-raw-unix', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-cpu-raw-solarisSparc' => { + 'name' => 'empire-cpu-raw-solarisSparc', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-cpu-raw-aix5RS6000' => { + 'name' => 'empire-cpu-raw-aix5RS6000', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-cpu-raw-linuxIntel' => { + 'name' => 'empire-cpu-raw-linuxIntel', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-cpu-raw-nt' => { + 'name' => 'empire-cpu-raw-nt', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-cpu-raw-nt40Intel' => { + 'name' => 'empire-cpu-raw-nt40Intel', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-cpu-raw-nt50Intel' => { + 'name' => 'empire-cpu-raw-nt50Intel', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-total-cpu-raw-nt' => { + 'name' => 'empire-total-cpu-raw-nt', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-total-cpu-raw-nt40Intel' => { + 'name' => 'empire-total-cpu-raw-nt40Intel', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-total-cpu-raw-nt50Intel' => { + 'name' => 'empire-total-cpu-raw-nt50Intel', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-total-cpu-raw-unix' => { + 'name' => 'empire-total-cpu-raw-unix', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-total-cpu-raw-solarisSparc' => { + 'name' => 'empire-total-cpu-raw-solarisSparc', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-total-cpu-raw-aix5RS6000' => { + 'name' => 'empire-total-cpu-raw-aix5RS6000', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-total-cpu-raw-linuxIntel' => { + 'name' => 'empire-total-cpu-raw-linuxIntel', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-counters-nt' => { + 'name' => 'empire-counters-nt', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-counters-nt40Intel' => { + 'name' => 'empire-counters-nt40Intel', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-counters-nt50Intel' => { + 'name' => 'empire-counters-nt50Intel', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-counters-unix' => { + 'name' => 'empire-counters-unix', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-counters-solarisSparc' => { + 'name' => 'empire-counters-solarisSparc', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-counters-aix5RS6000' => { + 'name' => 'empire-counters-aix5RS6000', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-counters-linuxIntel' => { + 'name' => 'empire-counters-linuxIntel', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-runq' => { + 'name' => 'empire-runq', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-diskwait' => { + 'name' => 'empire-diskwait', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-pagewait' => { + 'name' => 'empire-pagewait', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-swapactive' => { + 'name' => 'empire-swapactive', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-sleepactive' => { + 'name' => 'empire-sleepactive', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-disk-stats-subtree' => { + 'name' => 'empire-disk-stats-subtree', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-disk-stats-unix' => { + 'name' => 'empire-disk-stats-unix', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-disk-stats-solarisSparc' => { + 'name' => 'empire-disk-stats-solarisSparc', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-disk-stats-aix5RS6000' => { + 'name' => 'empire-disk-stats-aix5RS6000', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-disk-stats-linuxIntel' => { + 'name' => 'empire-disk-stats-linuxIntel', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-disk-stats-nt' => { + 'name' => 'empire-disk-stats-nt', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-disk-stats-nt40Intel' => { + 'name' => 'empire-disk-stats-nt40Intel', + 'source' => 'vendor/empire.systemedge.xml', + }, + 'EmpireSystemedge::empire-disk-stats-nt50Intel' => { + 'name' => 'empire-disk-stats-nt50Intel', + 'source' => 'vendor/empire.systemedge.xml', + }, + + #### MicrosoftWindows + 'MicrosoftWindows::microsoft-iis-ftp-stats' => { + 'name' => 'microsoft-iis-ftp-stats', + 'source' => 'vendor/microsoft.windows.xml', + }, + 'MicrosoftWindows::microsoft-iis-http-stats' => { + 'name' => 'microsoft-iis-http-stats', + 'source' => 'vendor/microsoft.windows.xml', + }, + + #### Motorola BSR + 'MotorolaBSR::motorola-bsr-docsis-upstream-util' => { + 'name' => 'motorola-bsr-docsis-upstream-util', + 'source' => 'vendor/motorola.bsr.xml', + }, + + #### F5 BigIp + 'F5BigIp::BigIp_4.x' => { + 'name' => 'BigIp_4.x', + 'source' => 'vendor/f5.bigip.xml', + }, + 'F5BigIp::BigIp_4.x_virtualServer' => { + 'name' => 'BigIp_4.x_virtualServer', + 'source' => 'vendor/f5.bigip.xml', + }, + 'F5BigIp::BigIp_4.x_virtualServer-connrate-overview' => { + 'name' => 'BigIp_4.x_virtualServer-connrate-overview', + 'source' => 'vendor/f5.bigip.xml', + }, + 'F5BigIp::BigIp_4.x_virtualServer-actvconn-overview' => { + 'name' => 'BigIp_4.x_virtualServer-connrate-overview', + 'source' => 'vendor/f5.bigip.xml', + }, + 'F5BigIp::BigIp_4.x_pool-actvconn-overview' => { + 'name' => 'BigIp_4.x_pool-actvconn-overview', + 'source' => 'vendor/f5.bigip.xml', + }, + 'F5BigIp::BigIp_4.x_pool' => { + 'name' => 'BigIp_4.x_pool', + 'source' => 'vendor/f5.bigip.xml', + }, + 'F5BigIp::BigIp_4.x_poolMember-actvconn-overview' => { + 'name' => 'BigIp_4.x_poolMember-actvconn-overview', + 'source' => 'vendor/f5.bigip.xml', + }, + 'F5BigIp::BigIp_4.x_poolMember' => { + 'name' => 'BigIp_4.x_poolMember', + 'source' => 'vendor/f5.bigip.xml', + }, + 'F5BigIp::BigIp_4.x_sslProxy_Global' => { + 'name' => 'BigIp_4.x_sslProxy_Global', + 'source' => 'vendor/f5.bigip.xml', + }, + 'F5BigIp::BigIp_4.x_sslProxy-currconn-overview' => { + 'name' => 'BigIp_4.x_sslProxy-currconn-overview', + 'source' => 'vendor/f5.bigip.xml', + }, + 'F5BigIp::BigIp_4.x_sslProxy' => { + 'name' => 'BigIp_4.x_sslProxy', + 'source' => 'vendor/f5.bigip.xml', + }, + 'F5BigIp::BigIp_3.x' => { + 'name' => 'BigIp_3.x', + 'source' => 'vendor/f5.bigip.xml', + }, + + ##### Foundry/Brocade + 'Foundry::fdry-chass-temperature' => { + 'name' => 'fdry-chass-temperature', + 'source' => 'vendor/foundry.xml', + }, + 'Foundry::fdry-board-overview' => { + 'name' => 'fdry-board-overview', + 'source' => 'vendor/foundry.xml', + }, + 'Foundry::fdry-board-subtree' => { + 'name' => 'fdry-board-subtree', + 'source' => 'vendor/foundry.xml', + }, + 'Foundry::fdry-board-memstats' => { + 'name' => 'fdry-board-memstats', + 'source' => 'vendor/foundry.xml', + }, + 'Foundry::fdry-board-cpustats' => { + 'name' => 'fdry-board-cpustats', + 'source' => 'vendor/foundry.xml', + }, + 'Foundry::fdry-board-tempstats' => { + 'name' => 'fdry-board-tempstats', + 'source' => 'vendor/foundry.xml', + }, + 'Foundry::fdry-board-temp-sensor-halfcelsius' => { + 'name' => 'fdry-board-temp-sensor-halfcelsius', + 'source' => 'vendor/foundry.xml', + }, + + ##### Force10 networks (by Jon Nistor) + 'FTOS::ftos-cpu-subtree' => { + 'name' => 'ftos-cpu-subtree', + 'source' => 'vendor/ftos.xml', + }, + 'FTOS::ftos-cpu' => { + 'name' => 'ftos-cpu', + 'source' => 'vendor/ftos.xml', + }, + 'FTOS::ftos-power-supply-leaf' => { + 'name' => 'ftos-power-supply-leaf', + 'source' => 'vendor/ftos.xml', + }, + 'FTOS::ftos-temperature-subtree' => { + 'name' => 'ftos-temperature-subtree', + 'source' => 'vendor/ftos.xml', + }, + 'FTOS::ftos-temperature-sensor' => { + 'name' => 'ftos-temperature-sensor', + 'source' => 'vendor/ftos.xml', + }, + 'FTOS::ftos-temperature-sensor-fahrenheit' => { + 'name' => 'ftos-temperature-sensor-fahrenheit', + 'source' => 'vendor/ftos.xml', + }, + + #### Jacarta + 'Jacarta::imeter-amps-sensor' => { + 'name' => 'imeter-amps-sensor', + 'source' => 'vendor/jacarta.xml', + }, + 'Jacarta::imeter-humi-sensor' => { + 'name' => 'imeter-humi-sensor', + 'source' => 'vendor/jacarta.xml', + }, + 'Jacarta::imeter-temp-sensor' => { + 'name' => 'imeter-temp-sensor', + 'source' => 'vendor/jacarta.xml', + }, + + ##### Juniper JunOS (by Jon Nistor) + 'JunOS::junos-cos-subtree' => { + 'name' => 'junos-cos-subtree', + 'source' => 'vendor/junos.xml', + }, + 'JunOS::junos-cos-subtree-interface' => { + 'name' => 'junos-cos-subtree-interface', + 'source' => 'vendor/junos.xml', + }, + 'JunOS::junos-cos-leaf' => { + 'name' => 'junos-cos-leaf', + 'source' => 'vendor/junos.xml', + }, + 'JunOS::junos-cos-red' => { + 'name' => 'junos-cos-red', + 'source' => 'vendor/junos.xml', + }, + 'JunOS::junos-cos-tail' => { + 'name' => 'junos-cos-tail', + 'source' => 'vendor/junos.xml', + }, + 'JunOS::junos-cpu-subtree' => { + 'name' => 'junos-cpu-subtree', + 'source' => 'vendor/junos.xml', + }, + 'JunOS::junos-cpu' => { + 'name' => 'junos-cpu', + 'source' => 'vendor/junos.xml', + }, + 'JunOS::junos-firewall-subtree' => { + 'name' => 'junos-firewall-subtree', + 'source' => 'vendor/junos.xml', + }, + 'JunOS::junos-firewall-filter-subtree' => { + 'name' => 'junos-firewall-filter-subtree', + 'source' => 'vendor/junos.xml', + }, + 'JunOS::junos-firewall-filter' => { + 'name' => 'junos-firewall-filter', + 'source' => 'vendor/junos.xml', + }, + 'JunOS::junos-firewall-filter-counter' => { + 'name' => 'junos-firewall-filter-counter', + 'source' => 'vendor/junos.xml', + }, + 'JunOS::junos-firewall-filter-policer' => { + 'name' => 'junos-firewall-filter-policer', + 'source' => 'vendor/junos.xml', + }, + 'JunOS::junos-memory-subtree' => { + 'name' => 'junos-memory-subtree', + 'source' => 'vendor/junos.xml', + }, + 'JunOS::junos-memory' => { + 'name' => 'junos-memory', + 'source' => 'vendor/junos.xml', + }, + 'JunOS::junos-rpf-subtree' => { + 'name' => 'junos-rpf-subtree', + 'source' => 'vendor/junos.xml', + }, + 'JunOS::junos-rpf' => { + 'name' => 'junos-rpf', + 'source' => 'vendor/junos.xml', + }, + 'JunOS::junos-temperature-subtree' => { + 'name' => 'junos-temperature-subtree', + 'source' => 'vendor/junos.xml', + }, + 'JunOS::junos-temperature-sensor' => { + 'name' => 'junos-temperature-sensor', + 'source' => 'vendor/junos.xml', + }, + + + ##### Liebert + 'Liebert::humidity-sensor' => { + 'name' => 'humidity-sensor', + 'source' => 'vendor/liebert.xml', + }, + 'Liebert::humidity-subtree' => { + 'name' => 'humidity-subtree', + 'source' => 'vendor/liebert.xml', + }, + 'Liebert::state-subtree' => { + 'name' => 'state-subtree', + 'source' => 'vendor/liebert.xml', + }, + 'Liebert::state-capacity' => { + 'name' => 'state-capacity', + 'source' => 'vendor/liebert.xml', + }, + 'Liebert::temperature-subtree' => { + 'name' => 'temperature-subtree', + 'source' => 'vendor/liebert.xml', + }, + 'Liebert::temperature-sensor' => { + 'name' => 'temperature-sensor', + 'source' => 'vendor/liebert.xml', + }, + 'Liebert::temperature-sensor-fahrenheit' => { + 'name' => 'temperature-sensor-fahrenheit', + 'source' => 'vendor/liebert.xml', + }, + + + ##### Ucd Snmp + 'UcdSnmp::ucdsnmp-memory-real' => { + 'name' => 'ucdsnmp-memory-real', + 'source' => 'vendor/ucd.ucd-snmp.xml', + }, + 'UcdSnmp::ucdsnmp-memory-swap' => { + 'name' => 'ucdsnmp-memory-swap', + 'source' => 'vendor/ucd.ucd-snmp.xml', + }, + 'UcdSnmp::ucdsnmp-blockio' => { + 'name' => 'ucdsnmp-blockio', + 'source' => 'vendor/ucd.ucd-snmp.xml', + }, + 'UcdSnmp::ucdsnmp-raw-interrupts' => { + 'name' => 'ucdsnmp-raw-interrupts', + 'source' => 'vendor/ucd.ucd-snmp.xml', + }, + 'UcdSnmp::ucdsnmp-cpu-user-multi' => { + 'name' => 'ucdsnmp-cpu-user-multi', + 'source' => 'vendor/ucd.ucd-snmp.xml', + }, + 'UcdSnmp::ucdsnmp-cpu-user' => { + 'name' => 'ucdsnmp-cpu-user', + 'source' => 'vendor/ucd.ucd-snmp.xml', + }, + 'UcdSnmp::ucdsnmp-cpu-system-multi' => { + 'name' => 'ucdsnmp-cpu-system-multi', + 'source' => 'vendor/ucd.ucd-snmp.xml', + }, + 'UcdSnmp::ucdsnmp-cpu-system' => { + 'name' => 'ucdsnmp-cpu-system', + 'source' => 'vendor/ucd.ucd-snmp.xml', + }, + 'UcdSnmp::ucdsnmp-cpu-wait-multi' => { + 'name' => 'ucdsnmp-cpu-wait-multi', + 'source' => 'vendor/ucd.ucd-snmp.xml', + }, + 'UcdSnmp::ucdsnmp-cpu-wait' => { + 'name' => 'ucdsnmp-cpu-wait', + 'source' => 'vendor/ucd.ucd-snmp.xml', + }, + 'UcdSnmp::ucdsnmp-cpu-kernel-multi' => { + 'name' => 'ucdsnmp-cpu-kernel-multi', + 'source' => 'vendor/ucd.ucd-snmp.xml', + }, + 'UcdSnmp::ucdsnmp-cpu-kernel' => { + 'name' => 'ucdsnmp-cpu-kernel', + 'source' => 'vendor/ucd.ucd-snmp.xml', + }, + 'UcdSnmp::ucdsnmp-cpu-idle-multi' => { + 'name' => 'ucdsnmp-cpu-idle-multi', + 'source' => 'vendor/ucd.ucd-snmp.xml', + }, + 'UcdSnmp::ucdsnmp-cpu-idle' => { + 'name' => 'ucdsnmp-cpu-idle', + 'source' => 'vendor/ucd.ucd-snmp.xml', + }, + 'UcdSnmp::ucdsnmp-cpu-nice-multi' => { + 'name' => 'ucdsnmp-cpu-nice-multi', + 'source' => 'vendor/ucd.ucd-snmp.xml', + }, + 'UcdSnmp::ucdsnmp-cpu-nice' => { + 'name' => 'ucdsnmp-cpu-nice', + 'source' => 'vendor/ucd.ucd-snmp.xml', + }, + 'UcdSnmp::ucdsnmp-cpu-interrupts-multi' => { + 'name' => 'ucdsnmp-cpu-interrupts-multi', + 'source' => 'vendor/ucd.ucd-snmp.xml', + }, + 'UcdSnmp::ucdsnmp-cpu-softirq' => { + 'name' => 'ucdsnmp-cpu-softirq', + 'source' => 'vendor/ucd.ucd-snmp.xml', + }, + 'UcdSnmp::ucdsnmp-cpu-softirq-multi' => { + 'name' => 'ucdsnmp-cpu-softirq-multi', + 'source' => 'vendor/ucd.ucd-snmp.xml', + }, + 'UcdSnmp::ucdsnmp-cpu-interrupts' => { + 'name' => 'ucdsnmp-cpu-interrupts', + 'source' => 'vendor/ucd.ucd-snmp.xml', + }, + 'UcdSnmp::ucdsnmp-load-average' => { + 'name' => 'ucdsnmp-load-average', + 'source' => 'vendor/ucd.ucd-snmp.xml', + }, + + #### NetApp (Network Appliance) + 'NetApp::CPU' => { + 'name' => 'netapp-cpu', + 'source' => 'vendor/netapp.filer.xml', + }, + 'NetApp::misc' => { + 'name' => 'netapp-misc', + 'source' => 'vendor/netapp.filer.xml', + }, + 'NetApp::nfsv2' => { + 'name' => 'netapp-nfsv2', + 'source' => 'vendor/netapp.filer.xml', + }, + 'NetApp::nfsv3' => { + 'name' => 'netapp-nfsv3', + 'source' => 'vendor/netapp.filer.xml', + }, + 'NetApp::cifs' => { + 'name' => 'netapp-cifs', + 'source' => 'vendor/netapp.filer.xml', + }, + + #### NetBotz + 'NetBotz::netbotz-temp-sensor' => { + 'name' => 'netbotz-temp-sensor', + 'source' => 'vendor/netbotz.xml', + }, + 'NetBotz::netbotz-humi-sensor' => { + 'name' => 'netbotz-humi-sensor', + 'source' => 'vendor/netbotz.xml', + }, + 'NetBotz::netbotz-dew-sensor' => { + 'name' => 'netbotz-dew-sensor', + 'source' => 'vendor/netbotz.xml', + }, + 'NetBotz::netbotz-audio-sensor' => { + 'name' => 'netbotz-audio-sensor', + 'source' => 'vendor/netbotz.xml', + }, + 'NetBotz::netbotz-air-sensor' => { + 'name' => 'netbotz-air-sensor', + 'source' => 'vendor/netbotz.xml', + }, + 'NetBotz::netbotz-door-sensor' => { + 'name' => 'netbotz-door-sensor', + 'source' => 'vendor/netbotz.xml', + }, + + #### NetScreen + 'NetScreen::netscreen-cpu-stats' => { + 'name' => 'netscreen-cpu-stats', + 'source' => 'vendor/netscreen.xml', + }, + 'NetScreen::netscreen-memory-stats' => { + 'name' => 'netscreen-memory-stats', + 'source' => 'vendor/netscreen.xml', + }, + 'NetScreen::netscreen-sessions-stats' => { + 'name' => 'netscreen-sessions-stats', + 'source' => 'vendor/netscreen.xml', + }, + + #### OracleDatabase + 'OracleDatabase::Sys' => { + 'name' => 'oracle-database-sys', + 'source' => 'vendor/oracle.database.xml', + }, + 'OracleDatabase::CacheSum' => { + 'name' => 'oracle-cache-sum', + 'source' => 'vendor/oracle.database.xml', + }, + 'OracleDatabase::SGA' => { + 'name' => 'oracle-sga', + 'source' => 'vendor/oracle.database.xml', + }, + 'OracleDatabase::table-space' => { + 'name' => 'oracle-table-space', + 'source' => 'vendor/oracle.database.xml', + }, + 'OracleDatabase::data-file' => { + 'name' => 'oracle-data-file', + 'source' => 'vendor/oracle.database.xml', + }, + 'OracleDatabase::library-cache' => { + 'name' => 'oracle-library-cache', + 'source' => 'vendor/oracle.database.xml', + }, + + #### Paradyne + 'Paradyne::paradyne-xdsl-interface' => { + 'name' => 'paradyne-xdsl-interface', + 'source' => 'vendor/paradyne.xdsl.xml' + }, + + #### Symmetricom + 'Symmetricom::ntp-stats' => { + 'name' => 'ntp-stats', + 'source' => 'vendor/symmetricom.xml' + }, + ); + +########################## +# Common parameters + +# If true, data-dir would be hashed across a number of subdirectories +# Only concatenation of hostname and domain name is hashed. +$Torrus::DevDiscover::hashDataDirEnabled = 0; + +# Format for hashed data-dir subdirectory name. The argument is a number +# from 0 to bucketSize-1. +$Torrus::DevDiscover::hashDataDirFormat = '%.2X'; + +# How many hashed data-dir subdirectories are used. +$Torrus::DevDiscover::hashDataDirBucketSize = 256; + + +########################## +# RFC2790_HOST_RESOURCES parameters + +# The top level of the Host Resources Storage graph, percentage +$Torrus::DevDiscover::RFC2790_HOST_RESOURCES::storageGraphTop = 105; + +# Where to draw the hi-mark line in Host Resources Storage, percentage +$Torrus::DevDiscover::RFC2790_HOST_RESOURCES::storageHiMark = 100; + + +########################## +# EmpireSystemedge parameters + +# The top level of the Host Resources Storage graph, percentage +$Torrus::DevDiscover::EmpireSystemedge::storageGraphTop = 105; + +# Where to draw the hi-mark line in Empire Storage, percentage +$Torrus::DevDiscover::EmpireSystemedge::storageHiMark = 100; + + +########################## +# CiscoIOS parameters + +# For mkroutercfg compatibility, set this to 1 +$Torrus::DevDiscover::CiscoIOS::useCiscoInterfaceCounters = 0; + + + +# Read plugin configurations +{ + my $dir = '@plugdevdisccfgdir@'; + opendir(CFGDIR, $dir) or die("Cannot open directory $dir: $!"); + my @files = grep { !/^\./ } readdir(CFGDIR); + closedir( CFGDIR ); + foreach my $file ( @files ) + { + require $dir . '/' . $file; + } +} + + +require '@devdiscover_siteconfig_pl@'; + +1; diff --git a/torrus/configs/devdiscover-siteconfig.pl b/torrus/configs/devdiscover-siteconfig.pl new file mode 100644 index 000000000..421a5a602 --- /dev/null +++ b/torrus/configs/devdiscover-siteconfig.pl @@ -0,0 +1,4 @@ +# Torrus Device Discovery Site config. Put all your site specifics here. + + +1; diff --git a/torrus/configs/email-siteconfig.pl b/torrus/configs/email-siteconfig.pl new file mode 100644 index 000000000..74a82e5a1 --- /dev/null +++ b/torrus/configs/email-siteconfig.pl @@ -0,0 +1,16 @@ +# Torrus Email notifications configuration. Put all your site specifics here. + +# The URL where the user can browse the datasources +$Torrus::Email::url = 'http://localhost/torrus'; + +# Filename within templates directory which will be used +# for e-mail notification +$Torrus::Email::template = 'email-alarm.txt'; + +1; + +# Local Variables: +# mode: perl +# indent-tabs-mode: nil +# perl-indent-level: 4 +# End: diff --git a/torrus/configs/initscript.conf b/torrus/configs/initscript.conf new file mode 100644 index 000000000..775247930 --- /dev/null +++ b/torrus/configs/initscript.conf @@ -0,0 +1,31 @@ +# Torrus init script configuration +# You can override any value in @siteconfdir@/initscript.siteconf + +# If we perform su @torrus_user@ +TORRUS_CHANGE_UID=yes + +# How many times we sleep and wait for processes to finish +TORRUS_KILL_COUNT=9 + +# How much we sleep each time and wait for processes to finish +TORRUS_KILL_SLEEP=10 + +# Command-line options for collector and monitor daemons +TORRUS_CMDOPTS="" + +# When collector and monitor are executed together, +# let the monitor sleep 20 minutes and wait for some data +# to be collected +TORRUS_MONITOR_DELAY="--delay=20" + +# Place for collector commandline options, such as --runalways +TORRUS_COLLECTOR_CMDOPTS="" + + + + +# Local Variables: +# mode: shell-script +# indent-tabs-mode: nil +# perl-indent-level: 4 +# End: diff --git a/torrus/configs/notify-siteconfig.pl b/torrus/configs/notify-siteconfig.pl new file mode 100644 index 000000000..5eaee6faa --- /dev/null +++ b/torrus/configs/notify-siteconfig.pl @@ -0,0 +1,31 @@ + +%Torrus::Notify::programs = + ( + 'mailto' => '$TORRUS_BIN/action_printemail | /usr/bin/mail $ARG1', + 'page' => '/usr/bin/echo $TORRUS_NODEPATH:$TORRUS_MONITOR ' . + '>> /tmp/monitor.$ARG1.log' + ); + +%Torrus::Notify::policies = + ( + 'CUST_A' => { + 'match' => sub { $ENV{'TORRUS_P_notify_policy'} eq 'A' }, + 'severity' => { + '3' => [ 'mailto:aaa@domain.com', + 'mailto:bbb@domain.com' ], + '5' => [ 'page:1234', 'mailto:boss@domain.com' ] } } ); + + + + +# Torrus::Log::setLevel('debug'); + + + +1; + +# Local Variables: +# mode: perl +# indent-tabs-mode: nil +# perl-indent-level: 4 +# End: diff --git a/torrus/configs/snmptrap-siteconfig.pl b/torrus/configs/snmptrap-siteconfig.pl new file mode 100644 index 000000000..27fbb1d11 --- /dev/null +++ b/torrus/configs/snmptrap-siteconfig.pl @@ -0,0 +1,19 @@ +# Torrus SNMP Trap configuration. Put all your site specifics here. + +# Hosts that will receive traps +@Torrus::Snmptrap::hosts = qw( localhost ); + +# SNMP community for trap sending +$Torrus::Snmptrap::community = 'public'; + +# SNMP trap port. +$Torrus::Snmptrap::port = 162; + + +1; + +# Local Variables: +# mode: perl +# indent-tabs-mode: nil +# perl-indent-level: 4 +# End: diff --git a/torrus/configs/torrus-config.pl b/torrus/configs/torrus-config.pl new file mode 100644 index 000000000..b93c5dac9 --- /dev/null +++ b/torrus/configs/torrus-config.pl @@ -0,0 +1,377 @@ +# Copyright (C) 2002 Stanislav Sinyagin +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + +# $Id: torrus-config.pl,v 1.1 2010-12-27 00:04:40 ivan Exp $ +# Stanislav Sinyagin <ssinyagin@yahoo.com> + + +# DO NOT EDIT THIS FILE! + +# Torrus local configuration. +# Put all your local settings into torrus-siteconfig.pl + +use lib(@perllibdirs@); + +$Torrus::Global::version = '@VERSION@'; +$Torrus::Global::cfgDefsDir = '@cfgdefdir@'; +$Torrus::Global::cfgSiteDir = '@siteconfdir@'; +$Torrus::Global::pkgbindir = '@pkgbindir@'; +$Torrus::Global::dbHome = '@dbhome@'; +$Torrus::Global::templateDirs = ['@tmpldir@', '@tmpluserdir@']; +$Torrus::Global::stylingDir = '@styldir@'; +$Torrus::Global::cacheDir = '@cachedir@'; +$Torrus::Global::pidDir = '@piddir@'; +$Torrus::Global::logDir = '@logdir@'; +$Torrus::Global::reportsDir = '@reportsdir@'; +$Torrus::Global::sesStoreDir = '@sesstordir@'; +$Torrus::Global::sesLockDir = '@seslockdir@'; +$Torrus::Global::webPlainDir = '@webplaindir@'; + +@Torrus::Global::xmlDirs = ('@distxmldir@', '@sitexmldir@'); + +$Torrus::Global::threadsEnabled = '@perlithreads@'; + +$Torrus::DB::dbSub = 'sub'; + +# How long we can wait till the configuration is ready, in seconds +$Torrus::Global::ConfigReadyTimeout = 1800; + +# How often we check if the configuration is ready, in seconds +$Torrus::Global::ConfigReadyRetryPeriod = 30; + +# How long the compiler waits till readers finish, in seconds +$Torrus::Global::ConfigReadersWaitTimeout = 180; + +# How often compiler checks for readers to finish +$Torrus::Global::ConfigReadersWaitPeriod = 5; + +# How much the timestamps can differ in one RRD file, in seconds +$Torrus::Global::RRDTimestampTolerance = 15; + +# SO_RCVBUF, the receiving buffer size of the SNMP collector socket. +# Should be large enough to sustain the traffic bursts, and should be +# within limits incurred by local OS and kernel settings. +# Check your system manuals and the results of network statistics. +# +# On Solaris, the maximum buffer size is 256k, and it is configurable +# via "/usr/sbin/ndd /dev/udp udp_max_buf <value>", +# and the statistics are shown in udpInOverflows of "netstat -s -P ip" output. +# +# On FreeBSD, the statistics can be obtained via "netstat -s -p udp". +# The maximum socket buffer can be changed via +# "sysctl kern.ipc.maxsockbuf=<value>", and default is 256k. +# On startup, the OS reads these settings from /etc/sysctl.conf +# +# On Linux (FC2), the default limit is 131071, and it can be changed +# by "sysctl -w net.core.rmem_max=<value>". On startup, the OS reads these +# settings from /etc/sysctl.conf +# +$Torrus::Collector::SNMP::RxBuffer = 131071; + +# The time period after which we give up to reach the host being unreachable +$Torrus::Collector::SNMP::unreachableTimeout = 21600; # 6 hours + +# For unreachable host, we retry SNMP query not earlier than this +$Torrus::Collector::SNMP::unreachableRetryDelay = 600; # 10 min + +# Variables that define the SNMP map refreshing. +# The maps (e.g. ifDescr=>ifIndex mapping) are stored in the collector +# process and are not automatically refreshed after recompiling. +# They refresh only when the SNMP agent is rebooted or at periodic intervals +# defined below. For SNMPv1 agents, periodic refreshing is disabled +# because of performance impact. +# +# Refresh SNMP maps every 5 to 7 hours +$Torrus::Collector::SNMP::mapsRefreshPeriod = 18000; +$Torrus::Collector::SNMP::mapsRefreshRandom = 0.40; + +# After configuration re-compiling, update the maps. +# Do it randomly and spread the load evenly between 0 and 30 minutes. +$Torrus::Collector::SNMP::mapsUpdateInterval = 1800; + + +# Wait 10min between refresh checkups +$Torrus::Collector::SNMP::mapsExpireCheckPeriod = 600; + +# There is a strange bug that with more than 400 sessions per SNMP +# dispatcher some requests are not sent at all +$Torrus::Collector::SNMP::maxSessionsPerDispatcher = 100; + +# When enabled, the collector starts a background thread that +# writes to RRD files +$Torrus::Collector::RRDStorage::useThreads = $Torrus::Global::threadsEnabled; + +# How many unwritten updates are allowed to stay in the queue +$Torrus::Collector::RRDStorage::thrQueueLimit = 1000000; + +# The following errors are caused by changes in the device configurations, +# when the collector tries to store data in a RRD file, but the +# structure of the file is no longer suitable: +# Datasource exists in RRD file, but is not updated +# Datasource being updated does not exist +# Set this variable to true if you want these RRD files automatically moved. +# The current date is appended to the filename, and the file +# is moved to another directory or renamed. +$Torrus::Collector::RRDStorage::moveConflictRRD = 0; + + +# The path where conflicted RRD files would be moved. This directory +# should exist, be writable by Torrus daemon user, and in most OSes +# it must reside in the same filesystem as the original files. +# When undefined, the files are renamed within their original directory. +$Torrus::Collector::RRDStorage::conflictRRDPath = undef; + +# Sleep interval when scheduler initialization failed (i.e. configuration +# reading timeout) +$Torrus::Scheduler::failedInitSleep = 1800; + +# When positive, the scheduler will sleep in small intervals. +# Use this when the system clock is not reliable, like in VmWare +$Torrus::Scheduler::maxSleepTime = 0; + +# Set this to true when the system clock is not reliable, like in VmWare +$Torrus::Scheduler::ignoreClockSkew = 0; + +# Exponential decay parameter (alpha) for Scheduler statistics averages: +# +# Xnew = alpha * Xmes + (1-alpha) * Xprev +# Xnew: new calculated average +# Xmes: measured value +# Xprev: old calculated average +# +# Alpha defines how many previous measurements composite the average: +# alpha = 1.0 - exp( log(1-TotalWeight)/NPoints ) +# TotalWeight: the weight of NPoints measurements +# NPoints: number of measurements +# 0.63 corresponds to TotalWeight=0.95 and NPoints=3 (95% of average is from +# last three datapoints +# +$Torrus::Scheduler::statsExpDecayAlpha = 0.63; + +# Monitor alarms may become orphaned if the configuration changes +# in the middle of an event. Events older than this time are cleaned up +# default: 2 weeks +$Torrus::Monitor::alarmTimeout = 1209600; + +# The default CSS stylesheet and other details for HTML output. +# These settings may optionally be overwritten by the styling profile below. +# Additional CSS overlay may be specified with 'cssoverlay' property, +# It should point to an absolute URL. +# for example: +# $Torrus::Renderer::styling{'default'}{'cssoverlay'} = '/mystyle.css'; +# +%Torrus::Renderer::styling = + ( 'default' => {'stylesheet' => 'torrus.css'}, + 'printer' => {'stylesheet' => 'torrus-printer.css'}, + 'report' => {'stylesheet' => 'torrus-report.css'} + ); + +# Color schema for RRDtool graph. It can be extended by setting +# $Torrus::Renderer::stylingProfileOverlay. The overlay should +# be an absolute file name. You can use $Torrus::Global::cfgSiteDir +# to refer to the site configs path. +$Torrus::Renderer::stylingProfile = 'torrus-schema'; + +# Top level URI +$Torrus::Renderer::rendererURL = '/torrus'; + +# Trailing slash is important! +$Torrus::Renderer::plainURL = '/torrus/plain/'; + +# The small piece of text in the corner of the HTML output. +$Torrus::Renderer::companyName = 'Your company name'; + +# The URL to use for that piece of text +$Torrus::Renderer::companyURL = 'http://torrus.sf.net'; + +# The URL of your company logo which will be displayed instead of +# companyName +# $Torrus::Renderer::companyLogo = 'http://domain.com/logo.png'; + +# Another piece of text on the right to the company name +$Torrus::Renderer::siteInfo = undef; + +# URL to be shown on the login page for lost password +# You have to implement that yourself +# $Torrus::Renderer::lostPasswordURL = 'http://domain.com/lostpw.cgi'; + +# The time format to print in HTML +$Torrus::Renderer::timeFormat = '%d-%m-%Y %H:%M'; + +# Exception characters for URI::Escape +# By default, slash (/) is escaped, and we don't really want it +$Torrus::Renderer::uriEscapeExceptions = '^A-Za-z0-9-._~/:'; + +# The page that lets you choose the tree from the list +$Torrus::Renderer::Chooser::mimeType = 'text/html; charset=UTF-8'; +$Torrus::Renderer::Chooser::expires = '300'; +$Torrus::Renderer::Chooser::template = 'default-chooser.html'; +$Torrus::Renderer::Chooser::searchTemplate = 'globalsearch.html'; + +# We clean the renderer cache at least once a day +$Torrus::Renderer::cacheMaxAge = 86400; + +# Some RRDtool versions may report errors on decorations +$Torrus::Renderer::ignoreDecorations = 0; + +# This enables full Apache handler debugging +$Torrus::Renderer::globalDebug = 0; + +# When true, Holt-Winters boundaries and failures are described in the +# graph legend +$Torrus::Renderer::hwGraphLegend = 0; + +# When true, users may view service usage reports (requires SQL connection) +$Torrus::Renderer::displayReports = 0; + +# Allow tree searching. The search DB should be built with buildsearchdb +$Torrus::Renderer::searchEnabled = 1; + +# Allow global searching across the trees. If the user authentication +# is enabled, the user should have rights DisplayTree and GlobalSearch for '*' +$Torrus::Renderer::globalSearchEnabled = 1; + + +# Modules that Collector will use for collecting and storing data. +@Torrus::Collector::loadModules = + ( 'Torrus::Collector::SNMP', + 'Torrus::Collector::CDef', + 'Torrus::Collector::RRDStorage' ); + +# Configurable part of Validator +@Torrus::Validator::loadLeafValidators = + ( 'Torrus::Collector::SNMP_Params', + 'Torrus::Collector::CDef_Params' ); + +# Configurable part of AdmInfo renderer +@Torrus::Renderer::loadAdmInfo = + ( 'Torrus::Collector::SNMP_Params', + 'Torrus::Collector::CDef_Params' ); + +# Parameters that are comma-separated values +@Torrus::ConfigTree::XMLCompiler::listparams = (); + +# XML files to be compiled first for every tree +@Torrus::Global::xmlAlwaysIncludeFirst = (); + +# XML files to be compiled after the tree files, but before the files +# included with <include> XML directive +@Torrus::Global::xmlAlwaysIncludeLast = (); + +# Do we need Web user authentication/authorization ? +$Torrus::CGI::authorizeUsers = 1; + +# User authentication method may be changed locally +$Torrus::ACL::userAuthModule = 'Torrus::ACL::AuthLocalMD5'; + +# Minimum allowed password length +$Torrus::ACL::minPasswordLength = 6; + +# The login page +$Torrus::Renderer::LoginScreen::mimeType = 'text/html; charset=UTF-8'; +$Torrus::Renderer::LoginScreen::template = 'default-login.html'; + +#### +#### SQL connections configuration +# For a given Perl class and an optional subtype, +# the connection attributes are derived in the following order: +# 'Default', 'Default/[subtype]', '[Class]', '[Class]/[subtype]', +# 'All/[subtype]'. +# For a simple setup, the default attributes are usually defined for +# 'Default' key. +# The key attributes are: 'dsn', 'username', and 'password'. +%Torrus::SQL::connections = + ('Default' => {'dsn' => 'DBI:mysql:database=torrus;host=localhost', + 'username' => 'torrus', + 'password' => 'torrus'} + ); + +#### +#### ExternalStorage collector module initialization. +# In order to enable External storage, add these lines to torrus-siteconfig.pl: +# push(@Torrus::Collector::loadModules, 'Torrus::Collector::ExternalStorage'); +# + +# Other configuration available: + +# Maximum age for backlog in case of unavailable storage. +# We stop recording new data when maxage is reached. Default: 24h +$Torrus::Collector::ExternalStorage::backlogMaxAge = 86400; + +# How often we retry to contact an unreachable external storage. Default: 10min +$Torrus::Collector::ExternalStorage::unavailableRetry = 600; + +# Backend engine for External storage +$Torrus::Collector::ExternalStorage::backend = 'Torrus::Collector::ExtDBI'; + +# SQL table configuration for collector's external storage +$Torrus::SQL::SrvExport::tableName = 'srvexport'; +%Torrus::SQL::SrvExport::columns = + ('srv_date' => 'srv_date', + 'srv_time' => 'srv_time', + 'serviceid' => 'serviceid', + 'value' => 'value', + 'intvl' => 'intvl'); + +# Optional SQL connection subtype for Collector export +# $Torrus::Collector::ExtDBI::subtype + + +# SQL table configuration for Reports +$Torrus::SQL::Reports::tableName = 'reports'; +%Torrus::SQL::Reports::columns = + ('id' => 'id', + 'rep_date' => 'rep_date', + 'rep_time' => 'rep_time', + 'reportname' => 'reportname', + 'iscomplete' => 'iscomplete'); + +$Torrus::SQL::ReportFields::tableName = 'reportfields'; +%Torrus::SQL::ReportFields::columns = + ('id' => 'id', + 'rep_id' => 'rep_id', + 'name' => 'name', + 'serviceid' => 'serviceid', + 'value' => 'value', + 'units' => 'units'); + +%Torrus::ReportGenerator::modules = + ( 'MonthlyUsage' => 'Torrus::ReportGenerator::MonthlySrvUsage' ); + + +%Torrus::ReportOutput::HTML::templates = + ( 'index' => 'report-index.html', + 'serviceid' => 'report-serviceid.html', + 'monthly' => 'report-monthly.html', + 'yearly' => 'report-yearly.html'); + +# Read plugin configurations +{ + my $dir = '@plugtorruscfgdir@'; + opendir(CFGDIR, $dir) or die("Cannot open directory $dir: $!"); + my @files = grep { !/^\./ } readdir(CFGDIR); + closedir( CFGDIR ); + foreach my $file ( @files ) + { + require $dir . '/' . $file; + } +} + + + +require '@torrus_siteconfig_pl@'; + +1; diff --git a/torrus/configs/torrus-siteconfig.pl b/torrus/configs/torrus-siteconfig.pl new file mode 100644 index 000000000..ed51c1730 --- /dev/null +++ b/torrus/configs/torrus-siteconfig.pl @@ -0,0 +1,21 @@ +# Torrus Site config. Put all your site specifics here. +# You need to stop and start Apache server every time you change this file. + +@Torrus::Global::xmlAlwaysIncludeFirst = ( 'defaults.xml', 'site-global.xml' ); + +%Torrus::Global::treeConfig = + ( + 'main' => { + 'description' => 'The main tree', + 'info' => 'some tree', + 'xmlfiles' => [qw(routers.xml)], + 'run' => { 'collector' => 1, 'monitor' => 0 } } + ); + +# Customizable look in the HTML page top +# $Torrus::Renderer::companyName = 'Your company name'; +# $Torrus::Renderer::companyURL = 'http://torrus.sf.net'; +# $Torrus::Renderer::siteInfo = `hostname`; + + +1; diff --git a/torrus/configs/webmux.pl b/torrus/configs/webmux.pl new file mode 100644 index 000000000..cfda1cd85 --- /dev/null +++ b/torrus/configs/webmux.pl @@ -0,0 +1,38 @@ +# Copyright (C) 2002 Stanislav Sinyagin +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + +# $Id: webmux.pl,v 1.1 2010-12-27 00:04:41 ivan Exp $ +# Stanislav Sinyagin <ssinyagin@yahoo.com> + +# Apache mod_perl initialisation + +BEGIN { require '@torrus_config_pl@'; } + +use Torrus::DB; +use Torrus::ApacheHandler; + +if( $Torrus::Renderer::globalDebug ) +{ + &Torrus::Log::setLevel('debug'); +} + +Apache->server->register_cleanup( sub { + my $r = shift; + Torrus::DB::cleanupEnvironment(); +}); + + +1; diff --git a/torrus/configs/webmux2.pl b/torrus/configs/webmux2.pl new file mode 100644 index 000000000..55f2baece --- /dev/null +++ b/torrus/configs/webmux2.pl @@ -0,0 +1,74 @@ +# Copyright (C) 2002 Stanislav Sinyagin +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + +# $Id: webmux2.pl,v 1.1 2010-12-27 00:04:42 ivan Exp $ +# Stanislav Sinyagin <ssinyagin@yahoo.com> + +# Apache mod_perl initialisation + +BEGIN { require '@torrus_config_pl@'; } + +use Apache2::ServerUtil; +use mod_perl2; + +use Torrus::Log; +use Torrus::DB; + +# Probably we need MPM-specific Code here +# http://perl.apache.org/docs/2.0/user/coding/coding.html + +# Tested with prefork MPM only. +# Threaded MPMs will not work because RRDtool is RRDs.pm is not +# currently thread safe + + +sub child_exit_handler +{ + my( $child_pool, $s ) = @_; + Debug('Torrus child exit handler executed'); + Torrus::DB::cleanupEnvironment(); +} + + +if( $Torrus::Renderer::globalDebug ) +{ + &Torrus::Log::setLevel('debug'); +} + +my $ok = 1; +my $s = Apache2::ServerUtil->server(); + +# Apache::Server::is_perl_option_enabled is implemented since +# mod_perl2-1.99r13, but many installations still use mod_perl2-1.99r12 +if( $mod_perl::VERSION > 1.9912 and + not $s->is_perl_option_enabled('ChildExit') ) +{ + $ok = 0; + $s->log_error('ChildExit must be enabled for proper cleanup'); +} +else +{ + $s->push_handlers( 'ChildExit' => \&child_exit_handler ); +} + + +$ok; + +# Local Variables: +# mode: perl +# indent-tabs-mode: nil +# perl-indent-level: 4 +# End: |