Dear List, 

I'm trying to do other tests with print plugin in json. But after some
tests, I'm not able anymore to work the json file, it's never written on
dis (I've removed a bit of sensitive informations with [...]) 

# /usr/local/sbin/nfacctd -d -f /opt/pmacct/conf/nfacctd.ebgp.conf 
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf] plugin name/type:
'default'/'core'.
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf] plugin name/type:
'generalOutEbgp'/'print'.
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf] daemonize:false
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf]
pidfile:/var/run/nfacctd_ebgp.pid
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf]
logfile:/var/log/nfacctd/ebgp.log
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf] syslog:daemon
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf] interface:[...]
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf] nfacctd_ip:[...]
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf] nfacctd_port:[...]
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf] nfacctd_as:bgp
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf] nfacctd_as_new:bgp
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf] nfacctd_time_new:true
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf] nfacctd_disable_checks:true
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf] nfacctd_net:bgp
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf] nfacctd_renormalize:true
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf]
nfacctd_ext_sampling_rate:8000
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf] refresh_maps:true
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf]
pre_tag_map:/opt/pmacct/conf/pretag.map
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf]
aggregate[generalOutEbgp]:dst_as,in_iface,out_iface,as_path,dst_host_country,peer_dst_as,peer_dst_ip,etype,tag
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf]
geoip_ipv4_file:/usr/share/GeoIP/GeoIP.dat
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf]
geoip_ipv6_file:/usr/share/GeoIP/GeoIPv6.dat
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf] refresh_maps:true
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf] bgp_daemon:true
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf] bgp_daemon_ip:[...]
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf] bgp_daemon_max_peers:4
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf] bgp_peer_src_as_type:bgp
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf] bgp_src_as_path_type:bgp
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf] bgp_src_std_comm_type:bgp
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf] bgp_stdcomm_pattern:[...]:
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf] bgp_src_ext_comm_type:bgp
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf]
bgp_agent_map:/opt/pmacct/conf/ebgp.map
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf]
bgp_daemon_allow_file:/opt/pmacct/conf/bgp.allowed
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf]
print_output_file[generalOutEbgp]:/tmp/nfacctdOutEbgp.json
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf]
print_output[generalOutEbgp]:json
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf]
print_history[generalOutEbgp]:2m
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf]
print_history_roundoff[generalOutEbgp]:m
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf]
print_refresh_time[generalOutEbgp]:120
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf]
print_trigger_exec[generalOutEbgp]:/opt/nfacctd2influx/nfacctd2influx.sh
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf]
plugin_pipe_size[generalOutEbgp]:10240000000
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf]
plugin_buffer_size[generalOutEbgp]:10240000
DEBUG: [/opt/pmacct/conf/nfacctd.ebgp.conf] debug:true 

But file is never created on /tmp/nfacctdOutEbgp.json and purge happen
without any effect : 

2018-12-13T16:32:01Z INFO ( generalOutEbgp/print ): *** Purging cache -
START (PID: 5604) ***
2018-12-13T16:32:01Z INFO ( generalOutEbgp/print ): *** Purging cache -
END (PID: 5604, QN: 0/0, ET: 0) *** 

How can I tshoot the problem ? What's missing / wrong ? 

-- 

FABIEN VINCENT
-------------------------------------------------------------------
 @beufanet

-------------------------------------------------------------------
_______________________________________________
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists

Reply via email to