Thanks for your help,

My configuration is single instance nfacctd, at port 5678, but multiple netflow source from different routers. Maybe I should configure one instance for one router.

Ronald

於 15/6/2013 3:22, Paolo Lucente 提到:
Hi Ronald,

It would help if you could look up what errno #48 is on your FreeBSD.
 From some online docs it looks like it could be EADDRINUSE - so, for
example, can it be the case multiple nfacctd instances are trying to
bind the same IP address, port? Or maybe you implemented something
to automatically restart the daemon basing on some conditions? Try
to "killall -9 nfacctd" and start it again and see if the error goes
away.

Cheers,
Paolo

On Tue, Jun 11, 2013 at 12:53:15PM +0800, Ronald - UDomain Web Hosting Co. Ltd. 
wrote:
My server generate a lots of error after I've switch netflow feed
CISCO 6509 to Juniper MX80 and here is the error log.

Jun 07 22:41:46 WARN: expecting flow '166744250' but received
'166746055' collector=0.0.0.0:5678 agent=123.123.123.2:0
Jun 07 22:41:55 ERROR ( default/core ): bind() to ip=(null)
port=5678/udp failed (errno: 48).
Jun 07 22:41:55 ERROR ( default/core ): bind() to ip=(null)
port=5678/udp failed (errno: 48).
Jun 07 22:41:55 ERROR ( default/core ): bind() to ip=(null)
port=5678/udp failed (errno: 48).
Jun 07 22:41:55 ERROR ( default/core ): bind() to ip=(null)
port=5678/udp failed (errno: 48).
....<many many>
Jun 11 12:38:23 ERROR ( default/core ): bind() to ip=(null)
port=5678/udp failed (errno: 48).
Jun 11 12:38:23 ERROR ( default/core ): bind() to ip=(null)
port=5678/udp failed (errno: 48).
Jun 11 12:38:23 ERROR ( default/core ): bind() to ip=(null)
port=5678/udp failed (errno: 48).

I have no idea coz the config file didn't change since Feb'2013.

FreeBSD 9.1
pmacct 0.14.1
(Turned on  Layer2, mmap,MySQL Support,  enabled Threads&  Shared objects)

root@pmacct:/etc# cat nfacctd.conf
daemonize: true
pidfile: /var/run/nfacctd.pid
plugins: mysql[inbound],mysql[outbound]
sql_db: pmacct
sql_host: localhost
sql_user: pmacct
sql_passwd: {secretpass}
aggregate[inbound]: dst_host
aggregate[outbound]: src_host
nfacctd_port: 5678
sql_refresh_time: 120
sql_history: 10m
sql_history_roundoff: mh
sql_table_version: 7
sql_table[inbound]: acct_v7_in
sql_table[outbound]: acct_v7_out
plugin_pipe_size: 102400000
plugin_buffer_size: 1024000
sql_cache_entries: 1048579
networks_file: /etc/nfacctd.networks
logfile: /var/log/nfacctd.err


Ronald Poon

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


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

Reply via email to