debian/0000755000000000000000000000000012172535201007164 5ustar debian/changelog0000644000000000000000000004615712172535004011054 0ustar bandwidthd (2.0.1+cvs20090917-7) unstable; urgency=low * Move php5-gd to Recommends and also recommend php5 (Closes: #717042) * Improve meta-data in patch header of 44_fixrecovercdf.patch * Drop autoheader/autoconf patches as we're using dh-autoreconf * Add patch to fix syslog messages for monitored subnet. Thanks to John Murphy (Closes: #614942) * Let gb-pq import && gbp-pq export rename patches * Make bandwidthd-pgsql also recommend php5-pgsql (Closes: #659237) -- Andreas Henriksson Sat, 20 Jul 2013 18:19:35 +0200 bandwidthd (2.0.1+cvs20090917-6) unstable; urgency=low * This version includes multiple changes (see below) to handle the apache 2.4 transition (Closes: #669734) * Bump debhelper compatibility to 9 * Bump standards-version to policy 3.9.3 * Install/migrate to new apache 2.4 config file location * Add conflicts against apache2 (<< 2.4) * Suggest apache2, since we ship configuration for it * Update apache configuration for new allow-syntax * Use apache2-maintscript-helper for reloading apache2 * Please lintian with formatting copyright as it expects * Drop AllowOverride from apache configuration * Use dh_prep instead of deprecated dh_clean -k * Bump Standards-Version to 3.9.4 * Add build-arch and build-indep targets to debian/rules * Run wrap-and-sort on debian/control * Use dh-autoreconf to update build system (Closes: #677940) * Drop all alternative libgd-dev build-dependencies * Install configuration templates to /usr/share (Closes: #710357) * Move bandwidthd-pgsql config and postinst commands around - update similar to previous bandwidthd changes -- Andreas Henriksson Fri, 14 Jun 2013 00:12:30 +0200 bandwidthd (2.0.1+cvs20090917-5) unstable; urgency=low Acknowledge NMU (Closes: #610057) [ Andreas Henriksson ] * Initial attempt at modernization of the packaging: + Switch from dpatch to source format 3.0 (quilt) + Drop dpatch build dependency + Update patch headers according to patch tagging guidelines (DEP3) + Fix patch syntax in d/p/61_php_fix_html_and_input_validation.patch [ Logan Gunthorpe ] * Add patch to fix recover cdf option (Closes: #660810) [ Andreas Henriksson ] * Fix the problem of failing configure on clean install (Closes: #588146) + Move bandwidthd.conf generation from config to postinst phase + Only generate bandwidthd.conf when postinst are in configure mode * Drop generated config.{guess,sub} files * Reload the apache2 config last in postrm to avoid debconf problems -- Andreas Henriksson Thu, 08 Mar 2012 16:04:46 +0100 bandwidthd (2.0.1+cvs20090917-4.1) unstable; urgency=low * Non-maintainer upload. * Fix encoding for Danish debconf translation -- Christian Perrier Tue, 11 Jan 2011 20:14:02 +0100 bandwidthd (2.0.1+cvs20090917-4) unstable; urgency=low * Officially acknowledge NMU (which was pre-acked by personal email) * debian/patches/43_cdfsyntax.dpatch, debian/patches/00list + Include patch to fix CDF output contributed by Harald Hvaal. * debian/po/es.po (Closes: #580482) + Add spanish translation by Francisco Javier Cuadrado. * debian/po/vi.po (Closes: #581530) + Add vietnamese translation by Clytie Siddall. * Don't uselessly source debconf in debian/bandwidthd.postinst. * Stop debconf in debian/bandwidthd.config -- Andreas Henriksson Mon, 31 May 2010 19:58:23 +0200 bandwidthd (2.0.1+cvs20090917-3.1) unstable; urgency=low * Non-maintainer upload. * Explicitly point to GPL-2 document in debian/copyright * Explicitly use 1.0 source format * Fix spelling in README.Debian ("childs"->"children") * Add $remote_fs to Required-Start and Required-Stop in init script * Fix pending l10n issues. Debconf translations: - Japanese (Hideki Yamane (Debian-JP)). Closes: #555547 - Danish (Joe Hansen). Closes: #580122 -- Christian Perrier Thu, 06 May 2010 08:55:57 +0200 bandwidthd (2.0.1+cvs20090917-3) unstable; urgency=low * Oops, move debian/ru.po to debian/po/ru.po (Closes: #543192) -- Andreas Henriksson Tue, 22 Sep 2009 07:25:50 +0200 bandwidthd (2.0.1+cvs20090917-2) unstable; urgency=low * Call ucf with --debconf-ok during package config. * Add debian/patches/42_graphmailheader.dpatch: - Upstream added mail traffic tracking but forgot to add the table header to the generated static html header. * Reload apache2 after package installation and reload after package purge, ignoring errors to make (potentially) installed apache2 pick up the /bandwidthd/ alias. -- Andreas Henriksson Thu, 17 Sep 2009 15:46:54 +0200 bandwidthd (2.0.1+cvs20090917-1) unstable; urgency=low * New upstream CVS snapshot. - Update debian/patches/21_fixversion.dpatch to reflect new version. * Add Russion debconf translation, thanks Yuri Kozlov! (Closes: #543192) * Add Apache2 config file for /bandwidthd alias. (Closes: #536912) * Drop dpatch script debian/patches/01_config.dpatch and copy/remove config.{guess,sub} in debian/rules. * Update debian/patches/61_php_fix_html_and_input_validation.dpatch to apply. -- Andreas Henriksson Thu, 17 Sep 2009 09:34:01 +0200 bandwidthd (2.0.1+cvs20071208-3) unstable; urgency=low * Fix variable order in bandwidthd init script. Thanks to "Lampa" for noticing. -- Andreas Henriksson Sat, 03 May 2008 23:27:01 +0200 bandwidthd (2.0.1+cvs20071208-2) unstable; urgency=low * Update debian/patches/71_sh_bd_purge_add_shebang.dpatch to fix bashism found in the bd_pgsql_purge script. (Closes: #471290) -- Andreas Henriksson Mon, 17 Mar 2008 10:26:42 +0100 bandwidthd (2.0.1+cvs20071208-1) unstable; urgency=low * Update to newer cvs checkout. * Add dpatch support. - Move all package changes over to patches. * Build-depend on autotools-dev and use dpatch template to update config.{sub,guess} at build time. - Also add overrides for linda warnings introduced by this. * Add new debconf translations (Closes: #419051, #423065): - pt.po by Luís Picciochi / Portuguese Translation Team - nl.po by cobaco (aka Bart Cornelis) * Use lsb output functions and killproc function to stop daemon in init.d script. (Not using start_daemon function since chdir is needed.) * Add dbconfig-common support to bandwidthd-pgsql package. - update bandwidthd-pgsql.config to put dbconfig-common variables in the bandwidthd.conf file. * add patch to get php interface to use dbconfig-common variables for postgresql authentication string. * add patch to fix up php scripts (prevent sql injections and output valid html code). * Bump to policy 3.7.3 * Move homepage field from description to a proper field in debian/control. * Add postgresql-client to dependencies for bandwidthd-pgsql as it uses psql in the crontab for summarizer / db maintenance. * Add php5-gd to bandwidthd-pgsql dependencies, used to create graphs in the php scripts. * Add patch 71_sh_bd_purge_add_shebang, with a proper header for the bd_pgsql_purge script. -- Andreas Henriksson Sat, 10 Dec 2007 16:09:35 +0100 bandwidthd (2.0.1+cvs20050208-11) unstable; urgency=high * Fix elif statement in debian/bandwidthd.config * Add LSB section to init.d script. * Fix /sbin/route subnet output parsing to include subnetmask. * Fix config writing to handle different subnet syntax for CIDR vs. dotted-quad. ("subnet 1.2.3.4/32" vs "subnet 1.2.3.4 255.255.255.0") * Add updated german debconf translation. (Closes: #414592) * Correct several minor language mistakes in the template. (Closes: #414591) Thanks for the two above to Helge Kreutzmann! * Simplify guard against missing ucf in postrm purge so it actually works. (Closes: #416651), Thanks to Michael Ablassmeier - RC bug = high severity. * Update czech debconf translation (fuzzy string+spelling error) Thanks to Miroslav Kure. * Update french translations (fuzzy strings), Thanks Christian Perrier. -- Andreas Henriksson Fri, 9 Mar 2007 00:12:41 +0100 bandwidthd (2.0.1+cvs20050208-10) unstable; urgency=low * Change build-dep from postgresql-dev to libpq-dev (Closes: #396562) -- Andreas Henriksson Wed, 1 Nov 2006 21:55:46 +0100 bandwidthd (2.0.1+cvs20050208-9) unstable; urgency=medium * Don't fail if ucf isn't available on postrm. (Closes: #389967) * ucf --purge apparently isn't enough to remove the config files, use rm to finish the job. * Remove cdf logs and graphs when purging the static bandwidthd package. * Indent Homepage in package description with an extra space as suggested in the 6.2.4 "Upstream home page" part of Debian Developer's Reference - Best Packaging Practices. -- Andreas Henriksson Thu, 28 Sep 2006 23:10:04 +0200 bandwidthd (2.0.1+cvs20050208-8) unstable; urgency=low The "James Westby Rocks" cleanup-edition: (Thanks for reviewing and giving lots of helpful cleanup suggestions) * Skip fourth number in Standards-Version. * Update to debhelper compat 5 - no changes needed apparently. - change build-dependency to >= 5.0.0 * Use "Homepage:" in package description for upstream website. * Use variables ($DESC) everywhere instead of writing out the value in the init.d script. * Update headers in debian/po/ translation files. * Simplify distclean rule in debian/rules. * Remove (more or less) empty debian/*.prerm files. * Add build-dependency on po-debconf. * I've also got a new email address (s/fjortis.info/fatal.se/). -- Andreas Henriksson Thu, 21 Sep 2006 10:30:45 +0200 bandwidthd (2.0.1+cvs20050208-7) unstable; urgency=low * Move misplaced binary-indep rules to install in debian/rules. (Closes: #372710) * Implement bandwidthd-pgsql.conf template usage in debconf script, debian/bandwidthd-pgsql.config. * Update debian/TODO. * Refrase debconf template as recommended by policy in debian/templates according to lintian suggestion. * Bump up Standards-Version to debian-policy 3.7.2.1. * Update Swedish translation (sv). * Add Czech translation (cs), thanks to Martin Šín (Closes: #382233) * Add French translation (fr), thanks to Steve (Closes: #313182, #384427) * Fix parsing of iproute2 route output for /32 routes. - Thanks to Alexis Huxley for debugging. -- Andreas Henriksson Mon, 31 Jul 2006 15:37:32 +0200 bandwidthd (2.0.1+cvs20050208-6) unstable; urgency=low * Added missing dependency on ucf. * Update to debian-policy 3.7.0.0. * Moved to using po-debconf for debconf translations. -- Andreas Henriksson Sun, 30 Apr 2006 15:42:33 +0200 bandwidthd (2.0.1+cvs20050208-5) unstable; urgency=low * Lintian cleanups. - Remove bashism from debian/*.config scripts. - Purge debconf database in bandwidthd-pgsql postrm. - Add dh_installdebconf in debian/rules and readd ${misc:Depends} to Depends-field in debian/control (for debconf). - Change Type-field in debian/bandwidthd.templates from integer to string for metarefresh. -- Andreas Henriksson Thu, 29 Dec 2005 15:18:58 +0100 bandwidthd (2.0.1+cvs20050208-4) unstable; urgency=low * The "lets fix the fuckups in previous version" release. * Only bandwidthd-pgsql should depend on libpq. Clean between builds. * Fix up description formating by deleting personal url for package source (Closes: #328178). * Add debconf to generate configuration file (non-pgsql version only). * Fixed up BASHism in init.d script (hopefully correct now), thanks to Alexander Gerasiov. (Closes: #328576) * Add ".. in bandwidthd.conf" to syntax error message. (Closes: #328577) * Modify build-dependencies on libgd2. (Closes: #343921, #335661) -- Andreas Henriksson Fri, 23 Dec 2005 21:53:56 +0200 bandwidthd (2.0.1+cvs20050208-3) unstable; urgency=low * neilm@debian.org agreed to sponsor bandwidthd! Fixed up the stuff in his initial comments. * Fixed version number (...-x.y reserved for NMUs). * Fixed lintian warnings. - Upgraded to policy 3.6.2.1. - Replaced ancient config.sub, config.guess with new versions from /usr/share/automake/. - Added manpage in bandwidthd-pgsql package (needs update!). - Added init.d script in bandwidthd-pgsql package. -- Andreas Henriksson Fri, 26 Aug 2005 07:11:16 +0200 bandwidthd (2.0.1+cvs20050208-2.1) unstable; urgency=low * More work on the bandwidthd-pgsql package. - static package tested and working. - added pgsql-specific part of bandwidthd.conf in pgsql-package. - added php-scripts to htdocs dir in pgsql-package. - added warning notice in init.d-script for unconfigured pgsql connection strings in config. - updated README.Debian with (untested) pgsql administration examples. -- Andreas Henriksson Fri, 22 Jul 2005 20:24:49 +0200 bandwidthd (2.0.1+cvs20050208-2) unstable; urgency=low * Attempt at multibinary package - bandwidthd & bandwidthd-pgsql. -- Andreas Henriksson Sun, 27 Feb 2005 15:22:28 +0100 bandwidthd (2.0.1+cvs20050208-1) unstable; urgency=low * Update to CVS as of 8 Feb, 2005 which includes support for changing paths. -- Andreas Henriksson Tue, 8 Feb 2005 18:35:53 +0100 bandwidthd (2.0.1) unstable; urgency=low * New upstream release. (database logging feature disabled.) -- Andreas Henriksson Thu, 13 Jan 2005 20:31:37 +0100 bandwidthd (1.2.1b-14) unstable; urgency=low "Thanks for the testing release." * Fixed bug forever disabling graphing if there's one run which doesn't catch a single packet. * Comment out 27 printf-lines in bandwidthd.c and 2 in conf.y to get rid of the startup spam. * Wrote some lines about the config in README.Debian. * Added note about defunct processes in README.Debian. * Moved TODO-part from README.Debian to TODO.Debian. * Added warning about recover_cdf in bandwidthd.conf manpage. -- Andreas Henriksson Sun, 11 Jul 2004 21:07:01 +0200 bandwidthd (1.2.1b-13) unstable; urgency=low * Disabled automatically generated post{inst,rm} and prerm scripts again since an already running bandwidthd where not shut down properly on package upgrade. (Kept debhelper-token in script but added -n flag to dh_installinit to prevent it from modifying scripts.) -- Andreas Henriksson Tue, 6 Jul 2004 17:44:22 +0200 bandwidthd (1.2.1b-12) unstable; urgency=low The lintian cleanup release. * Added manpages bandwidthd(8) and bandwidthd.conf(5). * Added debhelper-token to maintainer scripts and removed parts that where duplicated when debhelper inserted it's changes. * Adjusted copyright-file. -- Andreas Henriksson Mon, 5 Jul 2004 21:15:31 +0200 bandwidthd (1.2.1b-11) unstable; urgency=low * Changed build-depends to use pcap0.8 and gd2 instead of transitional packages pointing to pcap0.7 and gd1. -- Andreas Henriksson Fri, 2 Jul 2004 09:01:43 +0200 bandwidthd (1.2.1b-10) unstable; urgency=low Thanks to Petr Stehlik for testing the package on woody and suggesting an easy way to fix the file hierarchy problem. * Included reworked patches (which has been sent to upstream). * Included postinst, prerm, postrm scripts stolen from pdns. * Fixed up 2 minor issues in init.d-script for woody compability. This release puts the log*.cdf in /var/lib/bandwidthd/ and the html files in /var/lib/bandwidthd/htdocs/ instead of working out of /etc/bandwidthd/. The config files stays /etc/bandwidthd/bandwidthd.conf (obviously) though. The current solution still requires chdir, but that will hopefully soon be dealt with. -- Andreas Henriksson Tue, 29 Jun 2004 19:29:01 +0200 bandwidthd (1.2.1b-9) unstable; urgency=low Thanks to Bartosz Fenski aka fEnIo for improvement suggestions! * Changed to Standards-Version 3.6.1.0 in debian/control * Changed to Section "net" in debian/control * Small change to debian/copyright * More TODO-items added in README.Debian -- Andreas Henriksson Thu, 17 Jun 2004 00:31:39 +0200 bandwidthd (1.2.1b-8) unstable; urgency=low * Updated README.Debian * Fixed subnet page html syntax. * Moved "Programmed by..." to right below the logo. * Added bison and flex to build-depends. -- Andreas Henriksson Mon, 14 Jun 2004 22:59:20 +0200 bandwidthd (1.2.1b-7) unstable; urgency=low * Changed init.d-script to use SIGUSR1/SIGUSR2. * Fixed up signals. Forgot to install the handler for USR1/USR2. ;) -- Andreas Henriksson Mon, 7 Jun 2004 19:40:32 +0200 bandwidthd (1.2.1b-6) unstable; urgency=low * Changed debian/rules to run dist-clean to avoid useless changes in diff. * Changed signal handling to be able to get the parent to signal the all the children. Sending SIGUSR1 to pid in /var/run/bandwidthd.pid now terminates all processes. Likewise SIGUSR2 does logrotate. (Logs aren't rotated for any other process then the main one, so SIGUSR2 is pretty useless. The signal is propagated so when logrotate is enabled for all processes it will work.) -- Andreas Henriksson Mon, 7 Jun 2004 19:07:51 +0200 bandwidthd (1.2.1b-5) unstable; urgency=low * Added config option to set seconds in "META REFRESH". Can also be disabled totally by setting it to 0. * Rewrote fork-handling for graph-processes. (Preparation for better signal handling.) -- Andreas Henriksson Fri, 4 Jun 2004 13:09:00 +0200 bandwidthd (1.2.1b-4) unstable; urgency=low * Fixed up the html syntax in the files generated by bandwithd. Hopefully got everything right. :) -- Andreas Henriksson Sun, 30 May 2004 20:37:04 +0200 bandwidthd (1.2.1b-3) unstable; urgency=low * Ugh, seems like I somehow misplaced all the init.d-script changes. Rewrite bandwidthd init.d script (again). -- Andreas Henriksson Sun, 30 May 2004 19:24:20 +0200 bandwidthd (1.2.1b-2) unstable; urgency=low * changed the init.d script to handle missing pidfile and added some paranoia in the log rotate function. -- Andreas Henriksson Thu, 27 May 2004 19:54:34 +0200 bandwidthd (1.2.1b-1) unstable; urgency=low * New upstream release -- Andreas Henriksson Thu, 27 May 2004 19:29:54 +0200 bandwidthd (1.2.0b-2) unstable; urgency=low * Removed hack from fork2 and moved it into main(). (since fork2() now is used on more places.) -- Andreas Henriksson Sun, 1 Feb 2004 11:02:37 +0100 bandwidthd (1.2.0b-1) unstable; urgency=low * New upstream release -- Andreas Henriksson Sat, 31 Jan 2004 18:39:20 +0100 bandwidthd (1.1.7-1) unstable; urgency=low * Initial Release. * Hacked fork2() to write pidfile. -- Andreas Henriksson Tue, 6 Jan 2004 17:02:32 +0100 debian/source/0000755000000000000000000000000011726163021010465 5ustar debian/source/format0000644000000000000000000000001411726163021011673 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000125012156445225011125 0ustar This package was debianized by Andreas Henriksson on Tue, 6 Jan 2004 17:02:32 +0100. It was downloaded from http://bandwidthd.sourceforge.net/ Upstream Authors: David R Hinkle Brice Beaman Blaze Copyright: Development of BandwidthD is funded and provided under the GPL by DerbyTech wireless networking and Linux consulting services, David Hinkle and numerous voluneteers. Copyright (c) 2004-2009 DerbyTech wireless networking, David Hinkle, et.al. License: This software is distributed under the GNU General Public License, which can be found at /usr/share/common-licenses/GPL-2. debian/bandwidthd-pgsql.prerm0000644000000000000000000000040211726163021013464 0ustar #!/bin/sh set -e if [ "$BANDWIDTHD_PACKAGE_DEBUG" != "" ]; then echo "bandwidthd-pgsql.prerm: $*" fi # Hook up the dbconfig-common library. . /usr/share/debconf/confmodule . /usr/share/dbconfig-common/dpkg/postrm dbc_go bandwidthd-pgsql $@ #DEBHELPER# debian/compat0000644000000000000000000000000211732106101010354 0ustar 9 debian/TODO0000644000000000000000000000114411726163021007655 0ustar TODO for debian package: ----------------------------------------------------------------------------- - audit source to make sure kilo is k (not K), mega is M (not m), giga is G (not g), bit is b (not B), byte is B (not b) and seconds is s (not sec). - postgresql: support installing a "sensor". See dbconfig-common section 3.2.5: "Packages that connect to but should not create databases (read-only frontends)" http://people.debian.org/~seanius/policy/dbconfig-common-using.html/ch-develguide.html#s-frontends (Also remove note from debian/bandwidthd-pgsql.NEWS about sensors not yet supported) debian/control0000644000000000000000000000322012172535004010565 0ustar Source: bandwidthd Section: net Priority: optional Maintainer: Andreas Henriksson Build-Depends: autotools-dev, bison, debhelper (>= 9), dh-autoreconf, flex, libgd-dev, libpcap0.8-dev | libpcap-dev, libpq-dev, po-debconf Standards-Version: 3.9.4 Homepage: http://bandwidthd.sourceforge.net/ Package: bandwidthd Architecture: any Depends: ucf, ${misc:Depends}, ${shlibs:Depends} Suggests: apache2 Conflicts: apache2 (<< 2.4), bandwidthd-pgsql Description: Tracks usage of TCP/IP and builds html files with graphs BandwidthD tracks usage of TCP/IP network subnets and builds html files with graphs to display utilization. Charts are built by individual IPs. Color Codes HTTP, TCP,UDP, ICMP, VPN, P2P, etc. . This is the static version, see bandwidthd-pgsql for multi sensor/php frontend bandwidthd. Package: bandwidthd-pgsql Architecture: any Depends: dbconfig-common, postgresql-client, ucf, ${misc:Depends}, ${shlibs:Depends} Recommends: php5, php5-gd, php5-pgsql Suggests: apache2 Conflicts: apache2 (<< 2.4), bandwidthd Description: Tracks usage of TCP/IP and builds html files with graphs BandwidthD tracks usage of TCP/IP network subnets and builds html files with graphs to display utilization. Charts are built by individual IPs. Color Codes HTTP, TCP,UDP, ICMP, VPN, P2P, etc. . This is the PostgreSQL version of bandwidthd which supports multiple sensors and uses a dynamic (php-based) web interface. If you don't need these features then using the package bandwidthd is suggested. debian/bandwidthd.config0000644000000000000000000000652211726163021012471 0ustar #!/bin/sh set -e if [ "$BANDWIDTHD_PACKAGE_DEBUG" != "" ]; then set -x fi # Source debconf library. . /usr/share/debconf/confmodule db_version 2.0 db_title BandwidthD # find devices to use as choices for debconf. # (this should really be picked up from the output of "bandwidthd -l", # but since the config script is ran before the package is even unpacked # it can not be used.) IFCONFIG="/sbin/ifconfig" ROUTE="/sbin/route" IPROUTE="/bin/ip" LIST_DEV="" LIST_SUBNETS="" if [ -f $IPROUTE ]; then LIST_DEV=$($IPROUTE link show | grep "UP" | sed -e "s/.*: \(.*\): <.*/\1/") LIST_SUBNETS=$($IPROUTE route show | grep -v ^default | awk '{ if (match($1, '/\\\//')) { print $1 } else { print $1 "/32" } }') elif [ -f $IFCONFIG ] && [ -f $ROUTE ]; then LIST_DEV=$($IFCONFIG | grep "Link encap:" | cut -d" " -f1) LIST_SUBNETS=$($ROUTE -n | grep ^[0-9] | grep -v ^0.0.0.0 | cut -c0-15,33-47 | sed -e 's# \+#/#') #else # echo "WARNING: bandwidthd.config: Could not find eigther ip(route2) nor ifconfig to list interfaces." fi # create device list, starting by pseudo-device "any". DEBCONF_INTERFACES="any" for DEV in $LIST_DEV; do DEBCONF_INTERFACES="${DEBCONF_INTERFACES}, ${DEV}" done # (set default interface to eth0 if it exists, otherwise use any as # a fallback default since it always exists). if [ "$(echo $DEBCONF_INTERFACES | grep -c1 ', eth0')" != 0 ]; then DEBCONF_INTERFACES_DEFAULT="eth0" else DEBCONF_INTERFACES_DEFAULT="any" fi # find subnets to use as default for debconf. for SUBNET in $LIST_SUBNETS; do if [ "$DEBCONF_SUBNET_DEFAULT" = "" ]; then DEBCONF_SUBNET_DEFAULT="${SUBNET}" else DEBCONF_SUBNET_DEFAULT="${DEBCONF_SUBNET_DEFAULT}, ${SUBNET}" fi done if [ "$BANDWIDTHD_PACKAGE_DEBUG" != "" ]; then echo "dev: $DEBCONF_INTERFACES" echo "dev(default): $DEBCONF_INTERFACES_DEFAULT" echo "subnets: $DEBCONF_SUBNET_DEFAULT" fi if [ "$BANDWIDTHD_PACKAGE_DEBUG" != "" ]; then db_fset bandwidthd/dev seen false db_fset bandwidthd/subnet seen false db_fset bandwidthd/promisc seen false # bwdstatic-specific: db_fset bandwidthd/outputcdf seen false db_fset bandwidthd/recovercdf seen false fi # --- Listen on which interface? --- # FIXME: replace db_subst "interfaces" with db_setchoices when it becomes # available in debconf. See Debian bug #174130. # Set available choices. db_subst bandwidthd/dev "interfaces" "$DEBCONF_INTERFACES" || true # Set default choice (unless valid old value exists). db_get bandwidthd/dev || true if [ "$RET" = "" ]; then db_set bandwidthd/dev "$DEBCONF_INTERFACES_DEFAULT" || true elif [ "$(echo $DEBCONF_INTERFACES | grep -c1 $RET)" = 0 ]; then db_set bandwidthd/dev "$DEBCONF_INTERFACES_DEFAULT" || true fi # Ask question. db_input high bandwidthd/dev || true db_go || true # --- Log/Graph which subnets? --- # Set default subnets (unless value already exists). db_get bandwidthd/subnet || true if [ "$RET" = "" ] ; then db_set bandwidthd/subnet "$DEBCONF_SUBNET_DEFAULT" || true fi # Ask question. db_input high bandwidthd/subnet || true db_go || true # --- Output CDF ? --- db_input low bandwidthd/outputcdf || true db_go || true # --- Recover from CDF on restart? --- db_input medium bandwidthd/recovercdf || true db_go || true # --- PROMISC ? --- db_input low bandwidthd/promisc || true db_go || true # --- META REFRESH interval? --- #db_input low bandwidthd/metarefresh || true #db_go || true debian/bandwidthd.80000644000000000000000000000223111726163021011364 0ustar .TH BANDWIDTHD 8 "5 Jul 2004" .SH NAME bandwidthd - Tracks usage of TCP/IP and builds html files with graphs. .SH DESCRIPTION .LP BandwidthD tracks usage of TCP/IP network subnets and builds html files with graphs to display utilization. Charts are built by individual IPs, and display utilization over 2 day, 8 day, 40 day, and 400 day periods. Furthermore, each ip address's utilization can be logged out at intervals of 2.5 minutes, 10 minutes, 1 hour or 12 hours in cdf format. HTTP, TCP, UDP, ICMP, VPN, and P2P traffic are color coded. .br .sp The configuration file "bandwidthd.conf" is described in it's own manual page. .SH FILES .nf /usr/sbin/bandwidthd - daemon binary. /etc/init.d/bandwidthd - startscript. /etc/bandwidthd/bandwidthd.conf - configuration file. /var/run/bandwidthd.pid - main process id file. /var/lib/bandwidthd/ - log directory. /var/lib/bandwidtd/htdocs/ - html and graphs output directory. .fi .SH SEE ALSO bandwidthd.conf(5) .br .sp Furter information available at the website: .br .I http://bandwidthd.sourceforge.net .SH AUTHOR This manual page was written by Andreas Henriksson , for the Debian GNU/Linux system. debian/bandwidthd.postinst0000644000000000000000000000715112156445225013115 0ustar #!/bin/sh set -e if [ "$BANDWIDTHD_PACKAGE_DEBUG" != "" ]; then echo "bandwidthd.postinst: $*" set -x fi # Always source debconf library in postinst. . /usr/share/debconf/confmodule # ------------------------------------------------------------- # Create bandwidthd.conf based on debconf data, and install it. # ------------------------------------------------------------- if [ "$1" = "configure" ]; then db_get bandwidthd/dev || true DEV=$RET db_get bandwidthd/subnet || true SUBNETS=$RET # ATTENTION! $SUBNETS needs to be parsed and split. # Example contents: 192.168.1.0/24, 172.20.0.0 255.255.0.0, 10.0.0.0/8 db_get bandwidthd/outputcdf || true OUTPUTCDF=$RET db_get bandwidthd/recovercdf || true RECOVERCDF=$RET db_get bandwidthd/metarefresh || true if [ "$RET" = "" ]; then RET=150 fi METAREFRESH=$RET db_get bandwidthd/promisc || true PROMISC=$RET if [ "$BANDWIDTHD_PACKAGE_DEBUG" != "" ]; then echo "This is the bandwidthd postinst script reporting debconf settings:" echo "dev: $DEV" echo "subnets: $SUBNETS" echo "outputcdf: $OUTPUTCDF" echo "recovercdf: $RECOVERCDF" echo "metarefresh: $METAREFRESH" echo "promisc: $PROMISC" fi # parse a bandwidthd.conf template and insert dev, subnet and # recover_cdf rules, then use ucf to install config file. TMPDIR=$(mktemp -d) TMPFILE=$TMPDIR/bandwidthd.conf cp /usr/share/bandwidthd/bandwidthd.conf.template $TMPFILE chmod 640 $TMPFILE RULE='s%^#DEBCONF_DEVS#$%dev "'$DEV'"%' sed -e "$RULE" < $TMPFILE > $TMPFILE.new mv $TMPFILE.new $TMPFILE PARSED_SUBNETS=$(echo $SUBNETS | sed -e 's/, */:/g') #PARSED_SUBNETS=$(echo $PARSED_SUBNETS | sed -e 's/^/subnet /') OLDIFS=$IFS IFS=":" for subnet in $PARSED_SUBNETS ; do # CIDR and dotted-quad subnets have different syntax: # subnet 1.2.3.4/24 # subnet 4.3.2.1 255.255.255.0 subnet=$(echo $subnet | sed -e 's#/\(.*\..*\)# \1#') RULE='s%^#DEBCONF_SUBNETS#$%subnet '$subnet'\ #DEBCONF_SUBNETS#%' sed -e "$RULE" < $TMPFILE > $TMPFILE.new mv $TMPFILE.new $TMPFILE done RULE='s%^#DEBCONF_SUBNETS#$%%' sed -e "$RULE" < $TMPFILE > $TMPFILE.new mv $TMPFILE.new $TMPFILE IFS=$OLDIFS RULE='s%^#DEBCONF_OUTPUTCDF#$%output_cdf '$OUTPUTCDF'%' sed -e "$RULE" < $TMPFILE > $TMPFILE.new mv $TMPFILE.new $TMPFILE RULE='s%^#DEBCONF_RECOVERCDF#$%recover_cdf '$RECOVERCDF'%' sed -e "$RULE" < $TMPFILE > $TMPFILE.new mv $TMPFILE.new $TMPFILE RULE='s%^#DEBCONF_METAREFRESH#$%meta_refresh '$METAREFRESH'%' sed -e "$RULE" < $TMPFILE > $TMPFILE.new mv $TMPFILE.new $TMPFILE RULE='s%^#DEBCONF_PROMISC#$%promiscuous '$PROMISC'%' sed -e "$RULE" < $TMPFILE > $TMPFILE.new mv $TMPFILE.new $TMPFILE # Install new configuration... chmod 640 $TMPFILE ucf --debconf-ok $TMPFILE /etc/bandwidthd/bandwidthd.conf chmod 640 /etc/bandwidthd/bandwidthd.conf # clean up rm -rf $TMPDIR # stop debconf db_stop fi # "$1" = "configure" # ---------------------------------------------------------------------- # move apache configuration file to new location for apache 2.4 dpkg-maintscript-helper mv_conffile \ /etc/apache2/conf.d/bandwidthd /etc/apache2/conf-available/bandwidthd.conf 2.0.1+cvs20090917-6~ bandwidthd -- "$@" # From http://wiki.debian.org/Apache/PackagingFor24 : # "In your postinst maintainer script invoke the enconf handler on fresh installations." if [ -z "$2" ]; then if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then . /usr/share/apache2/apache2-maintscript-helper apache2_invoke enconf bandwidthd.conf fi fi # reload apache2 config for installed /bandwidthd alias. if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then . /usr/share/apache2/apache2-maintscript-helper apache2_reload fi # debhelper autoinserted stuff: #DEBHELPER# debian/extras/0000755000000000000000000000000012156445225010502 5ustar debian/extras/bandwidthd-pgsql.conf.template0000644000000000000000000000312212156445225016415 0ustar #################################################### # Bandwidthd.conf # # Commented out options are here to provide # documentation and represent defaults # Subnets to collect statistics on. Traffic that # matches none of these subnets will be ignored. # Syntax is either IP Subnet Mask or CIDR #DEBCONF_SUBNETS# # Device to listen on # Bandwidthd listens on the first device it detects # by default. Run "bandwidthd -l" for a list of # devices. #DEBCONF_DEVS# ################################################### # Options for postgresql database logging. # Standard postgres connect string, just like php, see postgres docs for # details #pgsql_connect_string "user = someuser dbname = mydb host = localhost" #DEBCONF_PGSQL# # Arbitrary sensor name, I recommend the sensors fully qualified domain # name #sensor_id "sensor1.localhost.localdomain" #DEBCONF_SENSORID# # Tells Bandwidthd to keep no data and preform no graphing locally graph false # If this is set to true Bandwidthd will try to recover the daily log # into the database. If you set this true on purpose only do it once. # Bandwidthd does not track the fact that it has already transferred # certain records into the database. recover_cdf false ################################################### # Options that don't usually get changed #Put interface in promiscuous mode to score to traffic #that may not be routing through the host machine. #promiscuous true #DEBCONF_PROMISC# #Libpcap format filter string used to control what bandwidthd see's #Please always include "ip" in the string to avoid strange problems #filter "ip" debian/extras/bandwidthd.conf.template0000644000000000000000000000341712156445225015300 0ustar #################################################### # Bandwidthd.conf # # Commented out options are here to provide # documentation and represent defaults # Subnets to collect statistics on. Traffic that # matches none of these subnets will be ignored. # Syntax is either IP Subnet Mask or CIDR #subnet 192.168.0.0/24 #DEBCONF_SUBNETS# # Device to listen on # Bandwidthd listens on the first device it detects # by default. Run "bandwidthd -l" for a list of # devices. #dev "eth0" #DEBCONF_DEVS# ################################################### # Options that don't usually get changed # An interval is 2.5 minutes, this is how many # intervals to skip before doing a graphing run #skip_intervals 0 # Graph cutoff is how many k must be transfered by an # ip before we bother to graph it #graph_cutoff 1024 #Put interface in promiscuous mode to score to traffic #that may not be routing through the host machine. #promiscuous true #DEBCONF_PROMISC# #Log data to cdf file htdocs/log.cdf #output_cdf false #DEBCONF_OUTPUTCDF# #Set the cdf log output directory #log_dir "/var/lib/bandwidthd" #Read back the cdf file on startup #recover_cdf false #DEBCONF_RECOVERCDF# #Libpcap format filter string used to control what bandwidthd see's #Please always include "ip" in the string to avoid strange problems #filter "ip" #Draw Graphs - This default to true to graph the traffic bandwidthd is recording #Usually set this to false if you only want cdf output or #you are using the database output option. Bandwidthd will use very little #ram and cpu if this is set to false. #graph true #Set META REFRESH for static pages in seconds(default 150, use 0 to disable). #meta_refresh 150 #DEBCONF_METAREFRESH# #Set the static html output directory #htdocs_dir "/var/lib/bandwidthd/htdocs" debian/extras/apache2.conf0000644000000000000000000000023712156445225012656 0ustar Options +FollowSymLinks Require all granted Alias /bandwidthd /var/lib/bandwidthd/htdocs/ debian/bandwidthd-pgsql.postrm0000644000000000000000000000246712156445225013707 0ustar #!/bin/sh set -e if [ "$BANDWIDTHD_PACKAGE_DEBUG" != "" ]; then echo "bandwidthd-pgsql.postrm: $*" fi if [ -f /usr/share/debconf/confmodule ]; then . /usr/share/debconf/confmodule fi if [ -f /usr/share/dbconfig-common/dpkg/postrm ]; then . /usr/share/dbconfig-common/dpkg/postrm dbc_go bandwidthd-pgsql $@ fi # take care of config file move for new apache 2.4 location dpkg-maintscript-helper mv_conffile \ /etc/apache2/conf.d/bandwidthd /etc/apache2/conf-available/bandwidthd.conf 2.0.1+cvs20090917-6~ bandwidthd-pgsql -- "$@" if [ "$1" = "purge" ] ; then CONF="/etc/bandwidthd/bandwidthd.conf" PHPDB="/etc/bandwidthd/debian-db.php" CRONPSQLCONF="/etc/bandwidthd/.pgpass" for FILE in $CONF $PHPDB $CRONPSQLCONF do if which ucf > /dev/null 2>&1; then ucf --purge $FILE fi if [ -f $FILE ]; then rm -f $FILE fi done # From http://wiki.debian.org/Apache/PackagingFor24 : # "Likewise, in postrm do upon purge and simple removals" if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then . /usr/share/apache2/apache2-maintscript-helper apache2_invoke disconf bandwidthd.conf fi # reload apache2 config for uninstalled /bandwidthd alias. if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then . /usr/share/apache2/apache2-maintscript-helper apache2_reload fi fi #DEBHELPER# debian/rules0000755000000000000000000001362012156445225010256 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # GNU copyright 1997 to 1999 by Joey Hess. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 configureoptions = --prefix=/usr --bindir=/usr/sbin/ --sysconfdir=/etc/bandwidthd/ --localstatedir=/var/lib/ p_bwdstatic = bandwidthd p_bwdpgsql = bandwidthd-pgsql build_bwdstatic = debian/bandwidthd build_bwdpgsql = debian/bandwidthd-pgsql CFLAGS = -Wall ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) CFLAGS += -g endif ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_PROGRAM += -s endif configure: configure-bwdstatic: configure-bwdstatic-stamp configure-bwdstatic-stamp: dh_testdir #[ ! -f Makefile ] || $(MAKE) clean cp -f /usr/share/misc/config.guess config.guess cp -f /usr/share/misc/config.sub config.sub dh_autoreconf chmod +x configure ./configure $(configureoptions) --disable-pgsql touch $@ configure-bwdpgsql: configure-bwdpgsql-stamp configure-bwdpgsql-stamp: dh_testdir #[ ! -f Makefile ] || $(MAKE) clean [ ! -f /usr/share/misc/config.guess ] || cp -f /usr/share/misc/config.guess config.guess [ ! -f /usr/share/misc/config.sub ] || cp -f /usr/share/misc/config.sub config.sub chmod +x configure ./configure $(configureoptions) --enable-pgsql touch $@ build: build-bwdstatic: configure-bwdstatic build-stamp build-bwdpgsql: configure-bwdpgsql build-stamp build-stamp: dh_testdir # Add here commands to compile the package. $(MAKE) touch $@ clean: dh_testdir dh_testroot debconf-updatepo # update debian/po/templates.pot [ ! -f Makefile ] || $(MAKE) distclean dh_autoreconf_clean rm -f build-stamp configure-stamp rm -f config.guess config.sub rm -f configure-*-stamp rm -f conf.l.* conf.tab.* rm -f config.log config.h config.status dh_clean install: dh_testdir dh_testroot dh_prep dh_installdirs $(MAKE) -f debian/rules install-bwdstatic $(MAKE) clean $(MAKE) -f debian/rules install-bwdpgsql install-bwdstatic: DH_OPTIONS=-p$(p_bwdstatic) install-bwdstatic: build-bwdstatic # Add here commands to install the package into debian/bandwidthd. $(MAKE) install DESTDIR=$(CURDIR)/$(build_bwdstatic) # install bandwidthd.conf template mkdir -p debian/bandwidthd/usr/share/bandwidthd/ install -m 644 -o root -g root debian/extras/bandwidthd.conf.template \ debian/bandwidthd/usr/share/bandwidthd/ # install apache2 config mkdir -p debian/bandwidthd/etc/apache2/conf-available/ install -m 644 -o root -g root debian/extras/apache2.conf \ debian/bandwidthd/etc/apache2/conf-available/bandwidthd.conf # Install debconf files for bandwidthd dh_installdebconf --mainpackage=$(p_bwdstatic) # Install init.d script for bandwidthd dh_installinit --name=bandwidthd --mainpackage=$(p_bwdstatic) # Install manpages for bandwidthd dh_installman --mainpackage=$(p_bwdstatic) install-bwdpgsql: DH_OPTIONS=-p$(p_bwdpgsql) install-bwdpgsql: build-bwdpgsql # Add here commands to install the package into debian/bandwidthd-pgsql. $(MAKE) install DESTDIR=$(CURDIR)/$(build_bwdpgsql) # install summarizer script install -m 644 phphtdocs/bd_pgsql_purge.sh debian/bandwidthd-pgsql/usr/sbin/bd_pgsql_purge # install web-interface. install -m 644 phphtdocs/bandwidthd.css debian/bandwidthd-pgsql/var/lib/bandwidthd/htdocs/ install -m 644 phphtdocs/*.gif debian/bandwidthd-pgsql/var/lib/bandwidthd/htdocs/ # ... but only a subset of the php files (the ones that are useful). install -m 644 phphtdocs/details.php debian/bandwidthd-pgsql/var/lib/bandwidthd/htdocs/ install -m 644 phphtdocs/failures.php debian/bandwidthd-pgsql/var/lib/bandwidthd/htdocs/ install -m 644 phphtdocs/footer.php debian/bandwidthd-pgsql/var/lib/bandwidthd/htdocs/ install -m 644 phphtdocs/graph.php debian/bandwidthd-pgsql/var/lib/bandwidthd/htdocs/ install -m 644 phphtdocs/header.php debian/bandwidthd-pgsql/var/lib/bandwidthd/htdocs/ install -m 644 phphtdocs/include.php debian/bandwidthd-pgsql/var/lib/bandwidthd/htdocs/ install -m 644 phphtdocs/location_statistics.php debian/bandwidthd-pgsql/var/lib/bandwidthd/htdocs/ install -m 644 phphtdocs/sensors.php debian/bandwidthd-pgsql/var/lib/bandwidthd/htdocs/ #install -m 644 phphtdocs/uptime.php debian/bandwidthd-pgsql/var/lib/bandwidthd/htdocs/ # install postgresql-connection config, webgroup-readable. mkdir -p debian/bandwidthd-pgsql/var/lib/bandwidthd/htdocs/ install -m 640 -g www-data phphtdocs/config.conf \ debian/bandwidthd-pgsql/var/lib/bandwidthd/htdocs/config.conf # install shell scripts in document-directory. mkdir -p debian/bandwidthd-pgsql/usr/share/doc/bandwidthd-pgsql/ install -m 755 phphtdocs/*.sh \ debian/bandwidthd-pgsql/usr/share/doc/bandwidthd-pgsql/ # install bandwidthd-pgsql.conf template mkdir -p debian/bandwidthd-pgsql/usr/share/bandwidthd-pgsql/ install -m 644 -o root -g root debian/extras/bandwidthd-pgsql.conf.template \ debian/bandwidthd-pgsql/usr/share/bandwidthd-pgsql/ # install apache2 config mkdir -p debian/bandwidthd-pgsql/etc/apache2/conf-available/ install -m 644 -o root -g root debian/extras/apache2.conf \ debian/bandwidthd-pgsql/etc/apache2/conf-available/bandwidthd.conf # Install debconf files for bandwidthd-pgsql dh_installdebconf --mainpackage=$(p_bwdpgsql) # Install init.d script for bandwidthd-pgsql dh_installinit --name=bandwidthd --mainpackage=$(p_bwdpgsql) # Install manpages for bandwidthd-pgsql dh_installman --mainpackage=$(p_bwdpgsql) build-arch: build build-indep: # Build architecture-independent files here. binary-indep: install # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot dh_installchangelogs CHANGELOG dh_installdocs dh_installdirs ## ------ dh_link dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure debian/manpages0000644000000000000000000000010511726163021010677 0ustar debian/bandwidthd.conf.5 debian/bandwidthd.8 debian/bd_pgsql_purge.8 debian/bandwidthd-pgsql.config0000644000000000000000000000660212156445225013623 0ustar #!/bin/sh set -e if [ "$BANDWIDTHD_PACKAGE_DEBUG" != "" ]; then set -x fi # Source debconf library. . /usr/share/debconf/confmodule db_version 2.0 db_title BandwidthD # find devices to use as choices for debconf. # (this should really be picked up from the output of "bandwidthd -l", # but since the config script is ran before the package is even unpacked # it can not be used.) IFCONFIG="/sbin/ifconfig" ROUTE="/sbin/route" IPROUTE="/bin/ip" LIST_DEV="" LIST_SUBNETS="" if [ -f $IPROUTE ]; then LIST_DEV=$($IPROUTE link show | grep "UP" | sed -e "s/.*: \(.*\): <.*/\1/") LIST_SUBNETS=$($IPROUTE route show | grep -v ^default | awk '{if (match($1, '/\\\//')) { print $1 } else { print $1 "/32" } }') elif [ -f $IFCONFIG ] && [ -f $ROUTE ]; then LIST_DEV=$($IFCONFIG | grep "Link encap:" | cut -d" " -f1) LIST_SUBNETS=$($ROUTE -n | grep ^[0-9] | grep -v ^0.0.0.0 | cut -c0-15,33-47 | sed -e 's# \+#/#') #else # echo "WARNING: bandwidthd.config: Could not find eigther ip(route2) nor ifconfig to list interfaces." fi # create device list, starting by pseudo-device "any". DEBCONF_INTERFACES="any" for DEV in $LIST_DEV; do DEBCONF_INTERFACES="${DEBCONF_INTERFACES}, ${DEV}" done # (set default interface to eth0 if it exists, otherwise use any as # a fallback default since it always exists). if [ "$(echo $DEBCONF_INTERFACES | grep -c1 ', eth0')" != 0 ]; then DEBCONF_INTERFACES_DEFAULT="eth0" else DEBCONF_INTERFACES_DEFAULT="any" fi # find subnets to use as default for debconf. for SUBNET in $LIST_SUBNETS; do if [ "$DEBCONF_SUBNET_DEFAULT" = "" ]; then DEBCONF_SUBNET_DEFAULT="${SUBNET}" else DEBCONF_SUBNET_DEFAULT="${DEBCONF_SUBNET_DEFAULT}, ${SUBNET}" fi done # Use full hostname as default sensor id. DEBCONF_SENSORID=$(/bin/hostname) if [ "$BANDWIDTHD_PACKAGE_DEBUG" != "" ]; then echo "dev: $DEBCONF_INTERFACES" echo "dev(default): $DEBCONF_INTERFACES_DEFAULT" echo "subnets: $DEBCONF_SUBNET_DEFAULT" fi if [ "$BANDWIDTHD_PACKAGE_DEBUG" != "" ]; then db_fset bandwidthd/dev seen false db_fset bandwidthd/subnet seen false db_fset bandwidthd/promisc seen false # bwdpgsql-specific: db_fset bandwidthd-pgsql/sensorid seen false fi # --- Listen on which interface? --- # FIXME: replace db_subst "interfaces" with db_setchoices when it becomes # available in debconf. See Debian bug #174130. # Set available choices. db_subst bandwidthd/dev "interfaces" "$DEBCONF_INTERFACES" || true # Set default choice (unless valid old value exists). db_get bandwidthd/dev || true if [ "$RET" = "" ]; then db_set bandwidthd/dev "$DEBCONF_INTERFACES_DEFAULT" || true elif [ "$(echo $DEBCONF_INTERFACES | grep -c1 $RET)" = 0 ]; then db_set bandwidthd/dev "$DEBCONF_INTERFACES_DEFAULT" || true fi # Ask question. db_input high bandwidthd/dev || true db_go || true # --- Log/Graph which subnets? --- # Set default subnets (unless value already exists). db_get bandwidthd/subnet || true if [ "$RET" = "" ] ; then db_set bandwidthd/subnet "$DEBCONF_SUBNET_DEFAULT" || true fi # Ask question. db_input high bandwidthd/subnet || true db_go || true # --- Sensor id? --- # Set fully qualified hostname as default sensor string db_get bandwidthd-pgsql/sensorid || true if [ "$RET" = "" ]; then db_set bandwidthd-pgsql/sensorid "$DEBCONF_SENSORID" || true fi # ask question. db_input medium bandwidthd-pgsql/sensorid || true db_go || true # --- PROMISC ? --- db_input low bandwidthd/promisc || true db_go || true debian/patches/0000755000000000000000000000000012172534042010615 5ustar debian/patches/0009-Make-HTML-output-valid-and-prevent-sql-injection-in-.patch0000644000000000000000000005472412172534017023773 0ustar From: Andreas Henriksson Date: Sat, 20 Jul 2013 18:17:14 +0200 Subject: Make HTML output valid and prevent sql injection in php code. --- phphtdocs/details.php | 72 +++++++++------ phphtdocs/failures.php | 17 ++-- phphtdocs/footer.php | 9 +- phphtdocs/graph.php | 32 ++++--- phphtdocs/header.php | 11 ++- phphtdocs/include.php | 4 +- phphtdocs/location_statistics.php | 17 ++-- phphtdocs/sensors.php | 180 +++++++++++++++++++++++--------------- phphtdocs/signal_level.php | 12 +-- phphtdocs/uptime.php | 10 +-- 10 files changed, 214 insertions(+), 150 deletions(-) diff --git a/phphtdocs/details.php b/phphtdocs/details.php index cbdd380..17ffa28 100644 --- a/phphtdocs/details.php +++ b/phphtdocs/details.php @@ -2,19 +2,21 @@ include("include.php"); include("header.php"); -if (isset($_GET['sensor_id'])) +if (isset($_GET['sensor_id']) && is_numeric($_GET['sensor_id'])) $sensor_id = $_GET['sensor_id']; else { echo "
Please provide a sensor_id"; + include('footer.php'); exit(1); } if (isset($_GET['ip'])) - $ip = $_GET['ip']; + $ip = pg_escape_string($_GET['ip']); else { echo "
Please provide an ip address"; + include('footer.php'); exit(1); } @@ -26,7 +28,7 @@ else $db = ConnectDb(); -if ($ip == "0.0.0.0/0") +if ($ip == pg_escape_string("0.0.0.0/0")) { $rxtable = "bd_rx_total_log"; $txtable = "bd_tx_total_log"; @@ -62,38 +64,54 @@ group by ip) as rx where tx.ip = rx.ip;"; //echo "
$sql
";exit(0); $result = pg_query($sql); -echo "
IpNameTotalSentReceivedtcpudpicmphttpp2pftp"; +?> + + + + + + + + + +"; else - echo "Total"; + echo fmtb($r['total']).fmtb($r['sent']).fmtb($r['received']). fmtb($r['tcp']).fmtb($r['udp']).fmtb($r['icmp']).fmtb($r['http']). fmtb($r['p2p']).fmtb($r['ftp']); -echo "
IpNameTotalSentReceivedtcpudpicmphttpp2pftp
"; if (strpos($ip, "/") === FALSE) - echo "$ip".gethostbyaddr($ip); + echo "$ip".gethostbyaddr($ip) . "$ip"; + echo "Total$ip
"; +echo "
"; + +echo "

Daily

"; +echo "Send:

"; +echo '
'; +echo "Receive:

"; +echo '
'; -echo "

Daily

"; -echo "Send:

"; -echo "
"; -echo "Receive:

"; -echo "
"; +echo "

Weekly

"; +echo "Send:

"; +echo '
'; +echo "Receive:

"; +echo '
'; -echo "

Weekly

"; -echo "Send:

"; -echo "
"; -echo "Receive:

"; -echo "
"; +echo "

Monthly

"; +echo "Send:

"; +echo '
'; +echo "Receive:

"; +echo '
'; -echo "

Monthly

"; -echo "Send:

"; -echo "
"; -echo "Receive:

"; -echo "
"; +echo "

Yearly

"; +echo "Send:

"; +echo '
'; +echo "Receive:

"; +echo '
'; -echo "

Yearly

"; -echo "Send:

"; -echo "
"; -echo "Receive:

"; -echo "
"; \ No newline at end of file +include('footer.php'); +?> diff --git a/phphtdocs/failures.php b/phphtdocs/failures.php index c02dd49..b8339d2 100755 --- a/phphtdocs/failures.php +++ b/phphtdocs/failures.php @@ -1,5 +1,7 @@ - - -Failure Report - - - - +

Failed Routers

"; } + +include("footer.php"); ?> - \ No newline at end of file + + diff --git a/phphtdocs/footer.php b/phphtdocs/footer.php index 2986e81..2cae931 100644 --- a/phphtdocs/footer.php +++ b/phphtdocs/footer.php @@ -1,3 +1,6 @@ - \ No newline at end of file +Page load completed in ". (time() - $starttime) ." seconds

"); +?> + + + diff --git a/phphtdocs/graph.php b/phphtdocs/graph.php index 545f079..59a77d8 100644 --- a/phphtdocs/graph.php +++ b/phphtdocs/graph.php @@ -1,4 +1,4 @@ - diff --git a/phphtdocs/header.php b/phphtdocs/header.php index beac09f..46dda3e 100644 --- a/phphtdocs/header.php +++ b/phphtdocs/header.php @@ -1,3 +1,12 @@ + + +BandwidthD<?php if (isset($subtitle)) { echo ' - ' . $subtitle; } ?> + + + +
- +BandwidthD Logo +
+ diff --git a/phphtdocs/include.php b/phphtdocs/include.php index 81d8e1d..688b9fc 100644 --- a/phphtdocs/include.php +++ b/phphtdocs/include.php @@ -60,9 +60,9 @@ function fmtb($kbytes) $Suffix = 'T'; } - return(sprintf("%.1f%s", $Output, $Suffix)); + return(sprintf("%.1f%s", $Output, $Suffix)); } $starttime = time(); set_time_limit(300); -?> \ No newline at end of file +?> diff --git a/phphtdocs/location_statistics.php b/phphtdocs/location_statistics.php index 59d604e..c34041b 100755 --- a/phphtdocs/location_statistics.php +++ b/phphtdocs/location_statistics.php @@ -1,14 +1,9 @@ - -Location Statistics -
- - - -
+?> +


-
\ No newline at end of file +
+ + diff --git a/phphtdocs/sensors.php b/phphtdocs/sensors.php index 2593c86..5abafc6 100755 --- a/phphtdocs/sensors.php +++ b/phphtdocs/sensors.php @@ -1,34 +1,35 @@ - - - - -
> - + + + +
+ + + + + +
Collecting data..."; - exit; + include('footer.php'); + exit(); } ?> + - + + - + + - ->Display Graphs + + + +>Display Graphs -Subnet Filter:"> + + +Subnet Filter:"> + +
-
$sql
"; exit(0); pg_query("SET sort_mem TO 30000;"); pg_send_query($db, $sql); @@ -156,18 +181,28 @@ pg_query("set sort_mem to default;"); if ($limit == "all") $limit = pg_num_rows($result); -echo "
IpNameTotalSentReceivedtcpudpicmphttpmailp2pftp"; +?> + + + + + + + + + +"; +if (!$graphs) + $url = ""; else - $url = ""; + $url = ''; -echo "\n"; foreach (array("total", "sent", "received", "tcp", "udp", "icmp", "http", "mail", "p2p", "ftp") as $key) { for($Counter=0, $Total = 0; $Counter < pg_num_rows($result); $Counter++) @@ -183,22 +218,22 @@ echo "\n"; for($Counter=0; $Counter < pg_num_rows($result) && $Counter < $limit; $Counter++) { $r = pg_fetch_array($result, $Counter); - if ($graphs == "") - $url = ""; + if (!$graphs) + $url = ""; else - $url = ""; - echo ""; echo fmtb($r['total']).fmtb($r['sent']).fmtb($r['received']). fmtb($r['tcp']).fmtb($r['udp']).fmtb($r['icmp']).fmtb($r['http']).fmtb($r['mail']). - fmtb($r['p2p']).fmtb($r['ftp'])."\n"; + fmtb($r['p2p']).fmtb($r['ftp'])."\n"; } -echo "
IpNameTotalSentReceivedtcpudpicmphttpmailp2pftp
".$url."Total$subnet"; +echo "
".$url."Total$subnet
".$url; - echo $r['ip']."".gethostbyaddr($r['ip']); - echo ""; + $url = ''; + echo "
" . $url . $r['ip'] . "" . gethostbyaddr($r['ip']) . "
"; +echo "
"; // Stop here -if ($graphs == "") +if (!$graphs) { + include('footer.php'); exit(); +} // Output Total Graph for($Counter=0, $Total = 0; $Counter < pg_num_rows($result); $Counter++) @@ -215,34 +250,35 @@ else $sn = str_replace("/", "_", $subnet); -echo "

"; -echo "Total - Total of $subnet

"; -echo ""; -echo "Send:

"; -echo "
\n"; +echo "

"; +echo "Total - Total of $subnet

"; +echo "Send:

"; +echo '
' . "\n"; if ($subnet == "0.0.0.0/0") $total_table = "bd_rx_total_log"; else $total_table = "bd_rx_log"; -echo "Receive:

"; -echo "
\n"; -echo "[Return to Top]"; +echo "Receive:

"; +echo '
' . "\n"; +echo '[Return to Top]'; // Output Other Graphs for($Counter=0; $Counter < pg_num_rows($result) && $Counter < $limit; $Counter++) { $r = pg_fetch_array($result, $Counter); - echo "

"; + echo "

"; if ($r['ip'] == "0.0.0.0") - echo "Total - Total of all subnets

"; + echo "Total - Total of all subnets"; else - echo $r['ip']." - ".gethostbyaddr($r['ip'])."

"; - echo ""; - echo "Send:

"; - echo "
\n"; - echo "Receive:

"; - echo "
\n"; - echo "[Return to Top]"; + echo $r['ip']." - ".gethostbyaddr($r['ip']); + echo ""; + echo "Send:

"; + echo '
' . "\n"; + echo "Receive:

"; + echo '
' . "\n"; + echo '[Return to Top]'; } -include('footer.php'); \ No newline at end of file + +include('footer.php'); +?> diff --git a/phphtdocs/signal_level.php b/phphtdocs/signal_level.php index c78ec23..e236389 100755 --- a/phphtdocs/signal_level.php +++ b/phphtdocs/signal_level.php @@ -1,11 +1,6 @@ - - -Signal Level Report - - - -"; } + +include("footer.php"); ?> - \ No newline at end of file diff --git a/phphtdocs/uptime.php b/phphtdocs/uptime.php index 6ed928c..0d11e1d 100755 --- a/phphtdocs/uptime.php +++ b/phphtdocs/uptime.php @@ -1,11 +1,6 @@ - - -Uptime Report - - - "; } + +include("footer.php"); ?> - \ No newline at end of file debian/patches/0002-fix-version-in-configure-script.patch0000644000000000000000000000107712172534017020362 0ustar From: Andreas Henriksson Date: Sat, 20 Jul 2013 18:17:14 +0200 Subject: fix version in configure script --- configure.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index f86c4d7..6d9eea5 100644 --- a/configure.in +++ b/configure.in @@ -7,8 +7,8 @@ AC_CONFIG_HEADER([config.h]) MAJOR_VERSION=2 MINOR_VERSION=0 -RELEASE_VERSION=0 -EXTRA_VERSION="" +RELEASE_VERSION=1 +EXTRA_VERSION="+cvs20090917" VERSION="$MAJOR_VERSION.$MINOR_VERSION.$RELEASE_VERSION$EXTRA_VERSION" # Checks for programs. debian/patches/0003-Add-configure-option-for-pgsql-support.patch0000644000000000000000000000475312172534017021630 0ustar From: Andreas Henriksson Date: Sat, 20 Jul 2013 18:17:14 +0200 Subject: Add configure option for pgsql support Add configure option --enable-pgsql to manually be able to select instead of automagically choosing at build-time, to be able to build both the static- and postgresql-version of bandwidthd --- configure.in | 36 ++++++++++++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/configure.in b/configure.in index 6d9eea5..adbe427 100644 --- a/configure.in +++ b/configure.in @@ -55,10 +55,35 @@ AC_CHECK_LIB(pcap, pcap_open_live, , [AC_CHECK_LIB(wpcap, pcap_open_live, ,[AC_MSG_ERROR([Bandwidthd requires but cannot find libpcap])])]) # Optional Library -AC_CHECK_FILE(/usr/local/pgsql/lib, LDFLAGS="$LDFLAGS -L/usr/local/pgsql/lib") -AC_CHECK_FILE(/usr/local/pgsql/include, CPPFLAGS="$CPPFLAGS -I/usr/local/pgsql/include") -AC_CHECK_LIB(pq, PQconnectdb, - [AC_CHECK_LIB(pq,PQexecParams, ,AC_MSG_WARN([libpq exists but is too old... bandwidthd requires support for PQexecParams]))]) +AC_PATH_PROG(PG_CONFIG, pg_config) + +use_pgsql=no + +if test x$enable_pgsql = xyes ; then + if test "x$PG_CONFIG" = "x" ; then + echo "*** Couldn't find pg_config. Disabling PostgreSQL support." + else + LDFLAGS="$LDFLAGS -L`$PG_CONFIG --libdir` -lpq" + + pgsql_cflags=`$PG_CONFIG --includedir` + if test "x$pgsql_cflags" != "x/usr/include" ; then + CPPFLAGS="$CPPFLAGS -I$pgsql_cflags" + fi + + use_pgsql=yes + AC_DEFINE(HAVE_LIBPQ, 1, "Enable PostgreSQL compiletime option") + fi +fi + +#AM_CONDITIONAL(HAVE_PGSQL, test x$use_pgsql != xno) + +#AC_SUBST(PG_LIBS) +#AC_SUBST(PG_CFLAGS) + +#AC_CHECK_FILE(/usr/local/pgsql/lib, LDFLAGS="$LDFLAGS -L/usr/local/pgsql/lib") +#AC_CHECK_FILE(/usr/local/pgsql/include, CPPFLAGS="$CPPFLAGS -I/usr/local/pgsql/include") +#AC_CHECK_LIB(pq, PQconnectdb, +# [AC_CHECK_LIB(pq,PQexecParams, ,AC_MSG_WARN([libpq exists but is too old... bandwidthd requires support for PQexecParams]))]) # Checks for header files. AC_HEADER_DIRENT @@ -133,4 +158,7 @@ AC_DEFINE_DIR(CONFIG_FILE, config_file, [Name of bandwidthd.conf]) AC_DEFINE_DIR(LOG_DIR, log_dir, [Name of log directory]) AC_DEFINE_DIR(HTDOCS_DIR, htdocs_dir, [Name of htdocs directory]) AC_DEFINE_DIR(EXTENSION_DIR, extension_dir, [Name of the extensions directory]) +AC_ARG_ENABLE([pgsql], AC_HELP_STRING([--enable-pgsql], + [Enable PostgreSQL support. Default is yes, if available.]), + enable_pgsql="$enableval", enable_pgsql=yes) AC_OUTPUT(Makefile) debian/patches/0007-Fix-recover-CDF-option.patch0000644000000000000000000000241312172534017016315 0ustar From: Logan Gunthorpe Date: Sat, 20 Jul 2013 18:17:14 +0200 Subject: Fix recover CDF option Upstream (sourceforge) Tracker id 2018613 (See Bug link) New upstream bug id 39. Bug: http://sourceforge.net/p/bandwidthd/bugs/39/ Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=660810 Forwarded: yes --- bandwidthd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bandwidthd.c b/bandwidthd.c index 7d40c0c..bc34aa4 100644 --- a/bandwidthd.c +++ b/bandwidthd.c @@ -1192,10 +1192,10 @@ void RCDF_Load(FILE *cdf) if (fscanf(cdf, "%llu,%llu,%llu,%llu,%llu,%llu,%llu,%llu,", &ip->Send.total, &ip->Send.icmp, &ip->Send.udp, - &ip->Send.tcp, &ip->Send.ftp, &ip->Send.http, &ip->Send.mail, &ip->Send.p2p) != 7 + &ip->Send.tcp, &ip->Send.ftp, &ip->Send.http, &ip->Send.mail, &ip->Send.p2p) != 8 || fscanf(cdf, "%llu,%llu,%llu,%llu,%llu,%llu,%llu,%llu", &ip->Receive.total, &ip->Receive.icmp, &ip->Receive.udp, - &ip->Receive.tcp, &ip->Receive.ftp, &ip->Receive.http, &ip->Receive.mail, &ip->Receive.p2p) != 7) + &ip->Receive.tcp, &ip->Receive.ftp, &ip->Receive.http, &ip->Receive.mail, &ip->Receive.p2p) != 8) goto End_RecoverDataFromCdf; } debian/patches/0005-Add-missing-MAIL-table-header-to-generated-static-ht.patch0000644000000000000000000000365212172534017023674 0ustar From: Andreas Henriksson Date: Sat, 20 Jul 2013 18:17:14 +0200 Subject: Add missing "MAIL" table header to generated static html. --- graph.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graph.c b/graph.c index 33d62f3..32c4d34 100644 --- a/graph.c +++ b/graph.c @@ -279,7 +279,7 @@ void MakeIndexPages(int NumIps, struct SummaryData *SummaryData[]) // PASS 1: Write out the table - fprintf(file, "Ip and NameTotalTotal SentTotal ReceivedFTPHTTPP2PTCPUDPICMP\n"); + fprintf(file, "Ip and NameTotalTotal SentTotal ReceivedFTPHTTPMAILP2PTCPUDPICMP\n"); for (Counter=0; Counter < 21 && Counter < NumIps; Counter++) PrintTableLine(file, SummaryData[Counter], Counter); @@ -350,7 +350,7 @@ void MakeIndexPages(int NumIps, struct SummaryData *SummaryData[]) // PASS 1: Write out the table - fprintf(file, "Ip and NameTotalTotal SentTotal ReceivedFTPHTTPP2PTCPUDPICMP\n"); + fprintf(file, "Ip and NameTotalTotal SentTotal ReceivedFTPHTTPMAILP2PTCPUDPICMP\n"); for (tCounter=0, Counter=0; Counter < NumIps; Counter++) { if (SubnetTable[SubnetCounter].ip == (SummaryData[Counter]->IP & SubnetTable[SubnetCounter].mask)) debian/patches/series0000644000000000000000000000113612172534017012035 0ustar 0001-Disable-installation-of-bandwidthd.conf-from-orig-so.patch 0002-fix-version-in-configure-script.patch 0003-Add-configure-option-for-pgsql-support.patch 0004-Include-filename-in-syntax-error-logging.patch 0005-Add-missing-MAIL-table-header-to-generated-static-ht.patch 0006-Add-missing-comma-to-fix-syntax-in-created-CDF-files.patch 0007-Fix-recover-CDF-option.patch 0008-Fix-subnet-reporting-in-syslog-message.patch 0009-Make-HTML-output-valid-and-prevent-sql-injection-in-.patch 0010-Add-proper-script-header-and-use-for-loop-since-echo.patch 0011-Fetch-database-credentials-from-external-file.patch debian/patches/0010-Add-proper-script-header-and-use-for-loop-since-echo.patch0000644000000000000000000000153412172534017024046 0ustar From: Andreas Henriksson Date: Sat, 20 Jul 2013 18:17:14 +0200 Subject: Add proper script header and use for loop, since echo -e is bashism. --- phphtdocs/bd_pgsql_purge.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/phphtdocs/bd_pgsql_purge.sh b/phphtdocs/bd_pgsql_purge.sh index cff429f..fee133b 100755 --- a/phphtdocs/bd_pgsql_purge.sh +++ b/phphtdocs/bd_pgsql_purge.sh @@ -1,5 +1,7 @@ +#!/bin/sh + echo "SET sort_mem TO 45000;" -echo -e "bd_rx_log \n bd_tx_log \n bd_rx_total_log \n bd_tx_total_log" | while read TABLE; +for TABLE in bd_rx_log bd_tx_log bd_rx_total_log bd_tx_total_log do cat << EOF BEGIN; @@ -49,4 +51,4 @@ delete from $TABLE where sample_duration < 10*60 and timestamp < now() - interva COMMIT; EOF done -echo "VACUUM ANALYZE" \ No newline at end of file +echo "VACUUM ANALYZE" debian/patches/0008-Fix-subnet-reporting-in-syslog-message.patch0000644000000000000000000000310512172534017021623 0ustar From: John Murphy <2.6.35.10@hotmail.com> Date: Sat, 20 Jul 2013 17:55:06 +0200 Subject: Fix subnet reporting in syslog message With the following entries in etc/bandwidthd.conf, syslog shows: Feb 24 10:35:13 debian netmon: Monitoring subnet 255.0.0.0 with netmask 255.0.0.0 Feb 24 10:35:13 debian netmon: Monitoring subnet 255.255.0.0 with netmask 255.255.0.0 Feb 24 10:35:13 debian netmon: Monitoring subnet 255.240.0.0 with netmask 255.240.0.0 It should show: Feb 24 10:46:53 debian netmon: Monitoring subnet 10.0.0.0 with netmask 255.0.0.0 Feb 24 10:46:53 debian netmon: Monitoring subnet 192.168.0.0 with netmask 255.255.0.0 Feb 24 10:46:53 debian netmon: Monitoring subnet 172.16.0.0 with netmask 255.240.0.0 Cause: Bandwidthd.c calls inet_ntoa twice in a parameter list. inet_ntoa has static character buffer: second call overwrites first. --- bandwidthd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bandwidthd.c b/bandwidthd.c index bc34aa4..ab592ea 100644 --- a/bandwidthd.c +++ b/bandwidthd.c @@ -378,9 +378,12 @@ int main(int argc, char **argv) // Log list of monitored subnets for (Counter = 0; Counter < SubnetCount; Counter++) { + char subnet[16], mask[16]; addr.s_addr = ntohl(SubnetTable[Counter].ip); addr2.s_addr = ntohl(SubnetTable[Counter].mask); - syslog(LOG_INFO, "Monitoring subnet %s with netmask %s", inet_ntoa(addr), inet_ntoa(addr2)); + strncpy(subnet, inet_ntoa(addr), 16); + strncpy(mask, inet_ntoa(addr2), 16); + syslog(LOG_INFO, "Monitoring subnet %s with netmask %s", subnet, mask); } #ifdef HAVE_PCAP_FINDALLDEVS debian/patches/0006-Add-missing-comma-to-fix-syntax-in-created-CDF-files.patch0000644000000000000000000000346112172534017023713 0ustar From: Harald Hvaal Date: Sat, 20 Jul 2013 18:17:14 +0200 Subject: Add missing comma to fix syntax in created CDF files. I've been using bandwidthd for a while, but since upgrading to lucid I noticed my parsing started acting up, so I investigated. Eventually discovered that bandwidthd's CDF writing has been broken since a certain commit last year: http://bandwidthd.cvs.sourceforge.net/viewvc/bandwidthd/bandwidthd/bandwidthd.c?r1=1.52&r2=1.53 You can see there's two fprintf statements there, but after that commit there is no comma between the last value of the first fprintf, and the first value of the second fprintf. It's even easier to spot if you look at an actual line in a CDF file since this, where you get a field like "01329001" which is a concatenation of "0" and "1329001". The fix for this is of course trivial, you just need to add a comma to the end of the first fprintf on line 827: --- bandwidthd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bandwidthd.c b/bandwidthd.c index dc6b0d3..7d40c0c 100644 --- a/bandwidthd.c +++ b/bandwidthd.c @@ -910,7 +910,7 @@ void StoreIPDataInCDF(struct IPData IncData[]) HostIp2CharIp(IPData->ip, IPBuffer); fprintf(cdf, "%s,%lu,", IPBuffer, IPData->timestamp); Stats = &(IPData->Send); - fprintf(cdf, "%llu,%llu,%llu,%llu,%llu,%llu,%llu,%llu", Stats->total, Stats->icmp, Stats->udp, Stats->tcp, Stats->ftp, Stats->http, Stats->mail, Stats->p2p); + fprintf(cdf, "%llu,%llu,%llu,%llu,%llu,%llu,%llu,%llu,", Stats->total, Stats->icmp, Stats->udp, Stats->tcp, Stats->ftp, Stats->http, Stats->mail, Stats->p2p); Stats = &(IPData->Receive); fprintf(cdf, "%llu,%llu,%llu,%llu,%llu,%llu,%llu,%llu\n", Stats->total, Stats->icmp, Stats->udp, Stats->tcp, Stats->ftp, Stats->http, Stats->mail, Stats->p2p); } debian/patches/0001-Disable-installation-of-bandwidthd.conf-from-orig-so.patch0000644000000000000000000000163212172534017024234 0ustar From: Andreas Henriksson Date: Sat, 20 Jul 2013 18:17:14 +0200 Subject: Disable installation of bandwidthd.conf from orig source --- Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 3de8e94..288624b 100644 --- a/Makefile.in +++ b/Makefile.in @@ -54,7 +54,7 @@ install: all @INSTALL@ -d $(DESTDIR)$(sysconfdir) @INSTALL@ -d $(DESTDIR)$(localstatedir)/bandwidthd/htdocs @INSTALL@ -m755 -s bandwidthd $(DESTDIR)$(bindir) - if [ ! -f $(DESTDIR)$(sysconfdir)/bandwidthd.conf ] ; then @INSTALL@ -m644 etc/bandwidthd.conf $(DESTDIR)$(sysconfdir); fi + #if [ ! -f $(DESTDIR)$(sysconfdir)/bandwidthd.conf ] ; then @INSTALL@ -m644 etc/bandwidthd.conf $(DESTDIR)$(sysconfdir); fi @INSTALL@ -m644 htdocs/legend.gif $(DESTDIR)$(localstatedir)/bandwidthd/htdocs @INSTALL@ -m644 htdocs/logo.gif $(DESTDIR)$(localstatedir)/bandwidthd/htdocs debian/patches/0004-Include-filename-in-syntax-error-logging.patch0000644000000000000000000000141112172534017022062 0ustar From: Andreas Henriksson Date: Sat, 20 Jul 2013 18:17:14 +0200 Subject: Include filename in syntax error logging Say which file the syntax error is in, to make logged error message clear. --- conf.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf.y b/conf.y index 30563a0..4c1dca4 100644 --- a/conf.y +++ b/conf.y @@ -20,8 +20,8 @@ int LineNo = 1; void bdconfig_error(const char *str) { - fprintf(stderr, "Syntax Error \"%s\" on line %d\n", str, LineNo); - syslog(LOG_ERR, "Syntax Error \"%s\" on line %d", str, LineNo); + fprintf(stderr, "Syntax Error \"%s\" on line %d in bandwidthd.conf\n", str, LineNo); + syslog(LOG_ERR, "Syntax Error \"%s\" on line %d in bandwidthd.conf", str, LineNo); exit(1); } debian/patches/0011-Fetch-database-credentials-from-external-file.patch0000644000000000000000000000172312172534017023006 0ustar From: Andreas Henriksson Date: Sat, 20 Jul 2013 18:17:14 +0200 Subject: Fetch database credentials from external file Modify php configuration to fetch postgresql auth params from dbconfig-common generated file. --- phphtdocs/config.conf | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/phphtdocs/config.conf b/phphtdocs/config.conf index 554db7a..a11c69e 100644 --- a/phphtdocs/config.conf +++ b/phphtdocs/config.conf @@ -1,4 +1,4 @@ - \ No newline at end of file +include("/etc/bandwidthd/debian-db.php"); +$db_connect_string = "host='$dbserver' port='$dbport' dbname='$dbname' user='$dbuser' password='$dbpass'"; +?> debian/bandwidthd.preinst0000644000000000000000000000024712156423710012710 0ustar dpkg-maintscript-helper mv_conffile \ /etc/apache2/conf.d/bandwidthd /etc/apache2/conf-available/bandwidthd.conf 2.0.1+cvs20090917-6~ bandwidthd -- "$@" #DEBHELPER# debian/po/0000755000000000000000000000000012172535201007602 5ustar debian/po/nl.po0000644000000000000000000001614411726163021010562 0ustar # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: bandwidthd\n" "Report-Msgid-Bugs-To: andreas@fatal.se\n" "POT-Creation-Date: 2007-03-23 10:46+0100\n" "PO-Revision-Date: 2007-05-01 17:22+0100\n" "Last-Translator: Bart Cornelis \n" "Language-Team: debian-l10n-dutch \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: Dutch\n" #. Type: select #. Description #: ../templates:1001 msgid "Interface to listen on:" msgstr "Interface waarop te luisteren:" #. Type: select #. Description #: ../templates:1001 msgid "" "Bandwidthd needs to know which interface it should listen for traffic on. " "Only a single interface can be specified. If you want to listen on all " "interfaces you should specify the metainterface \"any\". Running " "\"bandwidthd -l\" will list available interfaces." msgstr "" "Bandwidthd dient te weten op welke interface geluisterd moet worden voor " "verkeer. Er kan slechts één interface opgegeven worden. Als u op alle " "interfaces wilt luisteren dient u hier de meta-interface 'any' op te geven. " "Het commando 'bandwidthd -l' geeft de beschikbare interfaces weer." #. Type: string #. Description #: ../templates:2001 msgid "Subnets to log details about:" msgstr "Subnets waarvoor details gelogd moeten worden:" #. Type: string #. Description #: ../templates:2001 msgid "" "Bandwidthd can create graphs for one or several ip-subnets. Subnets are " "specified either in dotted-quad format (192.168.0.0 255.255.0.0) or in CIDR " "format (192.168.0.0/16) and separated by a comma. Example: 192.168.0.0/16, " "10.0.0.0 255.0.0.0, 172.16.1.0/24. If you don't know what to specify then " "you can use 0.0.0.0/0 but it is strongly discouraged." msgstr "" "Bandwidthd kan grafieken voor één of meer ip-subnetten genereren. Subnetten " "kunnen opgegeven worden in 'dotted-quad'-formaat (192.168.0.0 255.255.0.0) " "of in CIDR-formaat (192.168.0.0/16) en dienen gescheiden te zijn door " "komma's. Voorbeeld: 192.168.0.0/16, 10.0.0.0 255.0.0.0, 172.16.1.0/24. Als u " "niet weet wat hier op te geven kunt u altijd 0.0.0.0/0 gebruiken, al is dit " "sterk af te raden." #. Type: boolean #. Description #: ../templates:3001 msgid "Output CDF data logs?" msgstr "Wilt u CDF-datalogs uitvoeren?" #. Type: boolean #. Description #: ../templates:3001 msgid "" "Bandwidthd can log captured traffic information to Common Data File (CDF) " "logs. These logs are required if you want to keep old information stored " "between restarts of the bandwidthd daemon. Also see the recovercdf " "configuration option." msgstr "" "Bandwidth kan het de onderschepte verkeersinformatie loggen in CDF-formaat " "(Common Data file). Deze logs zijn vereist als u wilt dat oude informatie " "opgeslagen wordt tussen herstarts avn de bandwidthd-achtergronddienst. Zie " "ook de recovercdf configuratie-optie." #. Type: boolean #. Description #: ../templates:4001 msgid "Recover old data from logs on restart?" msgstr "Wilt u oude datalogs herstellen bij herstarts?" #. Type: boolean #. Description #: ../templates:4001 msgid "" "If old data is going to be outputed in the graphs, it needs to be read when " "BandwidthD is restarted. Parsing the CDF logs can take quite some time on a " "slow machine so you might want to disable it, but then you'll lose the " "information in the graphs after a reboot and similar.... Also make sure the " "output_cdf config option is enabled." msgstr "" "Als oude data uitgevoerd moet worden in de grafieken dient deze ingelezen te " "worden bij het starten van bandwidthd. Parsen van de CDF-logs kan enige tijd " "in beslag nemen en op een trage machine kan het dan ook aan te raden zijn om " "dit uit te schakelen, al verliest u dan wel de infroamtie in de grafieken na " "een herstart... Ook dient u ervoor te zorgen dat de configuratieoptie " "'output_cdf' geactiveerd is." #. Type: string #. Description #: ../templates:5001 msgid "Graph webpage autorefresh delay (seconds):" msgstr "" "Automatisch verversingsinterval voor de grafiek-webpagina (in seconden):" #. Type: string #. Description #: ../templates:5001 msgid "" "With this option you can tweak the delay used in the html as \"META REFRESH" "\" value. The default is 150 seconds (2.5 minutes). To disable automatic " "reloads of the webpage enter 0. This way the visitor will have to manually " "push refresh in his browser to get updated graphs." msgstr "" "Met deze optie kunt u het interval instellen dat in de html-code gebruikt " "wordt wal waarde voor 'META REFRESH'. De standaardwaarde is 150 seconden " "(2,5 minuten). Als u automatisch herladen van de webpagina wilt uitschakelen " "dient u hier 0 aan te geven, bezoekers dienen dan handmatig de pagina te " "verversen om bijgewerkte grafieken te zien te krijgen." #. Type: boolean #. Description #: ../templates:6001 msgid "Put interface in PROMISC mode?" msgstr "Wilt u de interface naar PROMISC-modus omschakelen?" #. Type: boolean #. Description #: ../templates:6001 msgid "" "If this option is enabled, all interfaces used to capture traffic " "information will be put in promiscuous mode. This way traffic thats not " "routed via the machine running bandwidthd might be trackable anyway. " "Enabling promiscuous mode will probably not be able to capture any more " "traffic in a normal switched network. Also rootkit detectors might warn " "about bandwidthd being a virus if using promiscuous mode. You should " "probably leave this option disabled." msgstr "" "Als deze optie geactiveerd is worden alle interfaces waarop verkeer " "onderschept wordt in promiscue-modus gezet. Op die manier kan verkeer dat " "niet via de machine waarop bandwithd draait gerout wordt toch onderschept " "worden. In een normaal netwerk met switches levert het activeren van " "promiscue modus waarschijnlijk geen extra onderschept verkeer op. Ook kan " "het zijn dat rootkit-detector-programma's waarschuwingen geven omtrent " "bandwidthd waneer deze promiscue modus gebruikt. Waarschijnlijk kunt u deze " "optie best gedeactiveerd laten." #. Type: string #. Description #: ../templates:7001 msgid "This sensors identification string:" msgstr "De identificatiestring voor deze sensor:" #. Type: string #. Description #: ../templates:7001 msgid "" "Each sensor should have an identification string to be able to tell from " "where the traffic in the PostgreSQL-database was detected on. This option is " "usually set to the fully qualified hostname of the machine running the " "bandwidthd sensor. This needs to be a unique string which no other " "bandwidthd sensor that reports to the same database uses." msgstr "" "elke sensor dient een identificatiestring te heben om te kunnen bijhouden " "waar het verkeer in de PostgreSQL-database gedetecteerd was. Deze optie " "wordt gewoonlijk ingesteld op de FQDN (Fully Qualified Domainname) van de " "machine waarop de bandwithd-sensor draait. Dit dient een unieke string te " "zijn voor de bandwithd-sensors die dezelfde database gebruiken." debian/po/templates.pot0000644000000000000000000001011211726163021012320 0ustar # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: andreas@fatal.se\n" "POT-Creation-Date: 2007-03-23 10:46+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #. Type: select #. Description #: ../templates:1001 msgid "Interface to listen on:" msgstr "" #. Type: select #. Description #: ../templates:1001 msgid "" "Bandwidthd needs to know which interface it should listen for traffic on. " "Only a single interface can be specified. If you want to listen on all " "interfaces you should specify the metainterface \"any\". Running " "\"bandwidthd -l\" will list available interfaces." msgstr "" #. Type: string #. Description #: ../templates:2001 msgid "Subnets to log details about:" msgstr "" #. Type: string #. Description #: ../templates:2001 msgid "" "Bandwidthd can create graphs for one or several ip-subnets. Subnets are " "specified either in dotted-quad format (192.168.0.0 255.255.0.0) or in CIDR " "format (192.168.0.0/16) and separated by a comma. Example: 192.168.0.0/16, " "10.0.0.0 255.0.0.0, 172.16.1.0/24. If you don't know what to specify then " "you can use 0.0.0.0/0 but it is strongly discouraged." msgstr "" #. Type: boolean #. Description #: ../templates:3001 msgid "Output CDF data logs?" msgstr "" #. Type: boolean #. Description #: ../templates:3001 msgid "" "Bandwidthd can log captured traffic information to Common Data File (CDF) " "logs. These logs are required if you want to keep old information stored " "between restarts of the bandwidthd daemon. Also see the recovercdf " "configuration option." msgstr "" #. Type: boolean #. Description #: ../templates:4001 msgid "Recover old data from logs on restart?" msgstr "" #. Type: boolean #. Description #: ../templates:4001 msgid "" "If old data is going to be outputed in the graphs, it needs to be read when " "BandwidthD is restarted. Parsing the CDF logs can take quite some time on a " "slow machine so you might want to disable it, but then you'll lose the " "information in the graphs after a reboot and similar.... Also make sure the " "output_cdf config option is enabled." msgstr "" #. Type: string #. Description #: ../templates:5001 msgid "Graph webpage autorefresh delay (seconds):" msgstr "" #. Type: string #. Description #: ../templates:5001 msgid "" "With this option you can tweak the delay used in the html as \"META REFRESH" "\" value. The default is 150 seconds (2.5 minutes). To disable automatic " "reloads of the webpage enter 0. This way the visitor will have to manually " "push refresh in his browser to get updated graphs." msgstr "" #. Type: boolean #. Description #: ../templates:6001 msgid "Put interface in PROMISC mode?" msgstr "" #. Type: boolean #. Description #: ../templates:6001 msgid "" "If this option is enabled, all interfaces used to capture traffic " "information will be put in promiscuous mode. This way traffic thats not " "routed via the machine running bandwidthd might be trackable anyway. " "Enabling promiscuous mode will probably not be able to capture any more " "traffic in a normal switched network. Also rootkit detectors might warn " "about bandwidthd being a virus if using promiscuous mode. You should " "probably leave this option disabled." msgstr "" #. Type: string #. Description #: ../templates:7001 msgid "This sensors identification string:" msgstr "" #. Type: string #. Description #: ../templates:7001 msgid "" "Each sensor should have an identification string to be able to tell from " "where the traffic in the PostgreSQL-database was detected on. This option is " "usually set to the fully qualified hostname of the machine running the " "bandwidthd sensor. This needs to be a unique string which no other " "bandwidthd sensor that reports to the same database uses." msgstr "" debian/po/ja.po0000644000000000000000000001737011726163021010545 0ustar # Copyright (C) 2009 Andreas Henriksson # This file is distributed under the same license as bandwidthd package. # Hideki Yamane , 2009 # msgid "" msgstr "" "Project-Id-Version: bandwidthd 2.0.1+cvs20090917-3\n" "Report-Msgid-Bugs-To: andreas@fatal.se\n" "POT-Creation-Date: 2007-03-23 10:46+0100\n" "PO-Revision-Date: 2009-10-25 06:52+0900\n" "Last-Translator: Hideki Yamane (Debian-JP) \n" "Language-Team: Japanese \n" "Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: select #. Description #: ../templates:1001 msgid "Interface to listen on:" msgstr "listen するインターフェイス:" #. Type: select #. Description #: ../templates:1001 msgid "" "Bandwidthd needs to know which interface it should listen for traffic on. " "Only a single interface can be specified. If you want to listen on all " "interfaces you should specify the metainterface \"any\". Running " "\"bandwidthd -l\" will list available interfaces." msgstr "" "bandwidthd はどのインターフェイスがトラフィックを listen するのかを知っている" "必要があります。インターフェイスは一つだけ指定できます。全てのインターフェイ" "スで listen したい場合は擬似インターフェイス「any」を指定してください。" "「bandwidthd -l」を実行すると利用可能なインターフェイスの一覧を出力します。" #. Type: string #. Description #: ../templates:2001 msgid "Subnets to log details about:" msgstr "詳細を記録するサブネット:" #. Type: string #. Description #: ../templates:2001 msgid "" "Bandwidthd can create graphs for one or several ip-subnets. Subnets are " "specified either in dotted-quad format (192.168.0.0 255.255.0.0) or in CIDR " "format (192.168.0.0/16) and separated by a comma. Example: 192.168.0.0/16, " "10.0.0.0 255.0.0.0, 172.16.1.0/24. If you don't know what to specify then " "you can use 0.0.0.0/0 but it is strongly discouraged." msgstr "" "bandwidthd は 1 つ、あるいは複数の IP サブネットについてグラフを作成できま" "す。サブネットは 4 つの数字をドットで区切った形式 (192.168.0.0 255.255.0.0) " "か CIDR 形式 (192.168.0.0/16) で指定され、コンマで区切られます。例: " "192.168.0.0/16, 10.0.0.0 255.0.0.0, 172.16.1.0/24 となります。何を指定すれば" "良いのか分からない場合は 0.0.0.0/0 を利用できますが、これは全くお勧めしませ" "ん。" #. Type: boolean #. Description #: ../templates:3001 msgid "Output CDF data logs?" msgstr "CDF データログを出力しますか?" #. Type: boolean #. Description #: ../templates:3001 msgid "" "Bandwidthd can log captured traffic information to Common Data File (CDF) " "logs. These logs are required if you want to keep old information stored " "between restarts of the bandwidthd daemon. Also see the recovercdf " "configuration option." msgstr "" "bandwidthd は、取得したトラフィック情報を Common Data File (CDF) ログに記録で" "きます。このログは bandwidthd デーモンを再起動する間に以前の情報を保存してお" "きたい場合に必要です。recovercdf 設定オプションも参照してください。" #. Type: boolean #. Description #: ../templates:4001 msgid "Recover old data from logs on restart?" msgstr "再起動時に古いデータをログから復元しますか?" #. Type: boolean #. Description #: ../templates:4001 msgid "" "If old data is going to be outputed in the graphs, it needs to be read when " "BandwidthD is restarted. Parsing the CDF logs can take quite some time on a " "slow machine so you might want to disable it, but then you'll lose the " "information in the graphs after a reboot and similar.... Also make sure the " "output_cdf config option is enabled." msgstr "" "古いデータをグラフに出力し続ける場合、BandwidthD が再起動される時に読み込む必" "要があります。遅いマシンで CDF ログを処理するのは少々時間がかかるので無効にす" "ると良いですが、その場合は再起動した場合などにグラフ情報を失います。" "output_cdf 設定オプションが有効なのも確認してください。" #. Type: string #. Description #: ../templates:5001 msgid "Graph webpage autorefresh delay (seconds):" msgstr "グラフウェブページの自動更新間隔 (秒):" #. Type: string #. Description #: ../templates:5001 msgid "" "With this option you can tweak the delay used in the html as \"META REFRESH" "\" value. The default is 150 seconds (2.5 minutes). To disable automatic " "reloads of the webpage enter 0. This way the visitor will have to manually " "push refresh in his browser to get updated graphs." msgstr "" "このオプションで html の「META REFRESH」値で使われる間隔を調整できます。デ" "フォルトは 150 秒 (2.5 分) です。ウェブページの自動リロードを無効にするには " "0 を入力してください。こうすると、来訪者が更新されたグラフを見るには手動でブ" "ラウザを更新する必要が出てきます。" #. Type: boolean #. Description #: ../templates:6001 msgid "Put interface in PROMISC mode?" msgstr "インターフェイスを PROMISC モードにしますか?" #. Type: boolean #. Description #: ../templates:6001 msgid "" "If this option is enabled, all interfaces used to capture traffic " "information will be put in promiscuous mode. This way traffic thats not " "routed via the machine running bandwidthd might be trackable anyway. " "Enabling promiscuous mode will probably not be able to capture any more " "traffic in a normal switched network. Also rootkit detectors might warn " "about bandwidthd being a virus if using promiscuous mode. You should " "probably leave this option disabled." msgstr "" "このオプションを有効にすると、トラフィック情報をキャプチャするのに使われてい" "る全てのインターフェイスは promiscuous モードにされます。こうすると、" "bandwidthd が動作しているマシンを経由しないトラフィックも同様に追跡が可能にな" "ります。通常のスイッチハブが入っているネットワークでは、promiscous モードを有" "効にしても、さらにトラフィックをキャプチャすることはおそらく不可能でしょう。" "また、promiscous モードを使っていると、rootkit 検出ソフトが bandwidthd をウィ" "ルスとして警告するかもしれません。大抵は、このオプションを無効にしておいた方" "が良いでしょう。" #. Type: string #. Description #: ../templates:7001 msgid "This sensors identification string:" msgstr "このセンサーを識別する文字列:" #. Type: string #. Description #: ../templates:7001 msgid "" "Each sensor should have an identification string to be able to tell from " "where the traffic in the PostgreSQL-database was detected on. This option is " "usually set to the fully qualified hostname of the machine running the " "bandwidthd sensor. This needs to be a unique string which no other " "bandwidthd sensor that reports to the same database uses." msgstr "" "各センサーは、検出したトラフィックをどこからのものなのかを識別できる文字列を " "PostgreSQL データベースで持つ必要があります。このオプションは通常 bandwidthd " "センサーが動作しているマシンの完全修飾ホスト名に設定されます。これは、同じ" "データベースにレポートをしている別の bandwidthd センサーが使っていない一意な" "文字列である必要があります。" debian/po/es.po0000644000000000000000000001762011726163021010560 0ustar # bandwidthd po-debconf translation to Spanish # Copyright (C) 2010 Software in the Public Interest # This file is distributed under the same license as the bandwidthd package. # # Changes: # - Initial translation # Francisco Javier Cuadrado , 2010 # # Traductores, si no conocen el formato PO, merece la pena leer la # documentación de gettext, especialmente las secciones dedicadas a este # formato, por ejemplo ejecutando: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # # Equipo de traducción al español, por favor lean antes de traducir # los siguientes documentos: # # - El proyecto de traducción de Debian al español # http://www.debian.org/intl/spanish/ # especialmente las notas y normas de traducción en # http://www.debian.org/intl/spanish/notas # # - La guía de traducción de po's de debconf: # /usr/share/doc/po-debconf/README-trans # o http://www.debian.org/intl/l10n/po-debconf/README-trans # msgid "" msgstr "" "Project-Id-Version: bandwidthd 2.0.1+cvs20090917-3\n" "Report-Msgid-Bugs-To: andreas@fatal.se\n" "POT-Creation-Date: 2007-03-23 10:46+0100\n" "PO-Revision-Date: 2010-04-29 09:30+0200\n" "Last-Translator: Francisco Javier Cuadrado \n" "Language-Team: Debian l10n Spanish \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: select #. Description #: ../templates:1001 msgid "Interface to listen on:" msgstr "Interfaz a escuchar:" #. Type: select #. Description #: ../templates:1001 msgid "" "Bandwidthd needs to know which interface it should listen for traffic on. " "Only a single interface can be specified. If you want to listen on all " "interfaces you should specify the metainterface \"any\". Running " "\"bandwidthd -l\" will list available interfaces." msgstr "" "Bandwidthd necesita conocer en que interfaz debería escuchar el tráfico. " "Sólo se puede especificar una única interfaz. Si quiere escuchar todas las " "interfaces debería especificar la meta-interfaz «any». Para listar todas las " "interfaces disponibles ejecute «bandwidthd -l»." #. Type: string #. Description #: ../templates:2001 msgid "Subnets to log details about:" msgstr "Subredes a registrar:" #. Type: string #. Description #: ../templates:2001 msgid "" "Bandwidthd can create graphs for one or several ip-subnets. Subnets are " "specified either in dotted-quad format (192.168.0.0 255.255.0.0) or in CIDR " "format (192.168.0.0/16) and separated by a comma. Example: 192.168.0.0/16, " "10.0.0.0 255.0.0.0, 172.16.1.0/24. If you don't know what to specify then " "you can use 0.0.0.0/0 but it is strongly discouraged." msgstr "" "Bandwidthd puede crear gráficas para una o más subredes. Las subredes se " "pueden especificar en formato de cuatro puntos (192.168.0.0 255.255.0.0) o " "en formato CIDR (192.168.0.0/16), y separadas por comas. Por ejemplo: " "192.168.0.0/16, 10.0.0.0 255.0.0.0, 172.16.1.0/24. Si no sabe qué poner " "entonces puede utilizar 0.0.0.0/0, aunque se desaconseja totalmente." #. Type: boolean #. Description #: ../templates:3001 msgid "Output CDF data logs?" msgstr "¿Desea crear registros CDF de datos?" #. Type: boolean #. Description #: ../templates:3001 msgid "" "Bandwidthd can log captured traffic information to Common Data File (CDF) " "logs. These logs are required if you want to keep old information stored " "between restarts of the bandwidthd daemon. Also see the recovercdf " "configuration option." msgstr "" "Bandwidthd puede registrar la información del tráfico capturado en registros " "CDF («Common Data File»). Estos registros son necesarios si quiere mantener " "la información antigua almacenada entre reinicios del demonio bandwidthd. " "Vea también la opción de configuración «recovercdf»." #. Type: boolean #. Description #: ../templates:4001 msgid "Recover old data from logs on restart?" msgstr "" "¿Desea recuperar la información antigua a partir de los registros al " "reiniciar?" #. Type: boolean #. Description #: ../templates:4001 msgid "" "If old data is going to be outputed in the graphs, it needs to be read when " "BandwidthD is restarted. Parsing the CDF logs can take quite some time on a " "slow machine so you might want to disable it, but then you'll lose the " "information in the graphs after a reboot and similar.... Also make sure the " "output_cdf config option is enabled." msgstr "" "Si la información se va a mostrar en los gráficos, se necesita leer cuando " "se reinicie bandwidthd. Analizar los registros CDF puede tardar algún tiempo " "en una máquina lenta de modo que podría querer desactivarlo, pero entonces " "perdería la información de los gráficos después de reiniciar... Asegúrese " "también de que la opción de configuración «output_cdf» está activa." #. Type: string #. Description #: ../templates:5001 msgid "Graph webpage autorefresh delay (seconds):" msgstr "" "Intervalo (en segundos) para la actualización automática de la página web de " "los gráficos:" #. Type: string #. Description #: ../templates:5001 msgid "" "With this option you can tweak the delay used in the html as \"META REFRESH" "\" value. The default is 150 seconds (2.5 minutes). To disable automatic " "reloads of the webpage enter 0. This way the visitor will have to manually " "push refresh in his browser to get updated graphs." msgstr "" "Con esta opción puede ajustar el intervalo utilizado en el campo «META " "REFRESH» del archivo html. El valor predeterminado es 150 segundos (2.5 " "minutos). Para desactivar la recarga automática introduzca el valor cero. De " "este modo el visitante tendrá que actualizar manualmente desde su navegador " "para obtener los gráficos actualizados." #. Type: boolean #. Description #: ../templates:6001 msgid "Put interface in PROMISC mode?" msgstr "¿Desea poner la interfaz en modo «PROMISC» (promiscuo)?" #. Type: boolean #. Description #: ../templates:6001 msgid "" "If this option is enabled, all interfaces used to capture traffic " "information will be put in promiscuous mode. This way traffic thats not " "routed via the machine running bandwidthd might be trackable anyway. " "Enabling promiscuous mode will probably not be able to capture any more " "traffic in a normal switched network. Also rootkit detectors might warn " "about bandwidthd being a virus if using promiscuous mode. You should " "probably leave this option disabled." msgstr "" "Si se activa esta opción, todas las interfaces utilizadas para capturar " "información del tráfico se pondrán en modo promiscuo. De este modo el " "tráfico que no se dirija a la máquina que ejecuta bandwidthd puede seguirse. " "Activar el modo promiscuo probablemente no podrá capturar más tráfico que el " "modo normal en una red con switches. Si utiliza el modo promiscuo, también " "puede ocurrir que los detectores de «rootkits» avisen que bandwidthd sea un " "virus. Lo más probable es que debería dejar esta opción desactivada." #. Type: string #. Description #: ../templates:7001 msgid "This sensors identification string:" msgstr "Cadena de identificación de los sensores:" #. Type: string #. Description #: ../templates:7001 msgid "" "Each sensor should have an identification string to be able to tell from " "where the traffic in the PostgreSQL-database was detected on. This option is " "usually set to the fully qualified hostname of the machine running the " "bandwidthd sensor. This needs to be a unique string which no other " "bandwidthd sensor that reports to the same database uses." msgstr "" "Cada sensor debería tener una cadena de identificación para poder indicar " "dónde se detectó el tráfico de la base de datos PostgreSQL. Esta opción " "normalmente está configurada con el nombre completo de la máquina que " "ejecuta el sensor de bandwidthd. Este valor debe ser único y no debe haber " "otro sensor de bandwidthd que informe en la misma base de datos." debian/po/sv.po0000644000000000000000000001635211726163021010602 0ustar # BandwidthD Swedish translation. # Copyright (C) 2006 Andreas Henriksson # This file is distributed under the same license as the "bandwidthd" package. # Andreas Henriksson , 2006. # msgid "" msgstr "" "Project-Id-Version: bandwidthd\n" "Report-Msgid-Bugs-To: andreas@fatal.se\n" "POT-Creation-Date: 2007-03-23 10:46+0100\n" "PO-Revision-Date: 2007-03-29 17:38+0100\n" "Last-Translator: Andreas Henriksson \n" "Language-Team: Swedish \n" "Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: select #. Description #: ../templates:1001 msgid "Interface to listen on:" msgstr "Nätverksgränssnitt att lyssna på:" #. Type: select #. Description #: ../templates:1001 msgid "" "Bandwidthd needs to know which interface it should listen for traffic on. " "Only a single interface can be specified. If you want to listen on all " "interfaces you should specify the metainterface \"any\". Running " "\"bandwidthd -l\" will list available interfaces." msgstr "" "BandwidthD behöver veta vilket nätverks-gränssnitt som det skall lyssnas " "efter trafik på. Endast ett gränssnitt kan anges. Om du vill lyssna efter " "trafik på alla gränssnitt skall meta-gränssnittet \"any\" anges.Kör " "\"bandwidthd -l\" för att få en lista med tillgängliga gränssnitt." #. Type: string #. Description #: ../templates:2001 msgid "Subnets to log details about:" msgstr "Subnät att logga detaljer för:" #. Type: string #. Description #: ../templates:2001 msgid "" "Bandwidthd can create graphs for one or several ip-subnets. Subnets are " "specified either in dotted-quad format (192.168.0.0 255.255.0.0) or in CIDR " "format (192.168.0.0/16) and separated by a comma. Example: 192.168.0.0/16, " "10.0.0.0 255.0.0.0, 172.16.1.0/24. If you don't know what to specify then " "you can use 0.0.0.0/0 but it is strongly discouraged." msgstr "" "Bandwithd kan skapa grafer för ett eller flera ip-subnät. Subnäten " "specificeras antingen i dotted-quad format (192.168.0.0 255.255.0.0) eller i " "CIDR-format (192.168.0.0/16) och separeras med ett komma-tecken. Exempel: " "192.168.0.0/16, 10.0.0.0 255.0.0.0, 172.16.1.0/24. Om du inte vet vad du " "skall ange kan du använda 0.0.0.0/0 men det rekommenderas verkligen inte." #. Type: boolean #. Description #: ../templates:3001 msgid "Output CDF data logs?" msgstr "Skriv CDF data loggar?" #. Type: boolean #. Description #: ../templates:3001 msgid "" "Bandwidthd can log captured traffic information to Common Data File (CDF) " "logs. These logs are required if you want to keep old information stored " "between restarts of the bandwidthd daemon. Also see the recovercdf " "configuration option." msgstr "" "Bandwidthd kan logga infångad trafikinformation till Common Data File (CDF)-" "loggar. Dessa loggar krävs om du vill spara gammal trafikinformation mellan " "omstarter av bandwidthd-demonen.Se också konfigurationsvalet för recovercdf." #. Type: boolean #. Description #: ../templates:4001 msgid "Recover old data from logs on restart?" msgstr "Återläs gammal data från loggar vid omstart?" #. Type: boolean #. Description #: ../templates:4001 msgid "" "If old data is going to be outputed in the graphs, it needs to be read when " "BandwidthD is restarted. Parsing the CDF logs can take quite some time on a " "slow machine so you might want to disable it, but then you'll lose the " "information in the graphs after a reboot and similar.... Also make sure the " "output_cdf config option is enabled." msgstr "" "Om gammal trafikinformation skall finnas i graferna måste det läsas in när " "BandwidthdD startas om. Att läsa in informationen från CDF-filerna kan ta " "ganska lång tid på en långsam manskin så du kan vilja slå av detta " "konfigurationsval, men då förlorar du informationen i graferna efter en " "omstart om liknande... För att detta skall fungera kontrollera så att " "output_cdf är påslaget." #. Type: string #. Description #: ../templates:5001 msgid "Graph webpage autorefresh delay (seconds):" msgstr "Automatisk uppdateringsintervall för grafwebbsidan (sekunder):" #. Type: string #. Description #: ../templates:5001 msgid "" "With this option you can tweak the delay used in the html as \"META REFRESH" "\" value. The default is 150 seconds (2.5 minutes). To disable automatic " "reloads of the webpage enter 0. This way the visitor will have to manually " "push refresh in his browser to get updated graphs." msgstr "" "Med detta konfigurationsval kan du ställa in fördröjningen som använges i " "html-sidornas \"META REFRESH\"-värde. Standardinställningen är 150 sekunder " "(2.5 minuter). För att stänga av automatisk omladdning av webbsidorna ange " "värdet 0. Om detta används måste besökarna manuellt ladda om webbsidan för " "att se förnyade grafer." #. Type: boolean #. Description #: ../templates:6001 msgid "Put interface in PROMISC mode?" msgstr "Kör nätverksgränssnitten i promiskuöst läge?" #. Type: boolean #. Description #: ../templates:6001 msgid "" "If this option is enabled, all interfaces used to capture traffic " "information will be put in promiscuous mode. This way traffic thats not " "routed via the machine running bandwidthd might be trackable anyway. " "Enabling promiscuous mode will probably not be able to capture any more " "traffic in a normal switched network. Also rootkit detectors might warn " "about bandwidthd being a virus if using promiscuous mode. You should " "probably leave this option disabled." msgstr "" "Om detta konfigurationsdirektiv slås på kommer alla nätverksgränssnitt som " "används för att fånga in trafikinformation köras i promiskuöst läge. På " "detta sätt kan trafik som inte skickas via maskinen som kör bandwidthd " "eventuellt fångas upp ändå. Att slå på detta konfigurationsdirektiv kommer " "förmodligen inte göra någon skillnad i ett vanligt switchat nätverk. " "Detekteringsverktyg för rootkit kommer förmodligen också varna att " "bandwidthd är ett virus när promiskuöst läge används. Du gör förmodligen " "klokast i att lämna detta avslaget." #. Type: string #. Description #: ../templates:7001 msgid "This sensors identification string:" msgstr "Denna sensors identifikations-sträng:" #. Type: string #. Description #: ../templates:7001 msgid "" "Each sensor should have an identification string to be able to tell from " "where the traffic in the PostgreSQL-database was detected on. This option is " "usually set to the fully qualified hostname of the machine running the " "bandwidthd sensor. This needs to be a unique string which no other " "bandwidthd sensor that reports to the same database uses." msgstr "" "Varje sensor skall ha en identifikationssträng för att kunna identifiera på " "vilken sensor trafiken som sparats i PostgreSQL-databasen fångades in på. " "Detta konfigurationsdirektiv sätts vanligtvis till den fullständiga " "adressen på maskinen som kör bandwidthd-sensorn. Värdet som anges måste vara " "unikt bland alla sensorer som rapporterar till samma databas." #~ msgid "Listen on which interface?" #~ msgstr "Lyssna på vilket gränssnitt?" #~ msgid "Instruct webbrowser to refresh the graph after how many seconds?" #~ msgstr "" #~ "Instruera webbläsare att ladda om graferna efter hur många sekunder?" debian/po/cs.po0000644000000000000000000001617111726163021010556 0ustar # Bandwidthd Czech translation. # Copyright (C) 2006 # This file is distributed under the same license as the bandwidthd package. # Martin Sin , 2006. # msgid "" msgstr "" "Project-Id-Version: bandwidthd 2.0.1+cvs20050208-6\n" "Report-Msgid-Bugs-To: andreas@fatal.se\n" "POT-Creation-Date: 2007-03-23 10:46+0100\n" "PO-Revision-Date: 2007-03-29 19:43+0200\n" "Last-Translator: Martin Sin \n" "Language-Team: Czech \n" "Language: cs\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: select #. Description #: ../templates:1001 msgid "Interface to listen on:" msgstr "Rozhraní, na kterém poslouchat:" #. Type: select #. Description #: ../templates:1001 msgid "" "Bandwidthd needs to know which interface it should listen for traffic on. " "Only a single interface can be specified. If you want to listen on all " "interfaces you should specify the metainterface \"any\". Running " "\"bandwidthd -l\" will list available interfaces." msgstr "" "Bandwidthd potřebuje znát jméno rozhraní, na kterém má naslouchat síťovému " "provozu. Můžete určit pouze jediné rozhraní. Pokud chcete naslouchat na " "všech rozhraních, zadejte pseudorozhraní \"any\". Seznam dostupných rozhraní " "zobrazíte příkazem \"bandwidthd -l\"." #. Type: string #. Description #: ../templates:2001 msgid "Subnets to log details about:" msgstr "Podsítě, o kterých se budou logovat informace:" #. Type: string #. Description #: ../templates:2001 msgid "" "Bandwidthd can create graphs for one or several ip-subnets. Subnets are " "specified either in dotted-quad format (192.168.0.0 255.255.0.0) or in CIDR " "format (192.168.0.0/16) and separated by a comma. Example: 192.168.0.0/16, " "10.0.0.0 255.0.0.0, 172.16.1.0/24. If you don't know what to specify then " "you can use 0.0.0.0/0 but it is strongly discouraged." msgstr "" "Bandwidthd může vytvářet grafy pro celou řadu podsítí. Ty jsou určeny buď " "klasicky (192.168.0.0 255.255.0.0), nebo pomocí formátu CIDR " "(192.168.0.0/16) a jsou odděleny pomocí čárky. Například: 192.168.0.0/16, " "10.0.0.0 255.0.0.0, 172.16.1.0/24. Pokud nevíte co zadat, můžete použít " "0.0.0.0/0, což se ale silně nedoporučuje." #. Type: boolean #. Description #: ../templates:3001 msgid "Output CDF data logs?" msgstr "Vytvářet datové logy typu CDF?" #. Type: boolean #. Description #: ../templates:3001 msgid "" "Bandwidthd can log captured traffic information to Common Data File (CDF) " "logs. These logs are required if you want to keep old information stored " "between restarts of the bandwidthd daemon. Also see the recovercdf " "configuration option." msgstr "" "Bandwidthd může logovat získané informace o provozu do logů typu CDF (Common " "Data File). Tyto logy jsou nutné v okamžiku, kdy chcete uchovat staré " "informace mezi jednotlivými restarty daemona bandwidthd. Podívejte se také " "na konfigurační volbu recovercdf." #. Type: boolean #. Description #: ../templates:4001 msgid "Recover old data from logs on restart?" msgstr "Obnovit při restartu stará data z logu?" #. Type: boolean #. Description #: ../templates:4001 msgid "" "If old data is going to be outputed in the graphs, it needs to be read when " "BandwidthD is restarted. Parsing the CDF logs can take quite some time on a " "slow machine so you might want to disable it, but then you'll lose the " "information in the graphs after a reboot and similar.... Also make sure the " "output_cdf config option is enabled." msgstr "" "Pokud chcete v grafech zobrazit i stará data, je potřeba je načíst při " "restartu BandwidthD. Analýza logů CDF může chvíli zabrat a zpomalit počítač, " "takže ji možná budete chtít vypnout. Tím ale z grafů ztratíte informace při " "každém restartu atd.... Také se prosím ujistěte, že je zapnutá konfigurační " "volba output_cdf." #. Type: string #. Description #: ../templates:5001 msgid "Graph webpage autorefresh delay (seconds):" msgstr "Interval automatické obnovy stránky s grafem (v sekundách):" #. Type: string #. Description #: ../templates:5001 msgid "" "With this option you can tweak the delay used in the html as \"META REFRESH" "\" value. The default is 150 seconds (2.5 minutes). To disable automatic " "reloads of the webpage enter 0. This way the visitor will have to manually " "push refresh in his browser to get updated graphs." msgstr "" "Pomocí této volby můžete změnit zpoždění použité v html značce \"META REFRESH" "\". Výchozí je 150 sekund (2,5 minuty). Pro vypnutí těchto automatických " "obnov stránky zadejte hodnotu 0. Pak bude muset návštěvník stránku " "aktualizovat ručně." #. Type: boolean #. Description #: ../templates:6001 msgid "Put interface in PROMISC mode?" msgstr "Nastavit rozhraní do promiskuitního módu?" #. Type: boolean #. Description #: ../templates:6001 msgid "" "If this option is enabled, all interfaces used to capture traffic " "information will be put in promiscuous mode. This way traffic thats not " "routed via the machine running bandwidthd might be trackable anyway. " "Enabling promiscuous mode will probably not be able to capture any more " "traffic in a normal switched network. Also rootkit detectors might warn " "about bandwidthd being a virus if using promiscuous mode. You should " "probably leave this option disabled." msgstr "" "Pokud povolíte tuto volbu, budou všechna rozhraní nastavená pro snímání " "informací o provozu přepnuta do promiskuitního módu. V tomto režimu bude " "možné sledovat i provoz, který není směrován skrz počítač s běžícím " "bandwidthd. Nicméně povolením promiskuitního módu v běžné přepínané síti " "pravděpodobně žádné další informace nezískáte. V případě, že tento mód " "zapnete, mohou některé detektory rootkitů považovat bandwidthd za virus. " "Pravděpodobně byste měli nechat tuto volbu vypnutou." #. Type: string #. Description #: ../templates:7001 msgid "This sensors identification string:" msgstr "Identifikační řetězec tohoto senzoru:" #. Type: string #. Description #: ../templates:7001 msgid "" "Each sensor should have an identification string to be able to tell from " "where the traffic in the PostgreSQL-database was detected on. This option is " "usually set to the fully qualified hostname of the machine running the " "bandwidthd sensor. This needs to be a unique string which no other " "bandwidthd sensor that reports to the same database uses." msgstr "" "Každý senzor by měl mít nějaký identifikační řetězec, abyste mohli z " "databáze PostgreSQL rozlišit, na kterém senzoru byl provoz pozorován. Tato " "volba se obvykle nastavuje na úplný název počítače, na kterém běží senzor " "bandwidthd. Tento řetězec musí být jedinečný a nesmí tak kolidovat s žádným " "jiným senzorem, který se používá ve stejné databázi." #~ msgid "Listen on which interface?" #~ msgstr "Na kterém rozhraní mám naslouchat?" #~ msgid "Instruct webbrowser to refresh the graph after how many seconds?" #~ msgstr "Jak často se má aktualizovat pohled na grafy ve webovém prohlížeči?" debian/po/de.po0000644000000000000000000001646011726163021010542 0ustar # Translation of bandwidthd debconf templates to German # Copyright (C) Helge Kreutzmann , 2007. # This file is distributed under the same license as the bandwidthd package. # msgid "" msgstr "" "Project-Id-Version: bandwidthd 2.6-3\n" "Report-Msgid-Bugs-To: andreas@fatal.se\n" "POT-Creation-Date: 2007-03-23 10:46+0100\n" "PO-Revision-Date: 2007-03-23 16:46+0100\n" "Last-Translator: Helge Kreutzmann \n" "Language-Team: German \n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-15\n" "Content-Transfer-Encoding: 8bit\n" #. Type: select #. Description #: ../templates:1001 msgid "Interface to listen on:" msgstr "Schnittstelle, die beobachtet werden soll:" #. Type: select #. Description #: ../templates:1001 msgid "" "Bandwidthd needs to know which interface it should listen for traffic on. " "Only a single interface can be specified. If you want to listen on all " "interfaces you should specify the metainterface \"any\". Running " "\"bandwidthd -l\" will list available interfaces." msgstr "" "Bandwidthd muss die Schnittstelle kennen, deren Verkehr es beobachten soll. " "Es kann nur eine einzelne Schnittstelle angegeben werden. Falls Sie auf " "allen Schnittstellen auf Verkehr warten mchten, mssen Sie die Meta-" "Schnittstelle any angeben. Alle verfgbaren Schnittstellen werden " "aufgelistet, falls Sie bandwidthd -l ausfhren." #. Type: string #. Description #: ../templates:2001 msgid "Subnets to log details about:" msgstr "Subnetze, fr die Details protokolliert werden:" #. Type: string #. Description #: ../templates:2001 msgid "" "Bandwidthd can create graphs for one or several ip-subnets. Subnets are " "specified either in dotted-quad format (192.168.0.0 255.255.0.0) or in CIDR " "format (192.168.0.0/16) and separated by a comma. Example: 192.168.0.0/16, " "10.0.0.0 255.0.0.0, 172.16.1.0/24. If you don't know what to specify then " "you can use 0.0.0.0/0 but it is strongly discouraged." msgstr "" "Bandwidthd kann fr eine oder mehrere IP-Subnetze Graphen erzeugen. Subnetze " "werden entweder im Punkt-Quad-Format (192.168.0.0 255.255.0.0) oder im CIDR-" "Format (192.168.0.0/16) angegeben und durch Kommata getrennt. Beispiel: " "192.168.0.0/16, 10.0.0.0 255.0.0.0, 172.16.1.0/24. Falls Sie nichts " "anzugeben wissen, knnen Sie 0.0.0.0/0 verwenden, allerdings wird dies " "nachdrcklich nicht empfohlen." #. Type: boolean #. Description #: ../templates:3001 msgid "Output CDF data logs?" msgstr "CDF-Datenprotokolle ausgeben?" #. Type: boolean #. Description #: ../templates:3001 msgid "" "Bandwidthd can log captured traffic information to Common Data File (CDF) " "logs. These logs are required if you want to keep old information stored " "between restarts of the bandwidthd daemon. Also see the recovercdf " "configuration option." msgstr "" "Bandwidthd kann mitgeschnittene Verkehrsinformationen in Common Data File " "(CDF)-Protokollen aufzeichnen. Diese Protokolle werden bentigt, falls Sie " "alte gespeicherte Informationen zwischen Neustarts des Bandwidthd-Daemons " "erhalten mchten. Beachten Sie hierzu auch die recovercdf-" "Konfigurationsoption." #. Type: boolean #. Description #: ../templates:4001 msgid "Recover old data from logs on restart?" msgstr "Alte Daten aus den Protokollen beim Neustart wiederherstellen?" #. Type: boolean #. Description #: ../templates:4001 msgid "" "If old data is going to be outputed in the graphs, it needs to be read when " "BandwidthD is restarted. Parsing the CDF logs can take quite some time on a " "slow machine so you might want to disable it, but then you'll lose the " "information in the graphs after a reboot and similar.... Also make sure the " "output_cdf config option is enabled." msgstr "" "Falls alte Daten in den Graphen ausgegeben werden, mssen diese eingelesen " "werden, wenn BandwidthD neu gestartet wird. Das Auswerten der CDF-Protokolle " "kann auf langsamen Maschinen einige Zeit bentigen, daher mchte Sie es " "eventuell deaktivieren. Allerdings verlieren Sie dann die Informationen in " "den Graphen nach einem Reboot und hnlichem... Stellen Sie daher auch " "sicher, dass die output_cdf-Konfigurationsoption aktiviert ist." #. Type: string #. Description #: ../templates:5001 msgid "Graph webpage autorefresh delay (seconds):" msgstr "Aktualisierungsverzgerung fr die Graph-Webseite (in Sekunden):" #. Type: string #. Description #: ../templates:5001 msgid "" "With this option you can tweak the delay used in the html as \"META REFRESH" "\" value. The default is 150 seconds (2.5 minutes). To disable automatic " "reloads of the webpage enter 0. This way the visitor will have to manually " "push refresh in his browser to get updated graphs." msgstr "" "Mit dieser Option knnen Sie die Verzgerung einstellen, die als HTML META " "REFRESH-Wert eingetragen wird. Der Standardwert betrgt 150 Sekunden (2,5 " "Minuten). Um das automatische Neuladen der Webseite zu unterbinden, tragen " "Sie 0 ein. In diesem Fall muss der Besucher die Seite in seinem Browser " "manuell neu laden, um aktualisierte Graphen zu bekommen." #. Type: boolean #. Description #: ../templates:6001 msgid "Put interface in PROMISC mode?" msgstr "Schnittstelle in PROMISC-Modus schalten?" #. Type: boolean #. Description #: ../templates:6001 msgid "" "If this option is enabled, all interfaces used to capture traffic " "information will be put in promiscuous mode. This way traffic thats not " "routed via the machine running bandwidthd might be trackable anyway. " "Enabling promiscuous mode will probably not be able to capture any more " "traffic in a normal switched network. Also rootkit detectors might warn " "about bandwidthd being a virus if using promiscuous mode. You should " "probably leave this option disabled." msgstr "" "Falls diese Option aktiviert ist, werden alle Schnittstellen, die " "Verkehrsinformationen sammeln, in den promiscuous-Modus versetzt. Damit " "kann unter Umstnden auch Verkehr, der nicht ber die Maschine, auf der " "Bandwidthd luft, geroutet wird, verfolgt werden. In einem normalen Netz mit " "Switch wird der promiscuous-Modus wahrscheinlich keinen zustzlichen " "Verkehr sammeln knnen. Auch knnten Programme zum Erkennen von Rootkits " "Warnungen melden, dass Bandwidthd ein Virus sei, falls der promiscuous-" "Modus verwendet wird. Sie sollten wahrscheinlich diese Option deaktiviert " "lassen." #. Type: string #. Description #: ../templates:7001 msgid "This sensors identification string:" msgstr "Identifikation dieses Sensors:" #. Type: string #. Description #: ../templates:7001 msgid "" "Each sensor should have an identification string to be able to tell from " "where the traffic in the PostgreSQL-database was detected on. This option is " "usually set to the fully qualified hostname of the machine running the " "bandwidthd sensor. This needs to be a unique string which no other " "bandwidthd sensor that reports to the same database uses." msgstr "" "Jeder Sensor sollte eine Identifikation haben, um zu bestimmen, wo der " "Verkehr in der PostgreSQL-Datenbank erkannt wurde. Diese Option wird " "gewhnlich auf den voll-qualifizierten Rechnernamen der Maschine, die den " "Bandwidthd-Sensor betreibt, gesetzt. Dies muss eine eindeutige Zeichenkette " "sein, die von keinem anderen Bandwidthd-Sensor, der an die gleiche Datenbank " "Berichte abliefert, verwendet wird." debian/po/ru.po0000644000000000000000000002151111726163021010571 0ustar # translation of ru.po to Russian # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Konstantin Fadeyev , 2009. # Yuri Kozlov , 2009. msgid "" msgstr "" "Project-Id-Version: bandwidthd 2.0.1+cvs20071208-3\n" "Report-Msgid-Bugs-To: andreas@fatal.se\n" "POT-Creation-Date: 2007-03-23 10:46+0100\n" "PO-Revision-Date: 2009-08-12 21:41+0400\n" "Last-Translator: Yuri Kozlov \n" "Language-Team: Russian \n" "Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.11.4\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" #. Type: select #. Description #: ../templates:1001 msgid "Interface to listen on:" msgstr "Прослушиваемый интерфейс:" #. Type: select #. Description #: ../templates:1001 msgid "" "Bandwidthd needs to know which interface it should listen for traffic on. " "Only a single interface can be specified. If you want to listen on all " "interfaces you should specify the metainterface \"any\". Running " "\"bandwidthd -l\" will list available interfaces." msgstr "" "Для bandwidthd требуется указать интерфейс для прослушивания трафика. Это " "должен быть только один интерфейс. Если вы хотите прослушивать все " "интерфейсы, то введите \"any\". Получить список доступных интерфейсов можно " "по команде \"bandwidthd -l\"." #. Type: string #. Description #: ../templates:2001 msgid "Subnets to log details about:" msgstr "Подробно протоколируемые подсети:" #. Type: string #. Description #: ../templates:2001 msgid "" "Bandwidthd can create graphs for one or several ip-subnets. Subnets are " "specified either in dotted-quad format (192.168.0.0 255.255.0.0) or in CIDR " "format (192.168.0.0/16) and separated by a comma. Example: 192.168.0.0/16, " "10.0.0.0 255.0.0.0, 172.16.1.0/24. If you don't know what to specify then " "you can use 0.0.0.0/0 but it is strongly discouraged." msgstr "" "Bandwidthd может создавать графики для одной или нескольких ip подсетей. " "Подсети задаются в октетном формате (192.168.0.0 255.255.0.0) или в формате " "CIDR (192.168.0.0/16) и отделяются запятыми. Пример: 192.168.0.0/16, " "10.0.0.0 255.0.0.0, 172.16.1.0/24. Если вы не знаете что указывать, то " "можете ввести 0.0.0.0/0, но это настоятельно не рекомендуется." #. Type: boolean #. Description #: ../templates:3001 msgid "Output CDF data logs?" msgstr "Вести журналы данных CDF?" #. Type: boolean #. Description #: ../templates:3001 msgid "" "Bandwidthd can log captured traffic information to Common Data File (CDF) " "logs. These logs are required if you want to keep old information stored " "between restarts of the bandwidthd daemon. Also see the recovercdf " "configuration option." msgstr "" "Bandwidthd может сохранять информацию о захваченном трафике в журналы Common " "Data File (CDF). Эти журналы нужны, если вы хотите сохранить данные между " "перезапусками службы bandwidthd. Также см. настроечный параметр recovercdf." #. Type: boolean #. Description #: ../templates:4001 msgid "Recover old data from logs on restart?" msgstr "Восстанавливать данные из журналов при перезапуске?" #. Type: boolean #. Description #: ../templates:4001 msgid "" "If old data is going to be outputed in the graphs, it needs to be read when " "BandwidthD is restarted. Parsing the CDF logs can take quite some time on a " "slow machine so you might want to disable it, but then you'll lose the " "information in the graphs after a reboot and similar.... Also make sure the " "output_cdf config option is enabled." msgstr "" "Если для создания графиков нужно использовать старые данные, то BandwidthD " "должен их прочитать после перезапуска. Анализ журналов CDF на медленной " "машине займёт какое-то время, поэтому вы можете захотеть выключить его, но " "при этом вы потеряете информацию на графиках после перезагрузки или при " "других обстоятельствах... Также убедитесь, что задан параметр output_cdf." #. Type: string #. Description #: ../templates:5001 msgid "Graph webpage autorefresh delay (seconds):" msgstr "" "Задержка автоматического обновления графиков на веб-странице (в секундах):" #. Type: string #. Description #: ../templates:5001 msgid "" "With this option you can tweak the delay used in the html as \"META REFRESH" "\" value. The default is 150 seconds (2.5 minutes). To disable automatic " "reloads of the webpage enter 0. This way the visitor will have to manually " "push refresh in his browser to get updated graphs." msgstr "" "Этим параметром можно подстроить задержку, указываемую в html, в \"META " "REFRESH\". По умолчанию -- 150 секунд (2.5 минуты). Чтобы выключить " "автоматическое обновление веб-страницы введите 0. При этом посетитель должен " "будет вручную запрашивать обновление страницы в браузере для получения " "обновлённых графиков." #. Type: boolean #. Description #: ../templates:6001 msgid "Put interface in PROMISC mode?" msgstr "Перевести интерфейс в режим PROMISC?" #. Type: boolean #. Description #: ../templates:6001 msgid "" "If this option is enabled, all interfaces used to capture traffic " "information will be put in promiscuous mode. This way traffic thats not " "routed via the machine running bandwidthd might be trackable anyway. " "Enabling promiscuous mode will probably not be able to capture any more " "traffic in a normal switched network. Also rootkit detectors might warn " "about bandwidthd being a virus if using promiscuous mode. You should " "probably leave this option disabled." msgstr "" "Если ответить утвердительно, то все интерфейсы, используемые для захвата " "трафика, будут переведены в неразборчивый режим. В этом режиме bandwidthd " "получит доступ к трафику, который не предназначен для данной машины. " "Включение неразборчивого режима в нормальных коммутируемых сетях не добавит " "много дополнительного трафика. Также инструменты обнаружения руткитов могут " "выдать предупреждение, что bandwidthd является вирусом. Вероятно, лучше " "ответить отрицательно." #. Type: string #. Description #: ../templates:7001 msgid "This sensors identification string:" msgstr "Идентификационная строка для этого датчика:" #. Type: string #. Description #: ../templates:7001 msgid "" "Each sensor should have an identification string to be able to tell from " "where the traffic in the PostgreSQL-database was detected on. This option is " "usually set to the fully qualified hostname of the machine running the " "bandwidthd sensor. This needs to be a unique string which no other " "bandwidthd sensor that reports to the same database uses." msgstr "" "Каждый датчик должен иметь идентификационную строку, чтобы понимать откуда " "поступила информация о трафике в базу данных PostgreSQL. Обычно здесь " "указывают полностью определённое имя машины, на которой запущен датчик. Это " "должна быть уникальная строка, которая не присвоена ни одному из датчиков " "bandwidthd, пишущих в одну базу данных." debian/po/da.po0000644000000000000000000001565411726163021010542 0ustar # Danish translation Bandwidthd. # Copyright (C) 2010 THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the Bandwidthd package. # Joe Hansen , 2010. # msgid "" msgstr "" "Project-Id-Version: Bandwidthd\n" "Report-Msgid-Bugs-To: andreas@fatal.se\n" "POT-Creation-Date: 2007-03-23 10:46+0100\n" "PO-Revision-Date: 2010-05-03 17:30+01:00\n" "Last-Translator: Joe Hansen \n" "Language-Team: Danish \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: select #. Description #: ../templates:1001 msgid "Interface to listen on:" msgstr "Grænseflade der skal lyttes på:" #. Type: select #. Description #: ../templates:1001 msgid "" "Bandwidthd needs to know which interface it should listen for traffic on. " "Only a single interface can be specified. If you want to listen on all " "interfaces you should specify the metainterface \"any\". Running " "\"bandwidthd -l\" will list available interfaces." msgstr "" "Bandwidthd har brug for at vide hvilken grænseflade den skal lytte efter " "trafik på. Kun en grænseflade kan angives. Hvis du ønsker at lytte på alle " "grænsefalder bør du angive metagrænsefladen »any«. Kørsel af »bandwidthd -l« " "vil vise alle tilgængelige grænseflader." #. Type: string #. Description #: ../templates:2001 msgid "Subnets to log details about:" msgstr "Undernet der skal logges detaljer omkring:" #. Type: string #. Description #: ../templates:2001 msgid "" "Bandwidthd can create graphs for one or several ip-subnets. Subnets are " "specified either in dotted-quad format (192.168.0.0 255.255.0.0) or in CIDR " "format (192.168.0.0/16) and separated by a comma. Example: 192.168.0.0/16, " "10.0.0.0 255.0.0.0, 172.16.1.0/24. If you don't know what to specify then " "you can use 0.0.0.0/0 but it is strongly discouraged." msgstr "" "Bandwidthd kan oprette grafer for en eller flere ip-undernet. Undernet er " "angivet enten i formatet dotted-quad (192.168.0.0 255.255.0.0) eller i CIDR-" "format (192.168.0.0/16) og adskilt af et komma. Eksempel: 192.168.0.0/16, " "10.0.0.0.255.0.0.0, 172.16.1.0/24. Hvis du ikke ved hvad der skal angives så " "kan du bruge 0.0.0.0/0 men det frarådes stærkt." #. Type: boolean #. Description #: ../templates:3001 msgid "Output CDF data logs?" msgstr "Vis CDF-datalogge?" #. Type: boolean #. Description #: ../templates:3001 msgid "" "Bandwidthd can log captured traffic information to Common Data File (CDF) " "logs. These logs are required if you want to keep old information stored " "between restarts of the bandwidthd daemon. Also see the recovercdf " "configuration option." msgstr "" "Bandwidthd kan logge optaget trafikinformation til logge for Common Data " "File (CDF). Disse logge kræves, hvis du ønsker at holde gammel information " "gemt mellem opstart af bandwidthd-dæmonen. Se også " "konfigurationsindstillingen til recovercdf." #. Type: boolean #. Description #: ../templates:4001 msgid "Recover old data from logs on restart?" msgstr "Gendan gamle data fra logge ved genstart?" #. Type: boolean #. Description #: ../templates:4001 msgid "" "If old data is going to be outputed in the graphs, it needs to be read when " "BandwidthD is restarted. Parsing the CDF logs can take quite some time on a " "slow machine so you might want to disable it, but then you'll lose the " "information in the graphs after a reboot and similar.... Also make sure the " "output_cdf config option is enabled." msgstr "" "Hvis gamle data skal vises i graferne, så skal de læses når BandwidthD " "genstartes. Fortolkning af CDF-logge kan tage noget tid på en sløv maskine " "så du vil måske ønske at slå det fra, men så mister du informationen i " "graferne efter en genstart og lignende.... Du skal også sikre dig, at " "konfigurationstilvalget output_cdf er slået til." #. Type: string #. Description #: ../templates:5001 msgid "Graph webpage autorefresh delay (seconds):" msgstr "Automatisk opdateringsforsinkelse for grafinternetside (sekunder):" #. Type: string #. Description #: ../templates:5001 msgid "" "With this option you can tweak the delay used in the html as \"META REFRESH" "\" value. The default is 150 seconds (2.5 minutes). To disable automatic " "reloads of the webpage enter 0. This way the visitor will have to manually " "push refresh in his browser to get updated graphs." msgstr "" "Med dette tilvalg kan du indstille forsinkelsen brugt i html'en under »META " "REFRESH«. Standarden er 150 sekunder (2,5 minutter). For at deaktivere " "automatisk genindlæsning af internetsiden indtastes 0. På den måde vil den " "besøgende manuelt skulle trykke på opdater i sin browser for at hente " "opdaterede grafer." #. Type: boolean #. Description #: ../templates:6001 msgid "Put interface in PROMISC mode?" msgstr "Sæt grænsefalde i PROMISC-tilstand?" #. Type: boolean #. Description #: ../templates:6001 msgid "" "If this option is enabled, all interfaces used to capture traffic " "information will be put in promiscuous mode. This way traffic thats not " "routed via the machine running bandwidthd might be trackable anyway. " "Enabling promiscuous mode will probably not be able to capture any more " "traffic in a normal switched network. Also rootkit detectors might warn " "about bandwidthd being a virus if using promiscuous mode. You should " "probably leave this option disabled." msgstr "" "Hvis denne indstilling er aktiveret, vil alle grænseflader brugt til at " "registrere trafikinformation blive sat i omflakkende tilstand. På denne måde " "vil trafik som ikke sendes via maskinen der kører bandwidthd stadig kunne " "være sporbart. Aktivering af omflakkende tilstand vil sandsynligvis ikke " "være i stand til at registrere mere trafik i et normalt omstillet netværk. " "Rootkit-detektiver vil måske også advare om at bandwidthd er en virus hvis " "den bruger omflakkende tilstand. Du skal højst sandsynligt lade denne " "indstilling være deaktiveret." #. Type: string #. Description #: ../templates:7001 msgid "This sensors identification string:" msgstr "Denne sensors identifikationsstreng:" #. Type: string #. Description #: ../templates:7001 msgid "" "Each sensor should have an identification string to be able to tell from " "where the traffic in the PostgreSQL-database was detected on. This option is " "usually set to the fully qualified hostname of the machine running the " "bandwidthd sensor. This needs to be a unique string which no other " "bandwidthd sensor that reports to the same database uses." msgstr "" "Hver sensor skal have en identifikationsstreng for at være i stand til at " "fortælle hvor trafikken i PostgreSQL-databasen blev registreret. Denne " "indstilling er normalt angivet som værende det fuldt kvalificeret værtsnavn " "på maskinen som kører bandwidthd-sensoren. Denne skal være en unik streng " "forskellig fra alle andre bandwidthd-sensorer som rapporterer til den samme " "database." debian/po/fr.po0000644000000000000000000001664011726163021010561 0ustar # Bandwidthd French translation. # Copyright (C) 2006 # This file is distributed under the same license as the bandwidthd package. # Andreas Henriksson , 2006. # msgid "" msgstr "" "Project-Id-Version: bandwidthd_2.0.1+cvs20050208-6\n" "Report-Msgid-Bugs-To: andreas@fatal.se\n" "POT-Creation-Date: 2007-03-23 10:46+0100\n" "PO-Revision-Date: 2006-08-13 15:53+0100\n" "Last-Translator: Steve Petruzzello \n" "Language-Team: French \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=iso-8859-15\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: French\n" "X-Poedit-Country: SWITZERLAND\n" #. Type: select #. Description #: ../templates:1001 msgid "Interface to listen on:" msgstr "Interface sur laquelle Bandwidthd doit tre l'coute:" #. Type: select #. Description #: ../templates:1001 msgid "" "Bandwidthd needs to know which interface it should listen for traffic on. " "Only a single interface can be specified. If you want to listen on all " "interfaces you should specify the metainterface \"any\". Running " "\"bandwidthd -l\" will list available interfaces." msgstr "" "Bandwidthd a besoin de connatre l'interface sur laquelle il doit tre " "l'coute. Seule une interface peut tre spcifie. Si vous dsirez couter " "sur toutes les interfaces, il faut utiliser la mta-interface any. " "Veuillez excuter bandwidthd -l afin d'afficher les interfaces " "disponibles." #. Type: string #. Description #: ../templates:2001 msgid "Subnets to log details about:" msgstr "" "Sous-rseaux pour lesquels Bandwidthd doit enregistrer des informations:" #. Type: string #. Description #: ../templates:2001 msgid "" "Bandwidthd can create graphs for one or several ip-subnets. Subnets are " "specified either in dotted-quad format (192.168.0.0 255.255.0.0) or in CIDR " "format (192.168.0.0/16) and separated by a comma. Example: 192.168.0.0/16, " "10.0.0.0 255.0.0.0, 172.16.1.0/24. If you don't know what to specify then " "you can use 0.0.0.0/0 but it is strongly discouraged." msgstr "" "Bandwidthd peut crer des graphiques pour un ou plusieurs sous-rseaux. Ceux-" "ci sont spcifis soit sous le format dcimal point頻 (192.168.0.0 " "255.255.0.0) soit en notation CIDR (192.168.0.0/16) et sont spars par une " "virgule. Exemple: 192.168.0.0/16, 10.0.0.0 255.0.0.0, 172.16.1.0/24. Si " "vous ne savez pas quoi utiliser, vous pouvez indiquer 0.0.0.0/0 mais cela " "est fortement dconseill." #. Type: boolean #. Description #: ../templates:3001 msgid "Output CDF data logs?" msgstr "Faut-il afficher les journaux de donnes CDF?" #. Type: boolean #. Description #: ../templates:3001 msgid "" "Bandwidthd can log captured traffic information to Common Data File (CDF) " "logs. These logs are required if you want to keep old information stored " "between restarts of the bandwidthd daemon. Also see the recovercdf " "configuration option." msgstr "" "Bandwidthd peut enregistrer le trafic captur dans le format CDF (Common " "Data File). Ces journaux sont ncessaires si vous dsirez garder les " "anciennes donnes entre deux redmarrages du dmon bandwidthd. Veuillez voir " "l'option de configuration recovercdf." #. Type: boolean #. Description #: ../templates:4001 msgid "Recover old data from logs on restart?" msgstr "" "Faut-il rcuprer les anciennes donnes des journaux lors d'un redmarrage?" #. Type: boolean #. Description #: ../templates:4001 msgid "" "If old data is going to be outputed in the graphs, it needs to be read when " "BandwidthD is restarted. Parsing the CDF logs can take quite some time on a " "slow machine so you might want to disable it, but then you'll lose the " "information in the graphs after a reboot and similar.... Also make sure the " "output_cdf config option is enabled." msgstr "" "Si les anciennes donnes sont utilises pour les graphiques, elles doivent " "tre lues lors d'un redmarrage de bandwidthd. Ce processus peut prendre du " "temps sur des machines lentes et vous dsirez peut-tre dsactiver cette " "fonctionnalit; sachez qu'en faisant cela vous perdrez ces informations " "pour les graphiques aprs un redmarrage. Par consquent, assurez-vous que " "l'option de configuration output_cdf soit active." #. Type: string #. Description #: ../templates:5001 msgid "Graph webpage autorefresh delay (seconds):" msgstr "Dlai de rafrachissement (en secondes) de la page web du graphique:" #. Type: string #. Description #: ../templates:5001 msgid "" "With this option you can tweak the delay used in the html as \"META REFRESH" "\" value. The default is 150 seconds (2.5 minutes). To disable automatic " "reloads of the webpage enter 0. This way the visitor will have to manually " "push refresh in his browser to get updated graphs." msgstr "" "Cette option permet d'ajuster le dlai utilis dans le fichier HTML comme " "valeur pour META REFRESH. Par dfaut il est de 150 secondes " "(2,5minutes). Indiquez 0 pour dsactiver le rechargement automatique des " "pages, ce qui forcera le visiteur recharger lui-mme la page afin " "d'obtenir un graphique jour." #. Type: boolean #. Description #: ../templates:6001 msgid "Put interface in PROMISC mode?" msgstr "Faut-il mettre une ou plusieurs interface en mode PROMISC?" #. Type: boolean #. Description #: ../templates:6001 msgid "" "If this option is enabled, all interfaces used to capture traffic " "information will be put in promiscuous mode. This way traffic thats not " "routed via the machine running bandwidthd might be trackable anyway. " "Enabling promiscuous mode will probably not be able to capture any more " "traffic in a normal switched network. Also rootkit detectors might warn " "about bandwidthd being a virus if using promiscuous mode. You should " "probably leave this option disabled." msgstr "" "En activant cette option, toutes les interfaces utilises pour capturer le " "trafic seront places en mode promiscuous. Cela permet de suivre le " "trafic qui ne passe pas par la machine excutant bandwidthd. Sachez que " "cette option ne permet pas de capturer le trafic dans un rseau commut. De " "plus, les dtecteurs de rootkit prendront peut-tre alors bandwidthd pour un " "virus et vous le signaleront. Vous devriez probablement laisser cette option " "dsactive." #. Type: string #. Description #: ../templates:7001 msgid "This sensors identification string:" msgstr "Chane d'identification de cette sonde:" #. Type: string #. Description #: ../templates:7001 msgid "" "Each sensor should have an identification string to be able to tell from " "where the traffic in the PostgreSQL-database was detected on. This option is " "usually set to the fully qualified hostname of the machine running the " "bandwidthd sensor. This needs to be a unique string which no other " "bandwidthd sensor that reports to the same database uses." msgstr "" "Chaque sonde doit avoir une chane d'identification afin de pouvoir " "dterminer la source du trafic dans la base de donnes PostgreSQL. On " "indique gnralement ici le nom d'hte compltement qualifi de la machine " "hbergeant la sonde de bandwidthd. Ce doit tre une chane unique, qu'aucune " "autre sonde crivant dans la mme base de donnes ne doit utiliser." #~ msgid "Listen on which interface?" #~ msgstr "Interface l'coute:" #~ msgid "Instruct webbrowser to refresh the graph after how many seconds?" #~ msgstr "" #~ "Intervalle de rafrachissement (en secondes) du graphique pour le " #~ "navigateur:" debian/po/POTFILES.in0000644000000000000000000000004411726163021011356 0ustar [type: gettext/rfc822deb] templates debian/po/pt.po0000644000000000000000000001640411726163021010573 0ustar # Portuguese translation for bandwidthd debconf messages # Copyright (C) 2007 Luís Picciochi # This file is distributed under the same license as the bandwidthd package # Luís Picciochi, 2007. # msgid "" msgstr "" "Project-Id-Version: bandwidthd 2.0.1+cvs20050208-11\n" "Report-Msgid-Bugs-To: andreas@fatal.se\n" "POT-Creation-Date: 2007-03-23 10:46+0100\n" "PO-Revision-Date: 2007-04-13 01:10+0000\n" "Last-Translator: Luís Picciochi \n" "Language-Team: Portuguese \n" "Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Type: select #. Description #: ../templates:1001 msgid "Interface to listen on:" msgstr "Interface para analisar o tráfego:" #. Type: select #. Description #: ../templates:1001 msgid "" "Bandwidthd needs to know which interface it should listen for traffic on. " "Only a single interface can be specified. If you want to listen on all " "interfaces you should specify the metainterface \"any\". Running " "\"bandwidthd -l\" will list available interfaces." msgstr "" "O bandwidthd necessita de saber qual o interface sobre o qual deve analisar " "o tráfego. Apenas pode ser especificado um único interface. Se deseja " "detectar tráfego em todos os interfaces, deve especificar o metainterface " "\"any\". Executar \"bandwidthd -l\" mostrará uma lista de interfaces " "disponíveis." #. Type: string #. Description #: ../templates:2001 msgid "Subnets to log details about:" msgstr "Guardar detalhes em relatório para as Subnets:" #. Type: string #. Description #: ../templates:2001 msgid "" "Bandwidthd can create graphs for one or several ip-subnets. Subnets are " "specified either in dotted-quad format (192.168.0.0 255.255.0.0) or in CIDR " "format (192.168.0.0/16) and separated by a comma. Example: 192.168.0.0/16, " "10.0.0.0 255.0.0.0, 172.16.1.0/24. If you don't know what to specify then " "you can use 0.0.0.0/0 but it is strongly discouraged." msgstr "" "O bandwidthd pode criar gráficos para uma ou várias subnets de IPs. As " "subnets podem ser especificadas tanto num formato de quatro pontos " "(192.168.0.0 255.255.0.0) ou no formato CIDR (192.168.0.0/16) separados por " "uma vírgula. Exemplo: 192.168.0.0/16, 10.0.0.0 255.0.0.0, 172.16.1.0/24. Se " "não sabe o que especificar então pode usar 0.0.0.0/0, mas este é um " "procedimento altamente desaconselhado." #. Type: boolean #. Description #: ../templates:3001 msgid "Output CDF data logs?" msgstr "Mostrar os relatórios de dados CDF?" #. Type: boolean #. Description #: ../templates:3001 msgid "" "Bandwidthd can log captured traffic information to Common Data File (CDF) " "logs. These logs are required if you want to keep old information stored " "between restarts of the bandwidthd daemon. Also see the recovercdf " "configuration option." msgstr "" "O bandwidthd pode guardar a informação de tráfego capturada para relatórios " "do tipo Common Data File ['Ficheiro de Dados Comuns'] (CDF). Estes " "relatórios são necessários caso pretenda guardar informação antiga " "armazenada entre reinícios do daemon bandwidthd. Veja também a opção de " "configuração do recovercdf." #. Type: boolean #. Description #: ../templates:4001 msgid "Recover old data from logs on restart?" msgstr "Recuperar dados antigos a partir de relatórios ao reiniciar?" #. Type: boolean #. Description #: ../templates:4001 msgid "" "If old data is going to be outputed in the graphs, it needs to be read when " "BandwidthD is restarted. Parsing the CDF logs can take quite some time on a " "slow machine so you might want to disable it, but then you'll lose the " "information in the graphs after a reboot and similar.... Also make sure the " "output_cdf config option is enabled." msgstr "" "Se se mostrarem dados antigos em gráficos, necessita de ser lido quando o " "bandwidthd é reiniciado. Analisar os relatórios CDF pode levar bastante " "tempo num computador lento, por isso pode querer desactivar isto. No " "entanto, perderá a informação nos gráficos depois de um reinício e em acções " "semelhantes. Certifique-se também que a opção de configuração output_cdf " "está activada." #. Type: string #. Description #: ../templates:5001 msgid "Graph webpage autorefresh delay (seconds):" msgstr "" "Intervalo para actualização automática da página dos gráficos (segundos):" #. Type: string #. Description #: ../templates:5001 msgid "" "With this option you can tweak the delay used in the html as \"META REFRESH" "\" value. The default is 150 seconds (2.5 minutes). To disable automatic " "reloads of the webpage enter 0. This way the visitor will have to manually " "push refresh in his browser to get updated graphs." msgstr "" "Com esta opção pode alterar o intervalo de tempo utilizado no código HTML " "como valor para o \"META REFRESH\". A pré-definição é de 150 segundos (2,50 " "minutos). Para desactivar as actualizações automáticas da página web, insira " "0. Assim, o visitante terá de clicar manualmente no botão de actualização do " "seu browser para obter gráficos actualizados." #. Type: boolean #. Description #: ../templates:6001 msgid "Put interface in PROMISC mode?" msgstr "Colocar o interface no modo PROMISC?" #. Type: boolean #. Description #: ../templates:6001 msgid "" "If this option is enabled, all interfaces used to capture traffic " "information will be put in promiscuous mode. This way traffic thats not " "routed via the machine running bandwidthd might be trackable anyway. " "Enabling promiscuous mode will probably not be able to capture any more " "traffic in a normal switched network. Also rootkit detectors might warn " "about bandwidthd being a virus if using promiscuous mode. You should " "probably leave this option disabled." msgstr "" "Se esta opção estiver activada, todos os interfaces utilizados para a " "captação da informação de tráfego serão colocados em modo promíscuo. Desta " "forma, o tráfego que não é direccionado pela máquina a executar o bandwidthd " "pode ser detectável de qualquer das formas. Ao activar o modo promíscuo, " "provavelmente não não irá ser capaz de captar mais tráfego numa rede normal " "'switched'. Para além disto, detectores de rootkits podem lançar avisos " "dizendo que o bandwidthd é um vírus se estiver a usar o modo promíscuo. " "Provavelmente deve deixar esta opção desactivada." #. Type: string #. Description #: ../templates:7001 msgid "This sensors identification string:" msgstr "Linha de identificação deste sensor:" #. Type: string #. Description #: ../templates:7001 msgid "" "Each sensor should have an identification string to be able to tell from " "where the traffic in the PostgreSQL-database was detected on. This option is " "usually set to the fully qualified hostname of the machine running the " "bandwidthd sensor. This needs to be a unique string which no other " "bandwidthd sensor that reports to the same database uses." msgstr "" "Cada sensor deve ter uma linha (string) de identificação capaz de indicar de " "onde vem o tráfego detectado na base de dados PostgreSQL. Normalmente, esta " "opção é colocada com o hostname completo da máquina a executar o sensor " "bandwidthd. Esta string necessita de ser única e para o qual nenhum outro " "sensor bandwidthd associado à mesma base de dados esteja a usar." debian/bandwidthd-pgsql.postinst0000644000000000000000000001037512156445225014243 0ustar #!/bin/sh set -e if [ "$BANDWIDTHD_PACKAGE_DEBUG" != "" ]; then echo "bandwidthd-pgsql.postinst: $*" set -x fi # Source debconf library in postinst. . /usr/share/debconf/confmodule # Source dbconfig-common library. . /usr/share/dbconfig-common/dpkg/postinst.pgsql # ------------------------------------------------------------- # Create bandwidthd.conf based on debconf data, and install it. # ------------------------------------------------------------- if [ "$1" = "configure" ]; then db_get bandwidthd/dev || true DEV=$RET db_get bandwidthd/subnet || true SUBNETS=$RET # ATTENTION! $SUBNETS needs to be parsed and split. # Example contents: 192.168.1.0/24, 172.20.0.0 255.255.0.0, 10.0.0.0/8 # Get pgsql-settings from dbconfig-common. if [ -f /etc/dbconfig-common/bandwidthd-pgsql.conf ]; then . /etc/dbconfig-common/bandwidthd-pgsql.conf fi if [ "$dbc_install" = "true" ]; then PGSQL_USER=$dbc_dbuser PGSQL_PASS=$dbc_dbpass PGSQL_DB=$dbc_dbname PGSQL_HOST=$dbc_dbserver if [ -z "$PGSQL_HOST" ]; then PGSQL_HOST="localhost" fi PGSQL_PORT=$dbc_dbport if [ -z "$PGSQL_PORT" ]; then PGSQL_PORT=5432 fi else PGSQL_USER="bwduser" PGSQL_PASS="bwdpass" PGSQL_DB="bwddb" PGSQL_HOST="localhost" PGSQL_PORT=5432 fi db_get bandwidthd-pgsql/sensorid || true SENSORID=$RET db_get bandwidthd/promisc || true PROMISC=$RET if [ "$BANDWIDTHD_PACKAGE_DEBUG" != "" ]; then echo "This is the bandwidthd postinst script reporting debconf settings:" echo "dev: $DEV" echo "subnets: $SUBNETS" echo "promisc: $PROMISC" fi # parse a bandwidthd.conf template and insert dev, subnet and # recover_cdf rules, then use ucf to install config file. TMPDIR=$(mktemp -d) TMPFILE=$TMPDIR/bandwidthd.conf cp /usr/share/bandwidthd-pgsql/bandwidthd-pgsql.conf.template $TMPFILE chmod 640 $TMPFILE RULE='s%^#DEBCONF_DEVS#$%dev "'$DEV'"%' sed -ie "$RULE" $TMPFILE PARSED_SUBNETS=$(echo $SUBNETS | sed -e 's/, */:/g') #PARSED_SUBNETS=$(echo $PARSED_SUBNETS | sed -e 's/^/subnet /') OLDIFS=$IFS IFS=":" for subnet in $PARSED_SUBNETS ; do # CIDR and dotted-quad subnets have different syntax: # subnet 1.2.3.4/24 # subnet 4.3.2.1 255.255.255.0 subnet=$(echo $subnet | sed -e 's#/\(.*\..*\)# \1#') RULE='s%^#DEBCONF_SUBNETS#$%subnet '$subnet'\ #DEBCONF_SUBNETS#%' sed -ie "$RULE" $TMPFILE done RULE='s%^#DEBCONF_SUBNETS#$%%' sed -ie "$RULE" $TMPFILE IFS=$OLDIFS RULE='s%^#DEBCONF_PGSQL#$%pgsql_connect_string "user = '$PGSQL_USER' password = '$PGSQL_PASS' dbname = '$PGSQL_DB' host = '$PGSQL_HOST'"%' sed -ie "$RULE" $TMPFILE RULE='s%^#DEBCONF_SENSORID#$%sensor_id "'$SENSORID'"%' sed -ie "$RULE" $TMPFILE RULE='s%^#DEBCONF_PROMISC#$%promiscuous '$PROMISC'%' sed -ie "$RULE" $TMPFILE # Install new configuration... chmod 640 $TMPFILE ucf --debconf-ok $TMPFILE /etc/bandwidthd/bandwidthd.conf chmod 640 /etc/bandwidthd/bandwidthd.conf # create new password config file for psql (used in weekly cron script) TMPFILE=$TMPDIR/pgpass echo "$PGSQL_HOST:$PGSQL_PORT:$PGSQL_DB:$PGSQL_USER:$PGSQL_PASS" > $TMPFILE chown root:root $TMPFILE chmod 0600 $TMPFILE ucf --debconf-ok $TMPFILE /etc/bandwidthd/.pgpass # clean up rm -rf $TMPDIR dbc_first_version="2.0.1+cvs20050208-12" dbc_generate_include=php:/etc/bandwidthd/debian-db.php dbc_generate_include_owner="www-data:www-data" dbc_generate_include_perms="660" dbc_dbfile_owner="www-data:www-data" dbc_dbfile_perms="0660" dbc_go bandwidthd-pgsql $@ # Stop debhelper, we are done. db_stop fi # "$1" = "configure" # ---------------------------------------------------------------------- # move configuration file to new location for apache 2.4 dpkg-maintscript-helper mv_conffile \ /etc/apache2/conf.d/bandwidthd /etc/apache2/conf-available/bandwidthd.conf 2.0.1+cvs20090917-6~ bandwidthd-pgsql -- "$@" # From http://wiki.debian.org/Apache/PackagingFor24 : # "In your postinst maintainer script invoke the enconf handler on fresh installations." if [ -z "$2" ]; then if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then . /usr/share/apache2/apache2-maintscript-helper apache2_invoke enconf bandwidthd.conf fi fi # reload apache2 config for installed /bandwidthd alias. if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then . /usr/share/apache2/apache2-maintscript-helper apache2_reload fi # debhelper autoinserted stuff: #DEBHELPER# debian/templates0000644000000000000000000000566111726163021011116 0ustar Template: bandwidthd/dev Type: select Choices: ${interfaces} _Description: Interface to listen on: Bandwidthd needs to know which interface it should listen for traffic on. Only a single interface can be specified. If you want to listen on all interfaces you should specify the metainterface "any". Running "bandwidthd -l" will list available interfaces. Template: bandwidthd/subnet Type: string _Description: Subnets to log details about: Bandwidthd can create graphs for one or several ip-subnets. Subnets are specified either in dotted-quad format (192.168.0.0 255.255.0.0) or in CIDR format (192.168.0.0/16) and separated by a comma. Example: 192.168.0.0/16, 10.0.0.0 255.0.0.0, 172.16.1.0/24. If you don't know what to specify then you can use 0.0.0.0/0 but it is strongly discouraged. Template: bandwidthd/outputcdf Type: boolean Default: true _Description: Output CDF data logs? Bandwidthd can log captured traffic information to Common Data File (CDF) logs. These logs are required if you want to keep old information stored between restarts of the bandwidthd daemon. Also see the recovercdf configuration option. Template: bandwidthd/recovercdf Type: boolean Default: true _Description: Recover old data from logs on restart? If old data is going to be outputed in the graphs, it needs to be read when BandwidthD is restarted. Parsing the CDF logs can take quite some time on a slow machine so you might want to disable it, but then you'll lose the information in the graphs after a reboot and similar.... Also make sure the output_cdf config option is enabled. Template: bandwidthd/metarefresh Type: string _Description: Graph webpage autorefresh delay (seconds): With this option you can tweak the delay used in the html as "META REFRESH" value. The default is 150 seconds (2.5 minutes). To disable automatic reloads of the webpage enter 0. This way the visitor will have to manually push refresh in his browser to get updated graphs. Template: bandwidthd/promisc Type: boolean Default: false _Description: Put interface in PROMISC mode? If this option is enabled, all interfaces used to capture traffic information will be put in promiscuous mode. This way traffic thats not routed via the machine running bandwidthd might be trackable anyway. Enabling promiscuous mode will probably not be able to capture any more traffic in a normal switched network. Also rootkit detectors might warn about bandwidthd being a virus if using promiscuous mode. You should probably leave this option disabled. Template: bandwidthd-pgsql/sensorid Type: string _Description: This sensors identification string: Each sensor should have an identification string to be able to tell from where the traffic in the PostgreSQL-database was detected on. This option is usually set to the fully qualified hostname of the machine running the bandwidthd sensor. This needs to be a unique string which no other bandwidthd sensor that reports to the same database uses. debian/dirs0000644000000000000000000000014012156434707010056 0ustar usr/sbin etc/bandwidthd var/lib/bandwidthd var/lib/bandwidthd/htdocs etc/apache2/conf-available debian/bandwidthd-pgsql.cron.weekly0000644000000000000000000000026711726163021014610 0ustar #!/bin/sh # psql will include database connection info from ~/.pgpass HOME=/etc/bandwidthd/ # summarize data collected by bandwidthd in database. /usr/sbin/bd_pgsql_purge.sh | psql debian/bandwidthd.conf.50000644000000000000000000000342311726163021012311 0ustar .TH BANDWIDTHD.CONF 5 "5 Jul 2004" .SH NAME bandwidthd.conf \- configuration file for bandwidthd .SH DESCRIPTION .LP The file, .IR /etc/bandwidthd/bandwidthd.conf , is read by bandwidthd when started. It contains a small set of tunable options for bandwidthd features that can be adjusted. .SH OPTIONS .TP .BI "subnet" " " Subnet to log traffic for. .TP .BI "dev" " " Device to listen on. .TP .BI "skip_intervals" " " Number on intervals (2.5 minute) to skip between graphing. Default 0. .TP .BI "graph_cutoff" " " Number of kilobytes required before drawing a graph for a host. Default 1024. .TP .BI "promiscuous" " " Put device in promisc ("eavesdropping") mode. Default true. .TP .BI "output_cdf" " " Write logfiles for analyzed traffic. Default false. .TP .BI "recover_cdf" " " Recover from logfiles after restart. Default false. .br .B Warning: This can take very long time if the logfiles are big. .br Enabling this and having bandwidthd start on system start might be a bad idea. It will delay your possibilities to log in locally since it's not done in the background. .TP .BI "filter" " " Pcap filter rule to use. Always include "ip" to avoid weird problems. Default "ip". .TP .BI "graph" " " Write graphs and html for analyzed traffic. Default true. .TP .BI "meta_refresh" " " Number of seconds before html-page reloads. 0 to disable. Default 150. .LP .SH FILES .nf /etc/bandwidthd/bandwidthd.conf - configuration file. /etc/init.d/bandwidthd - startscript. .fi .SH SEE ALSO bandwidthd(8) .br .sp Furter information available at the website: .br .I http://bandwidthd.sourceforge.net .SH AUTHOR This manual page was written by Andreas Henriksson , for the Debian GNU/Linux system. debian/README.Debian0000644000000000000000000000623611726163021011235 0ustar bandwidthd for Debian ============================================================================= Configuring bandwidthd: ----------------------------------------------------------------------------- Bandwidthd needs to be configured manually. This is done in /etc/bandwidthd/bandwidthd.conf which is pretty self-explaning and also has helpful comments. Theres always "man bandwidthd.conf" too. You should have atleast one "subnet" declaration and "dev". Choosing package: ----------------------------------------------------------------------------- As of 2.0.1+cvs20050208-2 the bandwidthd source now produces two packages when built. The "bandwidthd" package is the traditional bandwidthd from the 1.x branch. It tracks the traffic and generates static html and graphs. The new package "bandwidthd-pgsql" is the newly introduced alternative method in 2.x where you can have multiple "sensors" (bandwidthd which only collect statistics without writing any graphs) and sends it in to a central PostgreSQL database. The data from the PostgreSQL database is presented via a dynamic PHP-based web-interface instead of static html pages. I suggest not using "bandwidthd-pgsql" unless you really need multiple sensors support, are confortable with PostgreSQL and hacking PHP. Defunct bandwidthd processes: ----------------------------------------------------------------------------- Are you seeing defunct bandwidthd processes and afraid something has gone wrong? Having some defunct processes is perfectly normal. They are finished grapher children which hasn't been reaped yet. They will be reaped right before the next grahing run, which will produce new defunct bandwidthd processes once they are done graphing. This is used to detect if the previous graphing run is finished when a new one is started (if there aren't any children to reap, the current graphing run will be skipped). So unless the graphing takes very long time on your system you'll have defunct bandwidthd processes almost all the time when running bandwidthd. They aren't stuck forever though so don't worry. Differences between this package and the upstream source: ----------------------------------------------------------------------------- - Files are NOT all in the same directory. binary: /usr/sbin/bandwidthd config: /etc/bandwidthd/bandwidthd.conf cdf logs: /var/lib/bandwidthd/ webpages: /var/lib/bandwidthd/htdocs/ (you need to "ln -s /var/lib/bandwidthd/htdocs/ /var/www/bandwithd" if you want to make the webpages reachable via the web.) - writes pidfile of first process in /var/run/bandwidthd.pid (Merged upstream in 2.x) - main process (get pid from pidfile!) collects child pids. (Merged upstream in 2.x) - SIGTERM to main process shuts down all bandwidthd proccesses. (Merged upstream in 2.x) - SIGHUP to main process triggers logrotate in all processes. (Merged upstream in 2.x) - Includes manpages for bandwidthd(8) and bandwidthd.conf(5). FIXME: needs updating for postgresql-options. - Includes init.d-script (/etc/init.d/bandwidthd) to manage bandwidthd. Changes are all to make it behave like a normal debian packaged daemon would, and you'll probably see more of this included by upstream in the future. debian/bandwidthd.init0000644000000000000000000000566711726163021012200 0ustar #!/bin/sh # # init.d script for BandwidthD # Andreas Henriksson # ### BEGIN INIT INFO # Provides: bandwidthd # Required-Start: $syslog $remote_fs # Required-Stop: $syslog $remote_fs # Should-Start: $local_fs # Should-Stop: $local_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: starts and stops the BandwidthD daemon. # Description: Script to start and stop the BandwidthD daemon # which captures traffic and generates graphs over # bandwidthd usage. ### END INIT INFO NAME=bandwidthd DESC=BandwidthD PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/sbin/bandwidthd PIDFILE=/var/run/$NAME.pid WORKDIR=/var/lib/bandwidthd CONFFILE=/etc/bandwidthd/bandwidthd.conf test -x $DAEMON || exit 0 . /lib/lsb/init-functions checkconfig () { # abort if there's no configuration file at all. if [ ! -f "$CONFFILE" ]; then log_failure_msg "$DESC: No configuration file found, not starting." exit 0 fi # abort if we detect an unconfigured bandwidthd-pgsql config. CONFERR=$(grep "pgsql_connect_string \"user = someuser dbname = mydb host = localhost\"" $CONFFILE | grep -c "^[^#]") if [ "$CONFERR" != "0" ]; then log_failure_msg "ATTENTION!" log_failure_msg "You have to manually add the postgresql-user, database and tables." log_failure_msg "You also have to edit /etc/bandwidthd/bandwidthd.conf to specify which database the sensor should log to. If you want to run the web-interface on this computer you also need to edit /var/lib/bandwidthd/htdocs/config.conf to specify the postgresql-connection settings there and create a symlink from your webroot to the htdocs directory." exit 0 fi # abort if the config doesn't have a device set up. CONFERR=$(grep -c1 "^[^#].*d*ev " $CONFFILE) if [ "$CONFERR" = "0" ]; then log_failure_msg "Skipping $DESC: No devices configured. Please edit $CONFFILE." exit 0 fi } startd () { log_daemon_msg "Starting $DESC" "$NAME" cd $WORKDIR && start-stop-daemon --start --quiet \ --pidfile $PIDFILE \ --chdir $WORKDIR \ --exec $DAEMON -- $DAEMON_OPTS if [ $? = 0 ]; then log_end_msg 0 else log_end_msg 1 fi } stopd () { log_daemon_msg "Stopping $DESC" "$NAME" #start-stop-daemon --stop --quiet --signal TERM \ # --pidfile $PIDFILE --exec $DAEMON killproc -p $PIDFILE $DAEMON SIGTERM if [ $? = 0 ]; then log_end_msg 0 else log_end_msg 1 fi } restartd () { stopd sleep 1 startd } rotatelogs () { log_daemon_msg "Rotating logs for $DESC" "$NAME" start-stop-daemon --stop --quiet --signal HUP \ --pidfile $PIDFILE --exec $DAEMON if [ $? = 0 ]; then log_end_msg 0 else log_end_msg 1 fi } case "$1" in start) checkconfig startd ;; stop) stopd ;; rotate) rotatelogs ;; restart|force-reload) checkconfig restartd ;; *) N=/etc/init.d/$NAME echo "Usage: $N {start|stop|restart|rotate|force-reload}" >&2 exit 1 ;; esac exit 0 debian/docs0000644000000000000000000000001411726163021010033 0ustar README TODO debian/bandwidthd.postrm0000644000000000000000000000241012156445225012547 0ustar #!/bin/sh set -e if [ "$BANDWIDTHD_PACKAGE_DEBUG" != "" ]; then echo "bandwidthd.postrm: $*" fi if [ "$1" = "purge" ] ; then CONF="/etc/bandwidthd/bandwidthd.conf" if which ucf > /dev/null 2>&1; then ucf --purge $CONF fi if [ -f $CONF ]; then rm -f $CONF fi rm -f /var/lib/bandwidthd/log.*.cdf rm -f /var/lib/bandwidthd/htdocs/*-R.png rm -f /var/lib/bandwidthd/htdocs/*-S.png rm -f /var/lib/bandwidthd/htdocs/index*.html rm -f /var/lib/bandwidthd/htdocs/Subnet-*.html rm -f /var/lib/bandwidthd/htdocs/Total-*.png fi #DEBHELPER# dpkg-maintscript-helper mv_conffile \ /etc/apache2/conf.d/bandwidthd /etc/apache2/conf-available/bandwidthd.conf 2.0.1+cvs20090917-6~ bandwidthd -- "$@" # do this last to avoid getting output entangled into the debconf interaction if [ "$1" = "purge" ] ; then # From http://wiki.debian.org/Apache/PackagingFor24 : # "Likewise, in postrm do upon purge and simple removals" if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then . /usr/share/apache2/apache2-maintscript-helper apache2_invoke disconf bandwidthd.conf fi # reload apache2 config for uninstalled /bandwidthd alias. if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then . /usr/share/apache2/apache2-maintscript-helper apache2_reload fi fi debian/bandwidthd-pgsql.preinst0000644000000000000000000000025512156423710014033 0ustar dpkg-maintscript-helper mv_conffile \ /etc/apache2/conf.d/bandwidthd /etc/apache2/conf-available/bandwidthd.conf 2.0.1+cvs20090917-6~ bandwidthd-pgsql -- "$@" #DEBHELPER# debian/linda-overrides0000644000000000000000000000014411726163021012176 0ustar # updated from autotools-dev at build time by dpatch. Tag: config-too-old Data: config\.(guess|sub) debian/bd_pgsql_purge.80000644000000000000000000000171511726163021012257 0ustar .TH BD_PGSQL_PURGE 8 "8 Dec 2007" .SH NAME bd_pgsql_purge - summarizer script for bandwidthd (postgresql mode) .SH DESCRIPTION .LP This program generatet the SQL code that should be run in certain intervals to summarize the data collected by bandwidthd (in postgresql mode) and purge the detailed records. The program itself only generates the SQL code. You need to feed it to your postgresql server yourself, which can be done by piping the output to the psql program. Adding a crontab script that runs weekly and cleans up the database is recommended. .br .SH FILES .nf /usr/sbin/bd_pgsql_purge - the script to generate sql code /etc/cron.weekly/bandwidthd-pgsql - default schedule for bd_pgsql_purge .fi .SH SEE ALSO bandwidthd(8) bandwidthd.conf(5) psql(1) .br .sp Furter information available at the website: .br .I http://bandwidthd.sourceforge.net .SH AUTHOR This manual page was written by Andreas Henriksson , for the Debian GNU/Linux system. debian/bandwidthd-pgsql.NEWS0000644000000000000000000000165611726163021013127 0ustar bandwidthd (2.0.1+cvs20071208-1) unstable; urgency=low The PostgreSQL version of BandwidthD (bandwidthd-pgsql) now uses the dbconfig-common system to automatically set up the database used for storing data sent in by the daemons runnings as traffic sensors. This means we have installed a summarizer script in /etc/cron.weekly/ and have configuration files set up via debconf questions. Manual configurations of previous versions are not handled! Purging old versions of bandwidthd-pgsql and reinstalling is recommended. Note: for now only installing as the main bandwidthd process, the one that creates a new database to report into, is supported. For installing bandwidthd sensors, I guess you can create a new dummy database and then manually reconfiguring /etc/bandwidthd/bandwidthd.conf to report to the real main database would work. -- Andreas Henriksson Tue, 04 Sep 2007 09:52:35 +0200