Borys,

Start with pipe and buffer sizes:

plugin_pipe_size: 1024000
plugin_buffer_size: 10240

And take it from there. If not first time right play with size (ie. increase
by one order) and ratio of the two variables until you get to a satisfactory
combination. Once the log is clean by these errors, you can try to have a
look for the actual problem.

Please don't attach large files to emails directed to the discussion list:
this is second time in a row your posts are blocked because too large. 

Cheers,
Paolo


On Mon, Nov 01, 2010 at 02:28:38PM +0100, Borys Owczarzak wrote:
> Dear all.
>
> I. I accounting traffic (avg. 70Mbps) between my network and Internet to  
> four tables per day:
> ipinE%Y%m%d - incoming traffic per src IP (remote hosts)
> ipinI%Y%m%d - incoming traffic per dst IP (local hosts)
> ipoutE%Y%m%d - outgoing traffic per dst IP (remote hosts)
> ipoutI%Y%m%d - outgoing traffic per sec IP (local hosts).
>
> II. Hardware server:
> -> Processor Xeon
> -> 4GB RAM
> -> Disk size:
>     For system    2x300GB (RAID 1)
>     For data        14x1TB (RAID 6)
>
> III. Problem:
> Normal nfacctd is running as four processes:
> root      3053  0.1  0.8  22312 18020 ?        Ss   11:02   0:17  
> nfacctd: Core Process [default]
> root      3054  0.1  0.5  14904 10556 ?        S    11:02   0:17  
> nfacctd: MySQL Plugin [ipinE]
> root      3055  0.1  0.5  15216 10880 ?        S    11:02   0:13  
> nfacctd: MySQL Plugin [ipinI]
> root      3056  0.1  0.5  15644 11300 ?        S    11:02   0:21  
> nfacctd: MySQL Plugin [ipoutE]
> root      3057  0.0  0.5  14988 10640 ?        S    11:02   0:08  
> nfacctd: MySQL Plugin [ipoutI]
>
> Unfortunatelly, sometimes I see only 2 or 3 processes (ex. core, ipinI,  
> ipoutI). After restart it works correctly for few day/hours.
>
> IV. Attachement
> *.txt -> templates of MySQL tables;
> nfacctd.conf -> actual configuration;
> nfacctd.log -> logs
>
> PS In log I see that I have problem with buffers and some solutions. I  
> do not know which I should use and what kind of values for  
> plugin_pipe_size / plugin_buffer_size / socket size use.
> Please help.
>
> Kind regards
> Borys Owczarzak


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

Reply via email to