Re: [exim] exim "top" utility

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Peter Kirk
Datum:  
To: Matthew Newton
CC: exim-users
Betreff: Re: [exim] exim "top" utility
I put the script in a file and then ran


tail -n1000 -f /var/log/exim/mainlog | /home/peterki/exitop

but I get the following output

Can't locate Curses.pm in @INC (@INC contains:
/usr/local/lib/perl5/5.8.8/BSDPAN
/usr/local/lib/perl5/site_perl/5.8.8/mach
/usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl
/usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at
/home/peterki/exitop line 12.
BEGIN failed--compilation aborted at /home/peterki/exitop line 12.

Thanks

-----Original Message-----
From: Matthew Newton [mailto:mcn4@leicester.ac.uk]
Sent: 04 November 2008 13:11
To: Peter Kirk
Cc: exim-users@???
Subject: Re: [exim] exim "top" utility

Hi,

On Tue, Nov 04, 2008 at 01:01:44PM +0200, Peter Kirk wrote:
> Sorry a bit of a noob here, could you please put more on how to set

this
> up?
>
> Do I just copy the script and put it in a file called exitop and then
> run the command?


No, at the moment you have to pipe the logfile in to it, so if
your exim logs to /var/log/exim/mainlog, then run

tail -f /var/log/exim/mainlog | exitop

If you want to start with a lot of data (i.e. so you don't have to
wait for ages to see something, which might be the case on a
low-traffic server), try

tail -n1000 -f /var/log/exim/mainlog | exitop

That will feed 1000 lines of the log file in, and then continue
watching it "as it happens".

HTH,

Matthew


--
Matthew Newton, Ph.D. <mcn4@???>

Systems Architect (UNIX and Networks), Network Services,
I.T. Services, University of Leicester, Leicester LE1 7RH, United
Kingdom

For IT help contact helpdesk extn. 2253, <ithelp@???>