Hi Fabien, It smells like a crash. Please follow:
https://github.com/pmacct/pmacct/blob/master/QUICKSTART#L2031-L2060 We can then follow-up 1:1 with any output you may be able to gather. Cheers, Paolo On Tue, Feb 13, 2018 at 10:21:54PM +0100, Fabien VINCENT wrote: > Hi all, > > Trying to use the plugin print and seems I have an issue but can't find > why > > aggregate[trafficin]: in_iface, tag2, peer_src_as, src_as, peer_src_ip, > peer_dst_ip, std_comm, etype, tcpflags, dst_port, proto > plugins: print[trafficin] > > print_refresh_time: 60 > print_history: 1m > print_output: json > print_output_file: /opt/data/nfacctd-in-%Y%m%d-%H%M.json > !print_history_roundoff: m > !print_output_file_append: true > > When starting, it's fine > > Feb 13 21:56:41 INFO ( default/core ): NetFlow Accounting Daemon, > nfacctd 1.7.0-git (20170924-00) > Feb 13 21:56:41 INFO ( default/core ): '--build=x86_64-linux-gnu' > '--prefix=/usr/local' '--includedir=${prefix}/include' > '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' > '--sysconfdir=/etc' '--localstatedir=/var' > '--libdir=/usr/lib/x86_64-linux-gnu' > '--libexecdir=${prefix}/lib/x86_64-linux-gnu' '--enable-pgsql' > '--enable-mysql' '--enable-sqlite3' '--enable-ipv6' '--enable-64bit' > '--enable-threads' '--enable-jansFeb 13 21:56:41 INFO ( default/core ): > Reading configuration file '/etc/pmacct/nfacctd_in.conf'. > Feb 13 21:56:41 INFO ( default/core/BGP ): maximum BGP peers allowed: > 100 > > But after few seconds : > > Feb 13 21:59:51 INFO ( trafficin/print ): JSON: setting object handlers. > Feb 13 21:59:54 WARN ( default/core ): connection lost to > 'trafficin-print'; closing connection. > Feb 13 21:59:54 WARN ( default/core ): no more plugins active. Shutting > down. > > Same with json and csv. Don't know why but sometimes it work ... > > > /usr/local/sbin/nfacctd -V > NetFlow Accounting Daemon, nfacctd 1.7.0-git (20170924-00) > > Arguments: > '--build=x86_64-linux-gnu' '--prefix=/usr/local' > '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' > '--infodir=${prefix}/share/info' '--sysconfdir=/etc' > '--localstatedir=/var' '--libdir=/usr/lib/x86_64-linux-gnu' > '--libexecdir=${prefix}/lib/x86_64-linux-gnu' '--enable-pgsql' > '--enable-mysql' '--enable-sqlite3' '--enable-ipv6' '--enable-64bit' > '--enable-threads' '--enable-jansson' 'build_alias=x86_64-linux-gnu' > '--enable-l2' '--enable-traffic-bins' '--enable-bgp-bins' > '--enable-bmp-bins' '--enable-st-bins' > > Libs: > libpcap version 1.6.2 > MySQL 5.5.58 > PostgreSQL 90415 > sqlite3 3.8.7.1 > jansson 2.7 > > System: > Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.43-2+deb8u5 (2017-09-19) x86_64 > > I was trying to do this, because the plugin pipe is missing data even > with : > > plugin_pipe_size: 327680000 > plugin_buffer_size: 327680 > > -- > > FABIEN VINCENT > ------------------------------------------------------------------- > _______________________________________________ > pmacct-discussion mailing list > http://www.pmacct.net/#mailinglists _______________________________________________ pmacct-discussion mailing list http://www.pmacct.net/#mailinglists
