Re: [pmacct-discussion] trouble compiling 1.5.0

2014-10-22 Thread Chris
On 21/10/14 02:37, Paolo Lucente wrote: Do i then understand you are still unable to compile 1.5.0 on this system, no matter which work around you are trying out? If yes, would it be a possibility to get access to this box for first hand kind of troubleshooting? If I remove the --disable-so

Re: [pmacct-discussion] trouble compiling 1.5.0

2014-10-22 Thread Chris
On 23/10/14 14:40, itria30...@itri.org.tw wrote: I guess the issue happened during static build. It seems be a common problem of libpcap. I experienced this issue in other project using libpcap. Well the question still remains why it worked with 1.5.0rc1 but not 1.5.0 full. --

[pmacct-discussion] trouble compiling 1.5.0

2014-10-15 Thread Chris
for the rc1. I'm not sure what to try next - any suggestions? Thanks, Chris. ___ pmacct-discussion mailing list http://www.pmacct.net/#mailinglists

Re: [pmacct-discussion] Timestamps in RabbitMQ/JSON output

2014-06-03 Thread Chris Wilson
. Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone: +44 1223 967 838 Citylife House, Sturton Street, Cambridge, CB1 2QF, UK Aptivate is a not-for-profit company registered in England and Wales with company number 04980791. ___ pmacct

Re: [pmacct-discussion] Newbie

2014-04-05 Thread Chris Wilson
: pmacct sql_passwd: X sql_refresh_time: 60 sql_dont_try_update: true sql_optimize_clauses: true sql_preprocess: minb = 1 From page 47 of: http://www.ws.afnog.org/afnog2013/tutorials/bmo/afnog-bmo-presentation.odp Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone: +44 1223

Re: [pmacct-discussion] HTTP traffic classification

2014-03-24 Thread Chris Wilson
. Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone: +44 1223 967 838 Citylife House, Sturton Street, Cambridge, CB1 2QF, UK Aptivate is a not-for-profit company registered in England and Wales with company number 04980791. ___ pmacct

Re: [pmacct-discussion] HTTP traffic classification

2014-03-22 Thread Chris Wilson
the source and destination host and port at all, let alone store it in a SQL database (no sample output is provided), and presumably it does nothing with https. Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone: +44 1223 967 838 Citylife House, Sturton Street, Cambridge, CB1 2QF, UK

Re: [pmacct-discussion] Error: 'sql_multi_values' is too small (100). Try with a larger value

2013-09-03 Thread Chris Wilson
the inserts into multiple batches, otherwise a smaller batch size would work too. So one day you might have more than 1000 flows to insert at a time, and you'd get this error and lose data. In fact are you sure you haven't lost any data already? Cheers, Chris. -- Aptivate | http://www.aptivate.org

Re: [pmacct-discussion] Error: 'sql_multi_values' is too small (100). Try with a larger value

2013-09-03 Thread Chris Wilson
[17603]: ERROR ( summary/mysql ): 'sql_multi_values' is too small (100). Try with a larger value. Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone: +44 1223 967 838 Citylife House, Sturton Street, Cambridge, CB1 2QF, UK Aptivate is a not-for-profit company registered in England

Re: [pmacct-discussion] Error: 'sql_multi_values' is too small (100). Try with a larger value

2013-09-03 Thread Chris Wilson
seem to be a minor bug in that pmacct appears to fall over if the value is too small. I'm sure it could log a warning and write larger but valid INSERT statements, with at least one VALUES row per statement. Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone: +44 1223 967 838 Citylife

[pmacct-discussion] Error: 'sql_multi_values' is too small (100). Try with a larger value

2013-09-02 Thread Chris Wilson
), FROM_UNIXTIME(1378141080), '00:1b:21:92:98:17' at line 1 This looks like a bug to me? Surely it should be reasonable to insert up to 100 rows at a time (per SQL statement) instead of just 1? Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone: +44 1223 967 838 Citylife House, Sturton Street

Re: [pmacct-discussion] Build fails to find libmysqlclient on 64-bit CentOS

2013-06-26 Thread Chris Wilson
Hi Paolo, On Tue, 25 Jun 2013, Paolo Lucente wrote: Sure, thanks for the tip: makes sense, will do. Also please find attached an RPM spec file to help build rpms for pmacct. It would be great if you could include this in the tarball. Cheers, Chris. -- Aptivate | http://www.aptivate.org

[pmacct-discussion] Build fails to find libmysqlclient on 64-bit CentOS

2013-06-25 Thread Chris Wilson
Hi Paolo, Configure fails to find /usr/lib64/mysql/libmysqlclient.so on 64-bit CentOS. You might want to add that to the list of search directories in configure.in? Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone: +44 1223 967 838 Citylife House, Sturton Street, Cambridge, CB1

Re: [pmacct-discussion] Duplicate entry for key 1 (primary key violations)

2012-07-18 Thread Chris Wilson
Hi Paolo, On Fri, 29 Jun 2012, Paolo Lucente wrote: On Tue, Jun 26, 2012 at 10:13:30AM +0100, Chris Wilson wrote: OK, testing now. Would it be possible for pmacctd to log a warning if it exceeds any of these thresholds, to help with tuning without wasting memory? In a way you reckon things

Re: [pmacct-discussion] Duplicate entry for key 1 (primary key violations)

2012-07-18 Thread Chris Wilson
in the same stream and see how much traffic is being wrongly classified? Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone: +44 1223 967 838 Future Business, Cam City FC, Milton Rd, Cambridge, CB4 1UY, UK Aptivate is a not-for-profit company registered in England and Wales with company number

Re: [pmacct-discussion] Duplicate entry for key 1 (primary key violations)

2012-06-26 Thread Chris Wilson
. Is it possible that it either failed to remove some records from the cache, or calculated the timestamp of the database records incorrectly? Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone: +44 1223 967 838 Future Business, Cam City FC, Milton Rd, Cambridge, CB4 1UY, UK Aptivate

[pmacct-discussion] Duplicate entry for key 1 (primary key violations)

2012-06-12 Thread Chris Wilson
, 'plugin_buffer_size'; now: '192'. Jun 10 05:13:01 fen-fw2 pmacctd[4070]: - increase system maximum socket size. How would I know which parameter to increase? Could the writer tell us exactly which limit it hit? Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone: +44 1223 967 838 Future

Re: [pmacct-discussion] nfacctd

2012-04-01 Thread Chris Wilson
Hi Johan, your nfacctd is compiled without mysql support, so it's not logging to the database, only the memory plugin. Please fix that and try again. Cheers, Chris. -Original Message- From: johan lotter jlct...@gmail.com Sender: Chris Wilson ch...@aptivate.orgDate: Sun, 1 Apr 2012 16

Re: [pmacct-discussion] pmacct-discussion Digest, Vol 83, Issue 1

2012-02-02 Thread Chris Wilson
replying to. Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone: +44 1223 967838 The Humanitarian Centre, Fenner's, Gresham Road, Cambridge CB1 2ES Aptivate is a not-for-profit company registered in England and Wales with company number 04980791

Re: [pmacct-discussion] Infinite loop in sql_cache_insert

2011-12-02 Thread Chris Wilson
would make it much easier to work on and extend pmacct. Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone: +44 1223 760887 The Humanitarian Centre, Fenner's, Gresham Road, Cambridge CB1 2ES Aptivate is a not-for-profit company registered in England and Wales with company number

Re: [pmacct-discussion] Broken aggregate Filter

2011-06-09 Thread Chris Wilson
or dst net 88.215.192.0/19)) These filters look identical to me. How come it both works and doesn't work? Cheers, Chris. ___ pmacct-discussion mailing list http://www.pmacct.net/#mailinglists

Re: [pmacct-discussion] Broken aggregate Filter

2011-06-09 Thread Chris Wilson
does. Cheers, Chris. ___ pmacct-discussion mailing list http://www.pmacct.net/#mailinglists

Re: [pmacct-discussion] Aggregate not working?

2010-11-11 Thread Chris Wilson
running? Or might you have changed the config without restarting it? Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone: +44 1223 760887 The Humanitarian Centre, Fenner's, Gresham Road, Cambridge CB1 2ES Aptivate is a not-for-profit company registered in England and Wales with company

Re: [pmacct-discussion] Source port column name depends on database

2010-10-06 Thread Chris Wilson
config.sql_table_version 8 instead. By the way I've written this story up in a blog post, I hope that's OK, but please let me know if you want me to edit it: http://blog.aptivate.org/2010/10/06/consistency-portability-and-backwards-compatibility/ Cheers, Chris

Re: [pmacct-discussion] Source port column name depends on database

2010-10-06 Thread Chris Wilson
agreed to simply He agreed - i'm not such of an un-cooperative beast, am i? Of course not, far from it :) I've changed it. Cheers, Chris. ___ pmacct-discussion mailing list http://www.pmacct.net/#mailinglists

Re: [pmacct-discussion] Source port column name depends on database

2010-09-15 Thread Chris Wilson
Hi Paolo, On Wed, 15 Sep 2010, Paolo Lucente wrote: On Tue, Sep 14, 2010 at 09:16:37AM +0200, Chris Wilson wrote: I'm not sure about adding a new config switch, do we actually need it? Funnily enough, and that was my perspective, in this case a configuration switch only adds two

Re: [pmacct-discussion] Source port column name depends on database

2010-09-14 Thread Chris Wilson
where possible, as it exponentially multiplies the complexity of the software code and also linearly increases the complexity of using it. If our intention is to rename the MySQL fields going forward, why not just use a new schema version to grandfather the old column names? Cheers, Chris

[pmacct-discussion] Source port column name depends on database

2010-09-13 Thread Chris Wilson
of the mysql or postgres schema? Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone: +44 1223 760887 The Humanitarian Centre, Fenner's, Gresham Road, Cambridge CB1 2ES Aptivate is a not-for-profit company registered in England and Wales with company number 04980791

Re: [pmacct-discussion] pmpgplay - what does it do?

2010-07-26 Thread Chris
Hi Paolo, For what it's worth the log seems to be aggregated on the history time. I only see the 5 min increments when I run pmpgplay in debug mode. Yes, this is because you get logged down the exact tuple that was going to be written to the database. And records in the database are fitted in

Re: [pmacct-discussion] pmpgplay - what does it do?

2010-07-25 Thread Chris
Hi, The 'failsafe' mechanism (ie. writing to a backup database or to log files) kicks in upon receipt of an error code from the RDBMS API. So what you see in the log file should never be already in the database. Excellent, thanks. Your specific configuration is tricky because you write to

[pmacct-discussion] pmpgplay - what does it do?

2010-07-22 Thread Chris
Hi, I'm using pmacct-0.12.0rc3 with postgresql. I've been trying to work out what pmpgplay does when it looks at a log file. I couldn't find much in my searches that go into the details of how it does things. It seems it generates a bunch of sql, but does it check to see if that record

Re: [pmacct-discussion] Pmacct data inconsistencies between tables.

2010-02-19 Thread Chris Wilson
. Thanks for your help with this :) Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone: +44 1223 760887 The Humanitarian Centre, Fenner's, Gresham Road, Cambridge CB1 2ES Aptivate is a not-for-profit company registered in England and Wales with company number 04980791

Re: [pmacct-discussion] Pmacct data inconsistencies between tables.

2010-02-19 Thread Chris Wilson
Hi Karl, On Fri, 19 Feb 2010, Karl O. Pinc wrote: On 02/19/2010 07:42:08 AM, Chris Wilson wrote: I deleted the primary key from that table because it should not be necessary (there should not be any duplicates if everything is configured correctly) and it makes inserts extremely slow

Re: [pmacct-discussion] NAT question

2009-11-11 Thread Chris Wilson
is necessary in order to have their source IP natted. Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone: +44 1223 760887 The Humanitarian Centre, Fenner's, Gresham Road, Cambridge CB1 2ES Aptivate is a not-for-profit company registered in England and Wales with company number 04980791

Re: [pmacct-discussion] timestamp rounding bug

2009-08-04 Thread Chris Wilson
. Is any real-world system set to UTC? I'm certainly not going to run my firewall (where I run pmacct currently) on UTC. All my logs would be screwed up and much harder to interpret. Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone: +44 1223 760887 The Humanitarian Centre, Fenner's

Re: [pmacct-discussion] Flexible aggregation

2009-06-14 Thread Chris Wilson
or neither. How else could we do it with what we already have? We could write to different tables at different levels of aggregation, and let the user choose which one to use, and delete old data from each table to stop it becoming too large... but that gets more complicated for the user. Cheers, Chris

Re: [pmacct-discussion] Flexible aggregation

2009-06-13 Thread Chris Wilson
to the database, never rejected, so SUM(bytes) would again equal the interface counters for any given time range. Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone: +44 1223 760887 The Humanitarian Centre, Fenner's, Gresham Road, Cambridge CB1 2ES Aptivate is a not-for-profit company

Re: [pmacct-discussion] Flexible aggregation

2009-06-13 Thread Chris Wilson
, and merge them all together in our code. However I can see that some people would prefer to keep them in separate tables. Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone: +44 1223 760887 The Humanitarian Centre, Fenner's, Gresham Road, Cambridge CB1 2ES Aptivate is a not-for-profit

[pmacct-discussion] Flexible aggregation

2009-06-12 Thread Chris Wilson
this flexible aggregation in pmacct? Could the code be taken from Aguri under BSD license? Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone: +44 1223 760887 The Humanitarian Centre, Fenner's, Gresham Road, Cambridge CB1 2ES Aptivate is a not-for-profit company registered in England

Re: [pmacct-discussion] timestamp rounding bug

2009-04-20 Thread Chris Wilson
, i.e. working in local time or DST, makes working across time zones difficult, and computing intervals (in the case of DST) impossible. I agree with Karl. Timestamps in UTC in the database make the most sense for me. Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone: +44 1223 760887

Re: [pmacct-discussion] Strange SQL-Error

2009-04-13 Thread Chris Wilson
. pthread_getspecific() should not crash, that makes me think that the heap has been trashed (stack looks generally OK as the backtrace is OK). Perhaps a Valgrind is in order? Any static or fixed-size buffers in the mysql plugin that might be busted? Cheers, Chris. -- Aptivate | http

Re: [pmacct-discussion] Strange SQL-Error

2009-04-13 Thread Chris Wilson
a thread other than the first one and switch to it with thread xxx and continue, and hope that that thread dies with SIGSEGV. Is pmacctd not terminated once pressing ctrl+c? It shouldn't be, gdb should intercept the SIGINT and stop it from reaching the process. Cheers, Chris. -- Aptivate

Re: [pmacct-discussion] Strange SQL-Error

2009-04-13 Thread Chris Wilson
' for key 1 Apr 13 17:20:01 server1 kernel: pmacctd[12419]: segfault at 3827208c ip f7c599ca sp ffde7894 error 4 in libpthread-2.3.6.so[f7c51000+e000] As this crash is so early, perhaps the thread isn't initialised properly? Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone

Re: [pmacct-discussion] Strange SQL-Error

2009-04-13 Thread Chris Wilson
stamp_inserted = 1:00 not 0:00, as far as I know. Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone: +44 1223 760887 The Humanitarian Centre, Fenner's, Gresham Road, Cambridge CB1 2ES Aptivate is a not-for-profit company registered in England and Wales with company number 04980791

[pmacct-discussion] pmacct weird counters

2009-03-14 Thread Chris Wilson
have any ideas what might be going on here? Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone: +44 1223 760887 The Humanitarian Centre, Fenner's, Gresham Road, Cambridge CB1 2ES Aptivate is a not-for-profit company registered in England and Wales with company number 04980791

Re: [pmacct-discussion] pmacct weird counters

2009-03-14 Thread Chris Wilson
or external). Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone: +44 1223 760887 The Humanitarian Centre, Fenner's, Gresham Road, Cambridge CB1 2ES Aptivate is a not-for-profit company registered in England and Wales with company number 04980791

Re: [pmacct-discussion] pmacct weird counters

2009-03-14 Thread Chris Wilson
in the pcap file while reading it? Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone: +44 1223 760887 The Humanitarian Centre, Fenner's, Gresham Road, Cambridge CB1 2ES Aptivate is a not-for-profit company registered in England and Wales with company number 04980791

Re: [pmacct-discussion] pmacct weird counters

2009-03-14 Thread Chris Wilson
. Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone: +44 1223 760887 The Humanitarian Centre, Fenner's, Gresham Road, Cambridge CB1 2ES Aptivate is a not-for-profit company registered in England and Wales with company number 04980791

Re: [pmacct-discussion] pmacct weird counters

2009-03-14 Thread Chris Wilson
Hi Karl, On Sat, 14 Mar 2009, Chris Wilson wrote: sum_net gets you a all the traffic to and from each network you list in your networks file, plus to and from anywhere else. The cross product. In your case, if you put only 192.168.0.0/24 in your networks file you get out totals

Re: [pmacct-discussion] pmacct weird counters

2009-03-14 Thread Chris Wilson
something must have been wrong on the pmacct side. Running tcpdump in parallel would be great for double-checking. And yes, pmacct honours timestamps within pcap trace files. OK, done. I assume the default snaplen of 96 bytes is OK for pmacct? Cheers, Chris. -- Aptivate | http

Re: [pmacct-discussion] HTTP Virtual Hosts classification

2009-02-18 Thread Chris Wilson
usage. I would be very interested to see what you do in this space. Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone: +44 1223 760887 The Humanitarian Centre, Fenner's, Gresham Road, Cambridge CB1 2ES Aptivate is a not-for-profit company registered in England and Wales with company

Re: [pmacct-discussion] multiple interfaces

2009-01-23 Thread Chris Wilson
as the interface name to capture all flows? I think it should work, although it will not put any interface into promiscuous mode. Please let us know if it does work. Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone: +44 1223 760887 The Humanitarian Centre, Fenner's, Gresham Road, Cambridge

Re: [pmacct-discussion] multiple interfaces

2009-01-07 Thread Chris Wilson
for each instance. tcpdump can bind to all interfaces but it can't put them all into promiscuous mode at the same time. If that's OK for your application, try using the device any instead of a real device. Cheers, Chris. ___ pmacct-discussion mailing

Re: [pmacct-discussion] pNRG and graphing

2008-10-21 Thread Chris Wilson
it. Just add up the traffic for each source address with a SQL SUM/GROUP BY and it will give you total traffic for all hosts. Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone: +44 1223 760887 The Humanitarian Centre, Fenner's, Gresham Road, Cambridge CB1 2ES Aptivate

Re: [pmacct-discussion] MySQL and Duplicate Primary Keys

2008-10-08 Thread Chris Wilson
by mistake? Sorry, I think you're right, there were multiple instances running :( Thanks again for your help. Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone: +44 1223 760887 The Humanitarian Centre, Fenner's, Gresham Road, Cambridge CB1 2ES Aptivate is a not-for-profit company registered

[pmacct-discussion] MySQL and Duplicate Primary Keys

2008-10-02 Thread Chris Wilson
. Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone: +44 1223 760887 The Humanitarian Centre, Fenner's, Gresham Road, Cambridge CB1 2ES Aptivate is a not-for-profit company registered in England and Wales with company number 04980791. ___ pmacct

Re: [pmacct-discussion] How does pmacct divide between in and outbound traffic?

2008-08-04 Thread Chris Wilson
aggregate_filter[out]: src net 192.168.0.0/16 Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone: +44 1223 760887 The Humanitarian Centre, Fenner's, Gresham Road, Cambridge CB1 2ES Aptivate is a not-for-profit company registered in England and Wales with company number 04980791

Re: [pmacct-discussion] mysql plugin connect problem

2008-07-23 Thread Chris Wilson
(pattern) doesn't have access to the bandwidth_db database. Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone: +44 1223 760887 The Humanitarian Centre, Fenner's, Gresham Road, Cambridge CB1 2ES Aptivate is a not-for-profit company registered in England and Wales with company number

Re: [pmacct-discussion] pmacct and nat ?

2008-07-07 Thread Chris Wilson
that you can see the traffic with tcpdump or wireshark before blaming pmacct :) Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone: +44 1223 760887 The Humanitarian Centre, Fenner's, Gresham Road, Cambridge CB1 2ES Aptivate is a not-for-profit company registered in England and Wales

Re: [pmacct-discussion] Measurement accuracy issues

2008-06-10 Thread Chris Wilson
MB in this case. The overhead will be much higher for smaller packets which may explain your observed 30% discrepancy. If so, this is arguably a bug (or limitation) of darkstat rather than pmacct. Please let us know what you discover. Cheers, Chris. -- Aptivate | http://www.aptivate.org | Phone

Re: [pmacct-discussion] per-plugin filtering of sflow samples

2007-01-29 Thread Chris Fletcher
the sflow packets. Running with '-d' shows that it is not processing any samples. The samples are coming from Foundry switches. Chris. ___ pmacct-discussion mailing list http://www.pmacct.net/#mailinglists

Re: [pmacct-discussion] pmacctd transparent proxy

2006-12-21 Thread Chris Wilson
); and your pmacct client software needs to be modified to take advantage of the new table. Cheers, Chris. -- (aidworld) chris wilson | chief engineer ([EMAIL PROTECTED]) ___ pmacct-discussion mailing list http://www.pmacct.net/#mailinglists

Re: [pmacct-discussion] Classification

2006-11-07 Thread Chris Wilson
on this at LinuxTag 2005, which unfortunately is not available online in PDF form (since LinuxTag apparently charges for access to conference papers). I generated an HTML version and attached it here: [http://bmo.aidworld.org/attach/Chris/paper.html] Basically this means that the Linux kernel will be keeping

Re: [pmacct-discussion] Classification

2006-11-07 Thread Chris Wilson
working on it. Cheers, Chris. -- (aidworld) chris wilson | chief engineer (http://www.aidworld.org) ___ pmacct-discussion mailing list http://www.pmacct.net/#mailinglists

[pmacct-discussion] Large number of threads

2006-10-18 Thread Chris Wilson
in total, almost all database writers. Is this really a good idea? Wouldn't it be better to serialise database writes to some extent, to degrade gracefully rather than spiralling to death? Or is this already possible and I missed the config option? Thanks in advance for your help. Cheers, Chris

Re: [pmacct-discussion] pmacctd only collecting half of the data being passed.

2005-02-25 Thread Chris Koutras
you are purging the data to the database long before history time has expired. Chris PS With that traffic load you will want sql_dont_try_update set to true unless you have major league mysql server. Database row updates are really expensive operations. I am collecting from a nearly fully