Hi Per,
I've tried to execute this command (for now without a script):
/usr/bin/perl -w /usr/local/bin/mailgraph-fe1.pl --logfile
/mnt/mx-fe1_log/mail.log --daemon_rrd=/var/lib/mailgraph-fe1
--ignore-localhost --daemon --daemon-pid=/var/run/mailgraph-fe1.pid
and now I got the .rrd files in /var/lib/mailgraph-fe1!
Changed the path for .rrd files in the mailgraph-fe1.cgi (supposed was
mailgraph-fe1.rrd and mailgraph_virus-fe1.rrd instead they are with the
common name), and it works!
Thanks a lot, I just was wrong with the options in the executing command.
Stefano.
Il 24/05/2011 15:35, Per olof Ljungmark ha scritto:
> Stefano Giraldo wrote:
>> Hi ML,
>> I have 4 Postfix Front-end mail servers, I would like to mount (via NFS)
>> the /var/log of each mx server on my monitoring server (which have
>> already apache& rrdtool installed) in order to view the mailgraph of
>> everyone. There's a way to do this?
>>
>> I've tried to create a copy of all the files and folders created by
>> mailgraph, with a different name (mailgrah-fe1), everything, seems
>> right, the mail.log file is readable and all the permissions should be
>> ok... but for some reasons it doesn't create the .rrd files
>> /var/lib/mailgrah-fe1 but only in /var/lib/mailgraph.
>>
>> I found a question like this in the ML, dated 2002, but it's not so
>> helpfull.
>>
>> Thanks to everyone and regards.
> Hi,
>
> We have done exactly this by creating a number of scripts, one for each
> NFS mounted log, and then start one process for each. Works fine.
>
> /usr/bin/perl -w /usr/local/sbin/mailgraph[1-6].pl --logfile
> /var/log/<host>/maillog --daemon-rrd=/var/db/mailgraph
> --ignore-localhost --daemon --daemon-pid=/var/db/mailgraph/mailgraph[1-6]
>
--
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
|