[mrtg] Re: Server Performance
Ashley M. Kirchner
ashley at pcraft.com
Tue Oct 31 17:39:11 MET 2000
Nasreddine Tabet-Aoul wrote:
> CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl
> 3 954 0 0 256 56 188 36 0 0 0 1166 29 9 1 62
> 3 281 0 0 244 44 101 3 0 0 0 433 1 3 0 96
> 3 272 0 0 251 51 99 2 0 0 0 402 2 3 1 94
>
> So what should I do at the level of the UNIX machine ?
>
> What I should I do at the MRTG level (This is running on NT)?
Write a perl script that will parse that. You only need the 'usr' and 'sys'
columns really. So, your perl script should read that result in, and parse out
the last line, and then take only those two columns and return it for MRTG to
use.
I have a similar script running on my (unix) system. sysstat also returns
output similar to your mpstat.
Go to http://mrtg.yeehaw.net and read the CPU info sheet.
AMK4
--
W |
| I haven't lost my mind; it's backed up on tape somewhere.
|____________________________________________________________________
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ashley M. Kirchner <mailto:ashley at pcraft.com> . 303.442.6410 x130
SysAdmin / Websmith . 800.441.3873 x130
Photo Craft Laboratories, Inc. . eFax 248.671.0909
http://www.pcraft.com . 3550 Arapahoe Ave #6
.................. . . . . Boulder, CO 80303, USA
--
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