Hi,

Try performing a locked access to the memory table. This
can be done by appending a '-l' option to the command, ie.
"pmacct -s -l -p ...". Let me know.

Cheers,
Paolo

On Thu, Jul 22, 2010 at 10:35:18AM +0000, Jose Joaquin Anton Herrerias wrote:
> I was Reading CONFIG-KEYS and internals documents but im doing something 
> wrong because the pmacct is stolen data.
> 
> When I look into the table for the traffic of one ip I see that the 
> accumulate is stolen.
> 
> # pmacct -s -p /tmp/host_in.pipe |grep 184.17
> XX.XXX.184.17    51277       14929314
> # pmacct -s -p /tmp/host_in.pipe |grep 184.17
> XX.XXX.184.17    53033       15176927
> # pmacct -s -p /tmp/host_in.pipe |grep 184.17
> XX.XXX.184.17    2803        477449
> 
> As you can see the bytes column is minor that before. The last time get 
> 477449 when 10 seconds before has 15176927. My config is:
> 
> !
> ! pmacct: In + Out
> !
> debug: false
> daemonize: true
> interface: eth1
> promisc: true
> syslog: kern
> imt_mem_pools_size: 12000
> imt_mem_pools_number: 20
> plugin_buffer_size: 20480
> networks_file: /etc/pmacct/networks2.def
> plugins: memory[net_in], memory[net_out], memory[host_in], memory[host_out]
> aggregate[net_in]: dst_net
> aggregate[net_out]: src_net
> aggregate[host_in]: dst_host
> aggregate[host_out]: src_host
> imt_path[net_in]: /tmp/net_in.pipe
> imt_path[net_out]: /tmp/net_out.pipe
> imt_path[host_in]: /tmp/host_in.pipe
> imt_path[host_out]: /tmp/host_out.pipe
> 
>  
> The traffic that I want to monitorize is 70 Mb out and 30 Mb In, is not to 
> much but im getting stolen data.
> 
> Thanks for the help and sorry for my bad English.
> 
> Best regards.
> 
> Jose Joaqu??n Ant??n Herrer??as
> J jan...@abserver.es


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

Reply via email to