diff options
-rw-r--r-- | net-mgmt/Makefile | 1 | ||||
-rw-r--r-- | net-mgmt/torrus/Makefile | 100 | ||||
-rw-r--r-- | net-mgmt/torrus/distinfo | 2 | ||||
-rw-r--r-- | net-mgmt/torrus/files/patch-configs_Makefile.in | 13 | ||||
-rw-r--r-- | net-mgmt/torrus/files/patch-xmlconfig_Makefile.in | 15 | ||||
-rw-r--r-- | net-mgmt/torrus/pkg-descr | 26 | ||||
-rw-r--r-- | net-mgmt/torrus/pkg-plist | 245 |
7 files changed, 402 insertions, 0 deletions
diff --git a/net-mgmt/Makefile b/net-mgmt/Makefile index fc47550..37e5d93 100644 --- a/net-mgmt/Makefile +++ b/net-mgmt/Makefile @@ -167,6 +167,7 @@ SUBDIR += tas SUBDIR += tcpreplay SUBDIR += tcptrack + SUBDIR += torrus SUBDIR += trafd SUBDIR += whatmask SUBDIR += wide-dhcp diff --git a/net-mgmt/torrus/Makefile b/net-mgmt/torrus/Makefile new file mode 100644 index 0000000..8ac0fcf --- /dev/null +++ b/net-mgmt/torrus/Makefile @@ -0,0 +1,100 @@ +# New ports collection makefile for: torrus +# Date created: July 13th, 2005 +# Whom: Corey Smith <corsmith@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= torrus +PORTVERSION= 1.0.3 +CATEGORIES= net-mgmt +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} + +MAINTAINER= corsmith@gmail.com +COMMENT= The Data Series Processing Framework - think mrtg with xml configs + +BUILD_DEPENDS= ${SITE_PERL}/RRDp.pm:${PORTSDIR}/net/rrdtool \ + ${SITE_PERL}/${PERL_ARCH}/XML/LibXML.pm:${PORTSDIR}/textproc/p5-XML-LibXML \ + ${SITE_PERL}/${PERL_ARCH}/BerkeleyDB.pm:${PORTSDIR}/databases/p5-BerkeleyDB \ + ${SITE_PERL}/${PERL_ARCH}/Template.pm:${PORTSDIR}/www/p5-Template-Toolkit \ + ${SITE_PERL}/Proc/Daemon.pm:${PORTSDIR}/devel/p5-Proc-Daemon \ + ${SITE_PERL}/Net/SNMP.pm:${PORTSDIR}/net-mgmt/p5-Net-SNMP \ + ${SITE_PERL}/URI.pm:${PORTSDIR}/net/p5-URI \ + ${SITE_PERL}/Date/Parse.pm:${PORTSDIR}/devel/p5-TimeDate \ + ${SITE_PERL}/Apache/Session.pm:${PORTSDIR}/www/p5-Apache-Session +LIB_DEPENDS= xml2:${PORTSDIR}/textproc/libxml2 \ + db-4.3.0:${PORTSDIR}/databases/db43 + +.if !defined(WITH_MOD_PERL) +.if defined(WITH_APACHE2) +WITH_MOD_PERL= 2 +.else +WITH_MOD_PERL= 1 +.endif +.endif +.if ${WITH_MOD_PERL} == 1 +PKGNAMESUFFIX= -mod_perl +RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/mod_perl.pm:${PORTSDIR}/www/mod_perl +.elif ${WITH_MOD_PERL} == 2 +PKGNAMESUFFIX= -mod_perl2 +RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/mod_perl2.pm:${PORTSDIR}/www/mod_perl2 \ + ${SITE_PERL}/${PERL_ARCH}/APR/Request.pm:${PORTSDIR}/www/p5-libapreq2 +.endif + +USE_PERL5_RUN= YES +GNU_CONFIGURE= YES + +TORRUS_USER?= torrus +TORRUS_RRDDIR?= var/torrus/collector_rrd + +CONFIGURE_ARGS= --prefix=${PREFIX} \ + var_user=${TORRUS_USER} var_group=${TORRUS_USER} \ + varprefix=${PREFIX}/var/torrus torrus_user=${TORRUS_USER} \ + defrrddir=${PREFIX}/${TORRUS_RRDDIR} \ + --enable-pkgonly + +MAN1= torrus.1 torrus_acledit.1 torrus_cleanup.1 torrus_clearcache.1 \ + torrus_collector.1 torrus_compilexml.1 torrus_configinfo.1 \ + torrus_configsnapshot.1 torrus_devdiscover.1 torrus_genddx.1 \ + torrus_genlist.1 torrus_monitor.1 torrus_schedulerinfo.1 \ + torrus_ttproclist.1 torrus_rrddir2xml.1 + +MAN7= torrus_action_printemail.7 torrus_action_snmptrap.7 + +.include <bsd.port.pre.mk> + +.if ${PERL_LEVEL} < 500801 +IGNORE= Port requires perl 5.8.1 or later. Install lang/perl5.8 then try again +.endif + +pre-fetch: + @${ECHO_CMD} PREFIX = ${PREFIX} + @${ECHO_CMD} + @${ECHO_CMD} "This port supports either mod_perl 1 or mod_perl 2" + @${ECHO_CMD} + @${ECHO_CMD} " WITH_MOD_PERL=1 Enables mod_perl 1.x support (DEFAULT)" + @${ECHO_CMD} " WITH_MOD_PERL=2 Enables mod_perl 2.x support" + @${ECHO_CMD} +.if ${WITH_MOD_PERL} == 1 + @${ECHO_CMD} "Enabling mod_perl 1.x support." +.elif ${WITH_MOD_PERL} == 2 + @${ECHO_CMD} "Enabling mod_perl 2.x support." +.endif + @${ECHO_CMD} + +pre-install: + @if ! pw groupshow ${TORRUS_USER}; then \ + pw groupadd ${TORRUS_USER}; \ + fi + @if ! pw usershow ${TORRUS_USER}; then \ + pw useradd ${TORRUS_USER} -g ${TORRUS_USER} \ + -h - -d ${PREFIX}/torrus -c "torrus daemon"; \ + pw usermod ${TORRUS_USER} -G www; \ + fi + +post-install: + ${INSTALL_SCRIPT} ${WRKSRC}/init.d/torrus ${PREFIX}/etc/rc.d/torrus.sh + @${MKDIR} ${PREFIX}/${TORRUS_RRDDIR} + +.include <bsd.port.post.mk> diff --git a/net-mgmt/torrus/distinfo b/net-mgmt/torrus/distinfo new file mode 100644 index 0000000..c5b5bf3 --- /dev/null +++ b/net-mgmt/torrus/distinfo @@ -0,0 +1,2 @@ +MD5 (torrus-1.0.3.tar.gz) = 2d3a12e7fb6d0a9a651dd87f514a8a09 +SIZE (torrus-1.0.3.tar.gz) = 428270 diff --git a/net-mgmt/torrus/files/patch-configs_Makefile.in b/net-mgmt/torrus/files/patch-configs_Makefile.in new file mode 100644 index 0000000..26ff702 --- /dev/null +++ b/net-mgmt/torrus/files/patch-configs_Makefile.in @@ -0,0 +1,13 @@ +--- configs/Makefile.in.orig Tue Jul 19 15:21:59 2005 ++++ configs/Makefile.in Tue Jul 19 15:22:37 2005 +@@ -385,9 +385,7 @@ + done + for f in devdiscover-siteconfig.pl email-siteconfig.pl \ + snmptrap-siteconfig.pl torrus-siteconfig.pl; do \ +- if test ! -r $(DESTDIR)$(siteconfdir)/$$f; then \ +- $(INSTALL_DATA) $$f $(DESTDIR)$(siteconfdir)/$$f; \ +- fi \ ++ $(INSTALL_DATA) $$f $(DESTDIR)$(siteconfdir)/$$f.sample; \ + 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. diff --git a/net-mgmt/torrus/files/patch-xmlconfig_Makefile.in b/net-mgmt/torrus/files/patch-xmlconfig_Makefile.in new file mode 100644 index 0000000..7c8b6fd --- /dev/null +++ b/net-mgmt/torrus/files/patch-xmlconfig_Makefile.in @@ -0,0 +1,15 @@ +--- xmlconfig/Makefile.in.orig Tue Jul 19 15:25:15 2005 ++++ xmlconfig/Makefile.in Tue Jul 19 15:25:41 2005 +@@ -511,10 +511,8 @@ + + install-data-local: + $(mkinstalldirs) $(DESTDIR)$(sitexmldir) +- if test ! -r $(DESTDIR)$(sitexmldir)/site-global.xml; then \ +- $(INSTALL_DATA) site-global.xml \ +- $(DESTDIR)$(sitexmldir)/site-global.xml; \ +- fi ++ $(INSTALL_DATA) site-global.xml \ ++ $(DESTDIR)$(sitexmldir)/site-global.xml.sample; + # 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/net-mgmt/torrus/pkg-descr b/net-mgmt/torrus/pkg-descr new file mode 100644 index 0000000..cdc8659 --- /dev/null +++ b/net-mgmt/torrus/pkg-descr @@ -0,0 +1,26 @@ +Torrus is designed to be the universal data series processing framework. +Although most users deploy Torrus for SNMP monitoring, it might be useful for +data series of any nature. Tobi Oetiker's RRDtool is used for data storage. + + * Configuration compiler and validator. It processes the XML configuration + files and saves the configuration into a database. + * View renderer and the web interface. They generate HTML and the graphical + representation of the datasources and provide user authentication and + authorization. All generated output is controlled by the configuration + parameters and templates. The users can easily create their own + presentation of data series. + * SNMP Collector. Modular collector core architecture allows further + extension with new collector and storage types. Any datasource can have + its own polling schedule. + * SNMP Device Discovery Tool. Devdiscover is a new, modular, flexible, and + expandable tool for automatic generation of Torrus configuration files. + New device types and MIBs are easily added as independent Perl modules. + * Threshold monitor. All data, regardless of their type and nature, can be + monitored according to the user-defined rules. The rules can also include + the datasource-specific parameters, e.g. boundary values etc. The + thresholds are specified by RPN expressions. + +WWW: http://torrus.org + +- Corey Smith +corsmith@gmail.com diff --git a/net-mgmt/torrus/pkg-plist b/net-mgmt/torrus/pkg-plist new file mode 100644 index 0000000..bd1d487 --- /dev/null +++ b/net-mgmt/torrus/pkg-plist @@ -0,0 +1,245 @@ +bin/torrus +etc/rc.d/torrus.sh +etc/torrus/conf/devdiscover-siteconfig.pl.sample +etc/torrus/conf/email-siteconfig.pl.sample +etc/torrus/conf/snmptrap-siteconfig.pl.sample +etc/torrus/conf/torrus-siteconfig.pl.sample +etc/torrus/discovery/README +etc/torrus/xmlconfig/site-global.xml.sample +torrus/bin/acledit +torrus/bin/action_printemail +torrus/bin/action_snmptrap +torrus/bin/action_snmpv1trap +torrus/bin/cleanup +torrus/bin/clearcache +torrus/bin/collector +torrus/bin/compilexml +torrus/bin/configinfo +torrus/bin/configsnapshot +torrus/bin/devdiscover +torrus/bin/genddx +torrus/bin/genlist +torrus/bin/install_plugin +torrus/bin/monitor +torrus/bin/rrddir2xml +torrus/bin/schedulerinfo +torrus/bin/ttproclist +torrus/conf_defaults/devdiscover-config.pl +torrus/conf_defaults/initscript.conf +torrus/conf_defaults/instvars +torrus/conf_defaults/torrus-config.pl +torrus/conf_defaults/webmux.pl +torrus/conf_defaults/webmux2.pl +torrus/doc/devdoc/architecture.pod +torrus/doc/devdoc/devdiscover.pod +torrus/doc/devdoc/progstyle.pod +torrus/doc/devdoc/reqs.0.0.pod +torrus/doc/devdoc/reqs.0.1.pod +torrus/doc/devdoc/torrus_roadmap.pod +torrus/doc/devdoc/wd.distributed.pod +torrus/doc/devdoc/wd.messaging.pod +torrus/doc/devdoc/wd.monitor-escalation.pod +torrus/doc/devdoc/wd.uptime-mon.pod +torrus/doc/install.txt +torrus/doc/rpnexpr.txt +torrus/doc/rrfw_torrus_migration.txt +torrus/doc/scalability.txt +torrus/doc/snmpdiscovery.txt +torrus/doc/stylingprofile.txt +torrus/doc/userguide.txt +torrus/doc/vendorsupport.txt +torrus/doc/webintf.txt +torrus/doc/xmlconfig.txt +torrus/examples/README +torrus/examples/onms.tmpl +torrus/examples/onmsInterfaces.sh +torrus/examples/setmonitor.xupdate.xml +torrus/examples/torrus-siteconfig.powerbook.pl +torrus/perllib/Torrus/ACL.pm +torrus/perllib/Torrus/ACL/AuthLocalMD5.pm +torrus/perllib/Torrus/ACL/Edit.pm +torrus/perllib/Torrus/ACL/Export.pm +torrus/perllib/Torrus/ACL/Import.pm +torrus/perllib/Torrus/Apache2Handler.pm +torrus/perllib/Torrus/ApacheHandler.pm +torrus/perllib/Torrus/Collector.pm +torrus/perllib/Torrus/Collector/RRDStorage.pm +torrus/perllib/Torrus/Collector/SNMP.pm +torrus/perllib/Torrus/Collector/SNMP_Params.pm +torrus/perllib/Torrus/ConfigBuilder.pm +torrus/perllib/Torrus/ConfigTree.pm +torrus/perllib/Torrus/ConfigTree/Validator.pm +torrus/perllib/Torrus/ConfigTree/Writer.pm +torrus/perllib/Torrus/ConfigTree/XMLCompiler.pm +torrus/perllib/Torrus/DB.pm +torrus/perllib/Torrus/DataAccess.pm +torrus/perllib/Torrus/DevDiscover.pm +torrus/perllib/Torrus/DevDiscover/ATMEL.pm +torrus/perllib/Torrus/DevDiscover/AscendMax.pm +torrus/perllib/Torrus/DevDiscover/AxxessIT.pm +torrus/perllib/Torrus/DevDiscover/BetterNetworks.pm +torrus/perllib/Torrus/DevDiscover/CiscoCatOS.pm +torrus/perllib/Torrus/DevDiscover/CiscoFirewall.pm +torrus/perllib/Torrus/DevDiscover/CiscoGeneric.pm +torrus/perllib/Torrus/DevDiscover/CiscoIOS.pm +torrus/perllib/Torrus/DevDiscover/CiscoIOS_Docsis.pm +torrus/perllib/Torrus/DevDiscover/CiscoIOS_MacAccounting.pm +torrus/perllib/Torrus/DevDiscover/CiscoIOS_SAA.pm +torrus/perllib/Torrus/DevDiscover/CompaqCIM.pm +torrus/perllib/Torrus/DevDiscover/EmpireSystemedge.pm +torrus/perllib/Torrus/DevDiscover/F5BigIp.pm +torrus/perllib/Torrus/DevDiscover/MicrosoftWindows.pm +torrus/perllib/Torrus/DevDiscover/NetApp.pm +torrus/perllib/Torrus/DevDiscover/NetScreen.pm +torrus/perllib/Torrus/DevDiscover/OracleDatabase.pm +torrus/perllib/Torrus/DevDiscover/Paradyne.pm +torrus/perllib/Torrus/DevDiscover/RFC1657_BGP4_MIB.pm +torrus/perllib/Torrus/DevDiscover/RFC1697_RDBMS.pm +torrus/perllib/Torrus/DevDiscover/RFC2011_IP_MIB.pm +torrus/perllib/Torrus/DevDiscover/RFC2662_ADSL_LINE.pm +torrus/perllib/Torrus/DevDiscover/RFC2670_DOCS_IF.pm +torrus/perllib/Torrus/DevDiscover/RFC2737_ENTITY_MIB.pm +torrus/perllib/Torrus/DevDiscover/RFC2790_HOST_RESOURCES.pm +torrus/perllib/Torrus/DevDiscover/RFC2863_IF_MIB.pm +torrus/perllib/Torrus/DevDiscover/UcdSnmp.pm +torrus/perllib/Torrus/DevDiscover/Xylan.pm +torrus/perllib/Torrus/Log.pm +torrus/perllib/Torrus/Monitor.pm +torrus/perllib/Torrus/RPN.pm +torrus/perllib/Torrus/Renderer.pm +torrus/perllib/Torrus/Renderer/AdmInfo.pm +torrus/perllib/Torrus/Renderer/Frontpage.pm +torrus/perllib/Torrus/Renderer/HTML.pm +torrus/perllib/Torrus/Renderer/RRDtool.pm +torrus/perllib/Torrus/Scheduler.pm +torrus/perllib/Torrus/SchedulerInfo.pm +torrus/perllib/Torrus/SiteConfig.pm +torrus/perllib/Torrus/TimeStamp.pm +torrus/scripts/rrdup_notify.sh +torrus/scripts/xml/extract-skeleton.xsl +torrus/sup/dtd/snmp-discovery.dtd +torrus/sup/dtd/torrus-config.dtd +torrus/sup/mibs/RRDTOOL-SMI.txt +torrus/sup/mibs/TORRUS-MIB.txt +torrus/sup/styling/colornames.pl +torrus/sup/styling/rainbow-schema.pl +torrus/sup/styling/torrus-schema.pl +torrus/sup/webplain/explain-rrdgraph.html +torrus/sup/webplain/torrus-printer.css +torrus/sup/webplain/torrus.css +torrus/templates/aclexport.xml +torrus/templates/adminfo.html +torrus/templates/default-chooser.html +torrus/templates/default-dir.html +torrus/templates/default-helptext.html +torrus/templates/default-login.html +torrus/templates/default-recursivedir.html +torrus/templates/default-rrd.html +torrus/templates/default-tset.html +torrus/templates/email-alarm.txt +torrus/templates/expanded-dir.html +torrus/templates/html-incblocks.txt +torrus/templates/overview-subleaves.html +torrus/templates/tset-list.html +torrus/xmlconfig/defaults.xml +torrus/xmlconfig/examples/apc-ups.xml +torrus/xmlconfig/examples/ascend.max.xml +torrus/xmlconfig/examples/docsis-monitors.xml +torrus/xmlconfig/examples/flowscan.xml +torrus/xmlconfig/examples/generic-netsnmp.xml +torrus/xmlconfig/examples/hpux.xml +torrus/xmlconfig/examples/monitors.xml +torrus/xmlconfig/examples/multigraph.xml +torrus/xmlconfig/examples/rainbow-schema.xml +torrus/xmlconfig/examples/servers.data +torrus/xmlconfig/examples/servers.tmpl +torrus/xmlconfig/generic/collector-periods.xml +torrus/xmlconfig/generic/monitors.xml +torrus/xmlconfig/generic/rfc2662.adsl-line.xml +torrus/xmlconfig/generic/rfc2670.docsis-if.xml +torrus/xmlconfig/generic/rfc2790.host-resources.xml +torrus/xmlconfig/generic/rfc2863.if-mib.xml +torrus/xmlconfig/old/cisco-mac-accounting-example.xml +torrus/xmlconfig/old/cisco.generic.old-0.1.4.xml +torrus/xmlconfig/old/cisco.ios.mac-accounting-0.1.8.xml +torrus/xmlconfig/old/rfc1213.xml +torrus/xmlconfig/old/rfc2670.docsis-if.old.0.1.5d-20040224.xml +torrus/xmlconfig/old/rfc2863.if-mib.old-0.1.4.xml +torrus/xmlconfig/old/rfc2863.if-mib.old-0.1.7.xml +torrus/xmlconfig/old/snmp-defs.old-0.1.2.xml +torrus/xmlconfig/snmp-defs.xml +torrus/xmlconfig/vendor/apc.ups.xml +torrus/xmlconfig/vendor/ascend.max.xml +torrus/xmlconfig/vendor/atmel.xml +torrus/xmlconfig/vendor/betternetworks.xml +torrus/xmlconfig/vendor/cisco.firewall.xml +torrus/xmlconfig/vendor/cisco.generic.xml +torrus/xmlconfig/vendor/cisco.ios.docsis.xml +torrus/xmlconfig/vendor/cisco.ios.mac-accounting.xml +torrus/xmlconfig/vendor/cisco.ios.xml +torrus/xmlconfig/vendor/compaq.cim.xml +torrus/xmlconfig/vendor/empire.systemedge.ntregperf.xml +torrus/xmlconfig/vendor/empire.systemedge.xml +torrus/xmlconfig/vendor/f5.bigip.xml +torrus/xmlconfig/vendor/hp.hpux.xml +torrus/xmlconfig/vendor/microsoft.windows.xml +torrus/xmlconfig/vendor/netapp.filer.xml +torrus/xmlconfig/vendor/netscreen.xml +torrus/xmlconfig/vendor/paradyne.xdsl.xml +torrus/xmlconfig/vendor/smokeping.xml +torrus/xmlconfig/vendor/ucd.ucd-snmp.xml +@exec mkdir %D/var/torrus 2>/dev/null || true +@exec mkdir %D/var/torrus/cache 2>/dev/null || true +@exec mkdir %D/var/torrus/db 2>/dev/null || true +@exec mkdir %D/var/torrus/session_data 2>/dev/null || true +@exec mkdir %D/var/torrus/session_data/lock 2>/dev/null || true +@exec mkdir %D/var/torrus/session_data/store 2>/dev/null || true +@exec mkdir %D/etc/torrus/templates 2>/dev/null || true +@exec mkdir %D/torrus/plugins 2>/dev/null || true +@exec mkdir %D/torrus/plugins/devdiscover-config 2>/dev/null || true +@exec mkdir %D/torrus/plugins/torrus-config 2>/dev/null || true +@exec mkdir %D/torrus/plugins/wrapper 2>/dev/null || true +@exec mkdir %D/torrus/sup/webscripts 2>/dev/null || true +@dirrm var/torrus/session_data/store +@dirrm var/torrus/session_data/lock +@dirrm var/torrus/session_data +@dirrm var/torrus/db +@dirrm var/torrus/collector_rrd +@dirrm var/torrus/cache +@dirrm var/torrus +@dirrm torrus/xmlconfig/vendor +@dirrm torrus/xmlconfig/old +@dirrm torrus/xmlconfig/generic +@dirrm torrus/xmlconfig/examples +@dirrm torrus/xmlconfig +@dirrm torrus/templates +@dirrm torrus/sup/webscripts +@dirrm torrus/sup/webplain +@dirrm torrus/sup/styling +@dirrm torrus/sup/mibs +@dirrm torrus/sup/dtd +@dirrm torrus/sup +@dirrm torrus/scripts/xml +@dirrm torrus/scripts +@dirrm torrus/plugins/wrapper +@dirrm torrus/plugins/torrus-config +@dirrm torrus/plugins/devdiscover-config +@dirrm torrus/plugins +@dirrm torrus/perllib/Torrus/Renderer +@dirrm torrus/perllib/Torrus/DevDiscover +@dirrm torrus/perllib/Torrus/ConfigTree +@dirrm torrus/perllib/Torrus/Collector +@dirrm torrus/perllib/Torrus/ACL +@dirrm torrus/perllib/Torrus +@dirrm torrus/perllib +@dirrm torrus/examples +@dirrm torrus/doc/devdoc +@dirrm torrus/doc +@dirrm torrus/conf_defaults +@dirrm torrus/bin +@dirrm torrus +@dirrm etc/torrus/xmlconfig +@dirrm etc/torrus/templates +@dirrm etc/torrus/discovery +@dirrm etc/torrus/conf +@dirrm etc/torrus |