46 Commits

Author SHA1 Message Date
Manuel Kasper
cb6f4c317b Fix missing stats entries
Fix for link tags that are substrings of other link tags.
2015-11-24 09:14:09 +01:00
Manuel Kasper
5bf3c07994 Make top N AS intervals configurable
* make top N AS intervals configurable (see config.inc), and allow
separate top stats file to be used per interval (enables e.g. proper
weekly/monthly stats)
* add Terabyte formatting
2014-09-11 15:12:58 +02:00
Manuel Kasper
ac2faaf01b peer-as improvements
* add warning when trying to use peer-as stats with NetFlow
* slightly optimize packet handling when peer-as is disabled
* default peer-as stats to disable
2014-09-11 14:59:24 +02:00
jack
705fc9c262 store peer-as data 2014-06-25 17:05:29 +02:00
jack
0063facbb8 add the forgotten 'type' in recursive handflow() 2014-06-25 16:17:06 +02:00
jack
a7ccd7568d wait for children before exit; avoid a 'socket already used' issue on restart; 2014-06-25 15:32:19 +02:00
jack
3050e0bbe5 add a filter in find, so it won't look for deeper sub-tree (another "rrd-tree" stored in the same root) 2014-06-25 15:31:06 +02:00
jack
cf5a549db0 Revert "wait for children before exit; avoid a 'socket already used' issue on restart;"
This reverts commit 86ddfe44b48afd55f741c6bcce91a2e5627d80a4.
2014-06-25 15:28:07 +02:00
jack
faaec24eca Revert "store peer-as in /peeras/* (only for sFlow)"
This reverts commit 4662f2f75dab181ce05bfb60bc903704dab88b15.
2014-06-25 15:28:06 +02:00
jack
f3f697399e Revert "add a filter in find, so it will count as OR peeras, not both of them (same tree..)"
This reverts commit 7920698595fa2447ec38b6f0d0dd70a9e1105c17.
2014-06-25 15:28:05 +02:00
jack
e8009e9e00 Revert "fix help info to add the 'n' switch"
This reverts commit c67e0bc0d9b5f53545a9c087126a7c2fa34dd9de.
2014-06-25 15:27:31 +02:00
jack
c67e0bc0d9 fix help info to add the 'n' switch 2014-06-20 13:53:29 +02:00
jack
7920698595 add a filter in find, so it will count as OR peeras, not both of them (same tree..) 2014-06-20 13:46:07 +02:00
jack
4662f2f75d store peer-as in /peeras/* (only for sFlow) 2014-06-20 13:34:48 +02:00
jack
86ddfe44b4 wait for children before exit; avoid a 'socket already used' issue on restart; 2014-06-20 13:23:42 +02:00
Alexandre Bruyelles
788bdc338f flush cache on exit 2014-06-16 12:26:27 +02:00
Alexandre Bruyelles
705e1687ff fix bug: GatewayIpVersionNextHopRouter is 255.255.255.255 sometimes 2014-06-16 11:28:42 +02:00
Andre Grueneberg
b14b2ff392 Avoid warnings about undefined values 2014-06-14 20:31:07 +02:00
Andre Grueneberg
cde7650819 Corrected paramters to handleflow() 2014-06-14 20:25:58 +02:00
Andre Grueneberg
5c84c03765 Add support for multiple VLANs per ifIndex
sFlow and Netflow v9/v10 may provide VLAN information in flows, so
one can distinguish between different logical links on the same
physical connection (e.g. transit via private VLAN over IXP).
2014-06-14 20:16:05 +02:00
Manuel Kasper
1da6825579 Merge netflow/sflow-asstatd.pl into one script
Contributed by Wouter de Jong
2014-01-07 16:45:12 +01:00
Manuel Kasper
d7b806349c Sync with netflow-asstatd.pl
Fixes race condition when forking (commit 07eccf65bb)
2013-11-15 09:51:54 +01:00
Manuel Kasper
32f68227d9 Use big endian for NetFlow v9 64-bit counters too
This was most likely incorrect in previous versions, but nobody
noticed. Repeat count * not necessary.
2013-04-29 15:58:27 +02:00
Manuel Kasper
47239a8b5c Merge pull request #3 from dpiekacz/master
Remove Math::BigInt
2013-04-29 06:54:56 -07:00
Daniel Piekacz
52c0306055 There is no need to use Math::BigInt 2013-04-29 14:46:34 +01:00
Manuel Kasper
c53ca9450e Merge branch 'master' of https://github.com/dpiekacz/AS-Stats into dpiekacz-master
Conflicts:
	bin/netflow-asstatd.pl
2013-04-29 14:33:05 +02:00
Daniel Piekacz
9dc42d4705 Add NetFlow IPFIX support 2013-04-29 12:30:03 +01:00
Charlie Allom
aa3efb34f6 add NetFlow v5 support 2013-04-29 10:33:14 +01:00
Manuel Kasper
d0c49b309a Update my e-mail address 2013-04-29 10:43:44 +02:00
Manuel Kasper
d88bb9b1d4 * try harder to determine IP version for sFlow samples. 2013-04-15 16:14:23 +00:00
Manuel Kasper
d86c667ef3 * sFlow: fix creation of new RRDs when multiple entries with the same tag are present in the known links file
* Add startup scripts for FreeBSD
2013-03-17 15:15:08 +00:00
Manuel Kasper
1c78eedb01 * add support for setting the sampling rate per link in the knownlinks file 2013-03-17 15:12:40 +00:00
Manuel Kasper
3ff7930189 * add support for NetFlow v9
* add support for IPv6
* add support for 4-byte ASNs
2013-01-21 15:12:01 +00:00
Manuel Kasper
ece9fbd841 + small AS-Stats fix 2012-06-20 12:48:20 +00:00
Manuel Kasper
9080842d99 * AS-Stats: Smooth I/O burstiness and reduce overall IOPS requirements
by flushing only 10% of the cache every 25 seconds (instead
		of the entire cache at once every 60 seconds).
		(contributed by James A. T. Rice)
2012-04-19 11:59:08 +00:00
Manuel Kasper
77890a8bab Fix for NaN detection in rrd-extractstats.pl for 64-bit Perl versions (contributed by Benjamin Schlageter)
Skip missing data sources in rrd-extractstats.pl to avoid abort if new data sources are added but the RRDs are not updated.
2011-03-28 08:37:30 +00:00
Manuel Kasper
50508e6d4d sflow-asstatd.pl now uses the agent IP instead of the UDP source address - this makes it behave properly when a proxy is being used (contributed by Michel Moriniaux) 2011-01-27 14:34:56 +00:00
Manuel Kasper
944c0909ad Fix for multiple entries with the same tag in the
knownlinks file (e.g. for LACP).
2010-08-17 07:39:58 +00:00
Manuel Kasper
c8ce962aed + Allow NetFlow aggregation version 0 as well as 2 to make NetFlow exports from Juniper routers work 2009-10-13 17:28:29 +00:00
Manuel Kasper
ba0826caa3 * mark executable and set eol-style 2009-10-10 17:06:45 +00:00
Manuel Kasper
05bad2db6b Changes by Steve Colam <steve@colam.co.uk>:
- ...-asstatd.pl now accepts parameters (UDP listen port,
	  sampling rate etc.) on the command line
	
	  ****************************************************
	  * Mind the new command line syntax when upgrading! *
	  * Change your start script accordingly...          *
	  ****************************************************
	
	- hierarchical RRD structure for more efficient storage
	  (one directory per low byte of AS number)
	
	  *********************************************
	  * Use tools/migraterrdfiles.pl to move your *
	  * RRD files when upgrading!                 *
	  *********************************************

	- ...-asstatd.pl now re-reads known links file upon SIGHUP
	
Added contrib/generate-asinfo.py script to generate AS list from WHOIS
data (contributed by Thomas Mangin
<thomas.mangin@exa-networks.co.uk>).

Moved site-specific parameters of www frontend to config.inc.

New flag images from famfamfam.com.

Updated asinfo.txt.
2009-10-10 16:53:25 +00:00
Manuel Kasper
63f46903ae + landing page: fix new postal address
+ add sampling rate option to netflow-asstatd.pl
2009-06-16 10:27:20 +00:00
Manuel Kasper
1055163748 + AS stats script for sFlow 2009-01-22 08:30:10 +00:00
Manuel Kasper
07eccf65bb ! fix race condition on $childrunning when forking 2008-09-03 17:21:32 +00:00
Manuel Kasper
f0daa95e46 * AS-Stats modifications for public release 2008-02-19 15:43:28 +00:00
Manuel Kasper
9b65e833bd + put AS statistics tool source code in repository 2008-01-16 08:36:45 +00:00