Menu

#3 Using rsyslogd, stats for multiple installations

v1.0_(example)
open
nobody
None
1
2014-12-31
2013-12-30
breakaway
No

I'm using v8.7 on Debian. I've got it working fine for 1 host, but since I hav 3 different mailservers (all of which accept mail for the same domains) I want to get an overview for all servers.

I have configured rsyslogd and the "DOMAIN_HOST_REPORT" in sendmailanalyzer.conf -- but sendmail analyzer shows statistics per server only. Is it possible to get statistics for all servers but by domain?

Discussion

  • Darold Gilles

    Darold Gilles - 2013-12-30

    I think you can use the MERGING_HOST and DOMAIN_REPORT configuration directives to do what you want.

    For example if you have 3 mail servers, let's say mtasrv1, mtasrv2 and mtasrv3. Each of them distribute message for domains srv1.dom, srv2.dom and srv3.dom.

    DOMAIN_REPORT   srv1.dom,srv2.dom,srv3.dom
    

    ...

    MERGING_HOST    mtasrv1,mtasrv2,mtasrv3
    

    should do what you are expecting if I've well understanding your question.

    Let us now if that's solve your issue.

     
  • breakaway

    breakaway - 2013-12-30

    Hi, yes that is exactly what I want to do -- but unfortunately I can't get it working. Here is my syntax is sendmailanalyzer.conf:

    DOMAIN_REPORT domain1.com.au domain2.com.au domain3.co.uk
    
    MERGING_HOST mta-01 mta-02 mta-03
    

    I have also tried with commas & tabs,

    MERGING_HOST mta-01,mta-02,mta-03
    

    But when I try to access sendmailanalyzer through a web browser and click on "Consult global statistics for mta-01 mta-02 mta-03 I get this:

    ERROR: Bad CGI param, hacking attempt: host: mta-01mta-02mta-03
    

    Is there something wrong with my syntax? Is it because there is a hyphen in my MTA hostname?

     

    Last edit: breakaway 2013-12-30
  • Darold Gilles

    Darold Gilles - 2013-12-31

    Yes, sorry I've made a mistake, in fact the value of MERGING_HOST will be used to replace any hostname from the log. So you may use it as followw:

    MERGING_HOST    alllymta
    

    That also mean that you can not aggregate some host and have single report for some others. All logs line will be processed as belonging to the same host.

    Regards,

     

Anonymous
Anonymous

Add attachments
Cancel