Hi Paolo,

ah, ok. I didn't had a look at the code, therefore I can only give
feedback on what I see at the log files. From the code point of view the
behaviour of when to log a warning and when to log an error makes
absolutely sense to me. As of the point of view of somebody who reads
the logfile a message like

WARN ( default/core ): eth0: no IPv4 address assigned
WARN ( default/core ): Abnormal exit status detected for child PID 22313

and

WARN ( default/mysql ): Maximum number of SQL writer processes reached
(65533).
WARN ( default/mysql ): Unable to fork DB writer: Cannot allocate memory
WARN ( default/memory ): Unable to allocate more memory pools, clear
stats manually!

On the one hand there is a message with which pmacct can work without
any disadvantages and on the other hand there will be data loss because
pmacct cannot work properly. I don't want you to change this behaviour
immediately, but I want to show up that there is a difference in these
log messages.

My solution for that is that I treat WARN messages like ERROR message to
get notified by my monitoring system if anything went wrong. The rest of
the WARN message I'm simply grepping out of the logfile. So at least I
found a solution that's working for me. Thanks for your support.

Cheers
Andi

Am 19.11.2015 um 12:48 schrieb Paolo Lucente:
> Hi Andreas,
> 
> Thanks a lot for the kind words.
> 
> An error condition would in principle be one that prevents the software
> from running (and hence each error message is currently followed by an
> exit() call): no interface to bind to, no memory available, etc.. The
> condition you are running into is pmacct (by default) does limit the own
> memory allocation; you can configure it to grow indefinitely in memory
> with "imt_mem_pools_number: 0"; it looks correct to me this condition
> is not followed by an exit() call and hence is marked as a warning.
> 
> Cheers,
> Paolo
> 

-- 
sixhop.net

sixhop.net
Andreas Nitsche
Pucher Str. 21-23
82256 Fürstenfeldbruck

Fon: 08141 31 597-0
Fax: 08141 31 597-1
E-Mail: [email protected] <mailto:[email protected]>
Web: www.sixhop.net <http://www.sixhop.net/>


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

Reply via email to