[mrtg] Re: CPU Usage

Linux linux at dounsix.co.nz
Fri Jan 4 06:36:44 MET 2002


Thanks guys I got it going in the end. It was the tail command I needed to
get the ball rolling

Many thanks for all your time and suggestions

Isn't mrtg the best program

Mike

-----Original Message-----
From: Lars Holmström [mailto:lars.holmstrom at flysta.net]
Sent: Friday, 4 January 2002 10:04
To: Linux
Cc: mrtg at list.ee.ethz.ch
Subject: Re: [mrtg] Re: CPU Usage


What about

awk '{print substr($5,1,2)}' <$FILE/LarsLinux wrote:> Thanks Daniel I'm on
Redhat 7.1
>
> -----Original Message-----
> From: Daniel R . Kilbourne [mailto:drk at netophilia.net]
> Sent: Friday, 4 January 2002 06:44
> To: Linux
> Cc: mrtg at list.ee.ethz.ch
> Subject: [mrtg] Re: CPU Usage
>
> What OS are you on?
>
> You can use an assortment of tail/cut to do it on linux rather simply
>
> Linux extolled:
> >
> > Hi
> >
> > If I have the following text file can anyone suggest how I can extract
the
> > figures under us and sys in a shell script
> >
> > Friday January 04, 2002 06:16:16
> > procs      in     sy     cs       us     sy     id
> > 19        240   7580   3938    16.84  39.86  43.30
> --
> --------------------------------
>     Daniel R. Kilbourne
>     drk at netophilia.net
> ________________________________
>
> --
> Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
> Archive     http://www.ee.ethz.ch/~slist/mrtg
> FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
> WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi
>
> This mail was processed by Mail essentials for Exchange/SMTP,
> the email security & management gateway. Mail essentials adds
> content checking, email encryption, anti spam, anti virus,
> attachment compression, personalised auto responders, archiving
> and more to your Microsoft Exchange Server or SMTP mail server.
> For more information visit http://www.mailessentials.com
>
> --
> Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
> Archive     http://www.ee.ethz.ch/~slist/mrtg
> FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
> WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



This mail was processed by Mail essentials for Exchange/SMTP, 
the email security & management gateway. Mail essentials adds 
content checking, email encryption, anti spam, anti virus, 
attachment compression, personalised auto responders, archiving 
and more to your Microsoft Exchange Server or SMTP mail server. 
For more information visit http://www.mailessentials.com

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list