57 Commits

Author SHA1 Message Date
Alexandre Bruyelles
761520b725
netflow_v9: support ip2asn mapping for ipv4 as well
Signed-off-by: Alexandre Bruyelles <abruyelles@odiso.com>
2018-07-16 20:32:01 +02:00
Raf
fc8e8e8683 Use ip2asn to provide a workaround for CSCuf86015 in NetFlow v9 2018-05-12 15:18:32 +02:00
jack
2017097b30
Fix typo
Signed-off-by: jack <jack@k-net.pro>
2017-04-02 14:08:17 +02:00
jack
d0599e60ae
Support optional IP to ASN mapping for sFlow
Signed-off-by: jack <jack@k-net.pro>
2017-03-16 15:54:06 +01:00
jack
c447f9d096
Support optional IP to ASN mapping for netflow v5
Signed-off-by: jack <jack@k-net.pro>
2017-03-10 15:11:05 +01:00
jack
d6c4c0ff95
Store statistics into a sqlite3 database. This way, we can quickly filter links on the top page, deprecating the linkusage page
Signed-off-by: jack <jack@k-net.pro>
2017-02-25 15:58:28 +01:00
jack
84931f2eca Don't set asn as value, but key, thanks manuelkasper
Signed-off-by: jack <jack@k-net.pro>
2017-01-20 20:44:05 +01:00
jack
79abab60d3 sFlow: handle multiple ASN, if you want to merge the statistics when you own more than a single network
Signed-off-by: jack <jack@k-net.pro>
2017-01-19 15:02:21 +01:00
jack
d649faf8d8 Forgot that code ..
Signed-off-by: jack <jack@k-net.pro>
2016-11-18 17:44:24 +01:00
jack
fc940ce20f Support extendedflow
Signed-off-by: jack <jack@k-net.pro>
2016-11-18 17:39:27 +01:00
Shane Mc Cormack
586e5f2d2c Allow separate samplerates for in/out traffic 2016-04-15 15:13:24 +01:00
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