[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[mailgraph] Re: Virus and Quarantine Counts Contained inSeparate Log - How Do I Add Them?


Thank you Ralf, that is an excellent idea, just not sure how I could make it work.

I suppose this might work:

        mailgraph.pl -l `sed 's/mailserver.example.com\/mailserver.example.com/mailserver.example.com/' /var/log/maillog` -d --daemon-pid=$PID_FILE --daemon-rrd=$RRD_DIR

Has anyone tried it?  Otherwise, I'll try tomorrow and let you all know.

What I would like to do is simply modify, assuming that is all I need to modify, the following line to double the hostname entry:

            \s
            ([-\w\.\@:]+)        # host  -- 6
            \s+

Thanks again,

.vp

> Date: Thu, 11 Sep 2008 20:45:17 +0200
> From: Ralf{dot}Hildebrandt{at}charite{dot}de
> To: mailgraph@list.ee.ethz.ch
> Subject: [mailgraph] Re: Virus and Quarantine Counts Contained in Separate	Log - How Do I Add Them?
> 
> * wiskbroom{at}hotmail{dot}com <wiskbroom{at}hotmail{dot}com>:
> > All;
> > 
> > First, does anyone read email from this list?  I ask because this is
> > now my fourth posting in a row, all of which I've never received a
> > reply for :-(
> 
> I do.
>  
> > Just in case, here goes:
> > 
> > I am sucessfully running mailgraph, wow it looks sweet! I've modified
> > the mailgraph.cgi and init scripts so that I can run one daemon for
> > each log file that I am parsing, a total of eight daemons for eight
> > mail servers.  At some point I need to create a script to download the
> > new mail logfiles, and parse them, each of my eight mailservers right
> > now send their syslog data to a central host, which is where I am
> > running mailgraph from.
> > 
> > Two issues:
> > 
> > 1.  I am still running into a problem whereby my hostnames are in the
> > HOSTNAME/HOSTNAME format, and mailgraph expects to see them in the
> > HOSTNAME format. Any help there would be greatly appreciated, my perl
> > is terrible.
> 
> You could pipe them through sed to replace HOSTNAME/HOSTNAME with just
> HOSTNAME!
> 
> -- 
> Ralf Hildebrandt (i.A. des IT-Zentrums)         Ralf{dot}Hildebrandt{at}charite{dot}de
> Charite - Universitätsmedizin Berlin            Tel.  +49 (0)30-450 570-155
> Gemeinsame Einrichtung von FU- und HU-Berlin    Fax.  +49 (0)30-450 570-962
> IT-Zentrum Standort CBF                              I'm looking for a job!


--
Unsubscribe mailto:mailgraph-request@list.ee.ethz.ch?subject=unsubscribe
Help        mailto:mailgraph-request@list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/mailgraph
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi