From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,2427d40e788fd53b X-Google-Attributes: gidfee84,public From: Scott McKinsey Subject: Re: performance procedures Date: 1997/06/23 Message-ID: <33AEA356.3276A4CB@pcisys.net>#1/1 X-Deja-AN: 252042154 References: <5oeuah$760@alpha.comsource.net> X-Priority: 3 (Normal) Organization: Digital Equipment Corporation Newsgroups: comp.unix.osf.osf1 Jim Jones wrote: > > Hello, > > I am beginning to develop a series of performance monitoring procedures. > I was wondering if anyone has developed any simple totals for summarizing > iostat, uptime, and netstat and various other performance measures. What > I woulld like to do is present week todate, weekly, monthly etc charts > showing how the system is behaving. Any info anyone has I would like to > here from you. I cannot afford to purchase software, I am looking for > freeware type of software. > > Any info appreciated. > > jim jones#!/usr/bin/perl > jrjones@comsource.net I use pmgrd data and feed it to MRTG through custom scripts to generate daily, weekly, monthly and yearly graphs. Here is a sample script and config file for MRTG... The get_pmgr.pl script: #!/usr/bin/perl $PMGR_SNMP_PORT=1167; ($input, $output, $uptime, $name)=`/usr/bin/getmany $ARGV[0] public $ARGV[1] $ARGV[2] $ARGV[3] $ARGV[4] |cut -d= -f2 |/usr/bin/awk -F" " '{print $1 $2 $3 $4}`; print $input; print $output; print 0,"\n"; print $name; Here is a sample for device interrupts from the mrtg config file: PageTop[int]: Non Clock Device Interrupts Target[int]: `/usr/local/perf_mon/mrtg-2.1/contrib/get-pmgr/get_pmgr.pl sacimam1 pmCmSysDeviceInterrupts pmCmSysDeviceInterrupts sysUpTime sysName` YLegend[int]: Device Interrupts ShortLegend[int]: Legend1[int]: Legend2[int]: Legend3[int]: Legend4[int]: LegendI[int]: LegendO[int]: AbsMax[int]: 10000 -- Scott S. McKinsey Digital Equipment Corporation 719.598.5527 Colorado Springs, CO mckinsey@pcisys.net www.pcisys.net/~mckinsey ----- finger mckinsey@pcisys.net for pgp public key -----