Hello Paolo, I had the time to test the last version of pmacct, sfacct seg fault when I add sfacctd_counter_amqp_routing_key in the configuration file.
Feb 19 14:46:16 DEBUG ( default/core ): Received sFlow packet from [95.81.160.126:8888] version [5] seqno [331687602] Feb 19 14:46:16 DEBUG ( default/core ): readv5CountersSample(): element tag 0:1. Feb 19 14:47:01 ERROR ( default/amqp ): Core process *seems* gone. Exiting. sfacctd -f /etc/pmacct/sfacctd.conf -d DEBUG: [/etc/pmacct/sfacctd.conf] plugin name/type: 'default'/'core'. DEBUG: [/etc/pmacct/sfacctd.conf] plugin name/type: 'default'/'amqp'. DEBUG: [/etc/pmacct/sfacctd.conf] amqp_host:localhost DEBUG: [/etc/pmacct/sfacctd.conf] amqp_user:pmacct DEBUG: [/etc/pmacct/sfacctd.conf] amqp_passwd:pmacct DEBUG: [/etc/pmacct/sfacctd.conf] amqp_exchange_type:fanout DEBUG: [/etc/pmacct/sfacctd.conf] amqp_exchange:pmacct.fanout DEBUG: [/etc/pmacct/sfacctd.conf] amqp_routing_key:$peer_src_ip DEBUG: [/etc/pmacct/sfacctd.conf] amqp_persistent_msg:true DEBUG: [/etc/pmacct/sfacctd.conf] sfacctd_counter_amqp_host:localhost DEBUG: [/etc/pmacct/sfacctd.conf] sfacctd_counter_amqp_user:pmacct DEBUG: [/etc/pmacct/sfacctd.conf] sfacctd_counter_amqp_passwd:pmacct DEBUG: [/etc/pmacct/sfacctd.conf] sfacctd_counter_amqp_exchange_type:fanout DEBUG: [/etc/pmacct/sfacctd.conf] sfacctd_counter_amqp_exchange:counter.fanout DEBUG: [/etc/pmacct/sfacctd.conf] sfacctd_counter_amqp_routing_key:plop DEBUG: [/etc/pmacct/sfacctd.conf] amqp_refresh_time:60 DEBUG: [/etc/pmacct/sfacctd.conf] amqp_history:1m DEBUG: [/etc/pmacct/sfacctd.conf] amqp_time_roundoff:m DEBUG: [/etc/pmacct/sfacctd.conf] refresh_maps:true DEBUG: [/etc/pmacct/sfacctd.conf] pre_tag_map:/etc/pmacct/pretag.map DEBUG: [/etc/pmacct/sfacctd.conf] pre_tag_filter:1 ERROR: [/etc/pmacct/sfacctd.conf] TAG filter cannot be global. Not loaded. DEBUG: [/etc/pmacct/sfacctd.conf] aggregate:src_host,dst_host DEBUG: [/etc/pmacct/sfacctd.conf] sfacctd_renormalize:true DEBUG: [/etc/pmacct/sfacctd.conf] timestamps_since_epoch:true DEBUG: [/etc/pmacct/sfacctd.conf] logfile:/var/log/pmacct.log DEBUG: [/etc/pmacct/sfacctd.conf] debug:true Segmentation fault sfacctd -V sFlow Accounting Daemon, sfacctd 1.6.0-git (20160219-00) --enable-geoip2 --enable-jansson --enable-rabbitmq --enable-plabel Do you want I create an issue on github ? Best regards On 18/01/2016 20:14, Robin Douine wrote: > Hi Paolo, > > I'll be back to you as early as possible. > > Best regards > > On 18/01/2016 06:16, Paolo Lucente wrote: >> Hi Robin, >> >> To say this is now done, see: >> >> https://github.com/pmacct/pmacct/commit/56bb6ac4924814fda7732112122c70ddcdd01542 >> https://github.com/pmacct/pmacct/commit/bc7249b949b952cce8b2b496b3c8b1e4af8ade24 >> >> Essentially, sFlow counters can now be exported to a RabbitMQ broker >> via the new sfacctd_counter_amqp_* configuration directives (see >> CONFIG-KEYS for full list and description: >> >> https://github.com/pmacct/pmacct/blob/master/CONFIG-KEYS >> >> Next up for sFlow counters (will be done later in the week) is to >> add support for export via a Kafka broker. >> >> Look forward to hear from you if get a second to test this out. >> >> Cheers, >> Paolo >> >> On Thu, Nov 05, 2015 at 07:22:16PM +0100, Robin Douine wrote: >>> Hello, >>> >>> As the sFlow Samples Counter Data format 1, 2 and 5 (Generic, Ethernet >>> and Vlan) are already implemented, the only thing I "wish", it would be >>> to be able to use the amqp plugin. >>> >>> Best regards >>> >>> On 05/11/2015 04:59, Paolo Lucente wrote: >>>> Hi Robin, >>>> >>>> Thanks for your kind words. >>>> >>>> About sFlow counters: you are right, currenty only streamed output to >>>> files is supported - no AMQP or Kafka. The feature was built ad-hoc and >>>> before doing further development I was precisely looking to see whether >>>> there is further interest into it. >>>> >>>> What would be your wishlist wrt sFlow counters? >>>> >>>> Anybody else reading has also interest into collecting sFlow counters? >>>> >>>> Cheers, >>>> Paolo >>>> >>>> On Wed, Nov 04, 2015 at 12:16:45PM +0100, Robin Douine wrote: >>>>> Hello, >>>>> >>>>> First, I congratulate you on this beautiful piece of software. >>>>> >>>>> I have a question about the new feature on the Sflow counters. >>>>> In the changelog, it's written : >>>>> "Counters are exported in JSON format to files" >>>>> >>>>> Does it mean that we can't get back the sflow counters in the plugins >>>>> like amqp ? >>>>> >>>>> Best regards >>>>> >>> >>> -- >>> Robin DOUINE > > _______________________________________________ > pmacct-discussion mailing list > http://www.pmacct.net/#mailinglists > -- Robin DOUINE - Network Manager Arkena - http://www.arkena.com 27 Bd Hippolyte Marques, 94200 Ivry sur Seine, France Phone : +33.1.58.68.62.33 / Cell : +33.6.87.05.20.02 _______________________________________________ pmacct-discussion mailing list http://www.pmacct.net/#mailinglists
