Re: [pmacct-discussion] Best way to output ip addresses as integers

2017-09-04 Thread Paolo Lucente
Hi Yann, Depending on the plugin you are using there could already be a built-in or not. For the SQL plugins you have it: 'sql_num_hosts: true'; for all the others you don't but actually adapting a feature like this would be relatively easy/quick. If you use SQL plugins, specifically MySQL,

[pmacct-discussion] Best way to output ip addresses as integers

2017-09-04 Thread Yann Belin
Hello, I need to run some checks / manipulate source/destination IP addresses that I am getting from nfacctd, and for that purpose it makes much more sense to output hose IPs in their inetger form, rather than in their human-readable (x.x.x.x) form. In order to do that, I created custom

Re: [pmacct-discussion] Load balancing nfacctd

2017-09-04 Thread Yann Belin
Hi all, Updating on this, in case someone is interested. Consul was indeed the way to go: * nginx is doing the actual UDP load balancing, based on source IP hash (to optimize aggregation). * consul keeps track of nfacctd collectors, of their health, and of the health of their dependencies

Re: [pmacct-discussion] Load balancing nfacctd

2017-09-04 Thread Aaron Finney
Great to hear, nice work! Aaron On Sep 4, 2017 1:55 AM, "Yann Belin" wrote: Hi all, Updating on this, in case someone is interested. Consul was indeed the way to go: * nginx is doing the actual UDP load balancing, based on source IP hash (to optimize aggregation). *