[mrtg] Re: Disk I/O stats
Martin Rheumer
martinr at hotkey.net.au
Wed Feb 27 18:02:38 MET 2002
This is obviously going to be very linux / kernel specific.
(wally)[me #cat /proc/stat
cpu 3173445 26 1302543 125223869
cpu0 3173445 26 1302543 125223869
page 311513440 51043843
swap 113162 57755
intr 258773534 129699883 4670 0 0 0 80238964 4 0 0 0 39077411 0 0 0 9681495
71107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
disk_io: (2,0):(1,1,2,0,0)
(3,0):(9765648,8043410,168089586,1722238,54186712)
(8,0):(2860306,2093081,107002452,767225,41500176)
(8,1):(2080581,2048940,120428632,31641,2500770)
(8,2):(1695241,1675223,129184672,20018,1277474)
(8,3):(1260412,1192028,98321536,68384,2622554)
ctxt 288085157
btime 1013467353
processes 480528
Which parameters is the correct ones and what are each of them.
This machine has 1 x Floppy (2) 1 x IDE (3) and 4 x SCSCI (8) I am
guessing.
So the output of the awk is going to be different for me and
probably the wrong thing on the 2 statements people are using.
Is there a better way and what are all the values ?
Thanks
Martin
At 03:35 PM 2/26/02 -0600, Greg.Volk at edwardjones.com wrote:
>
>>
>> This is the output from my awk command, is there a problem that the two
>> numbers are the same and I have left the uptime and hostname blank?
>>
>> # /usr/bin/awk '/cpu /{print $2+$3+$4+$5; print $2+$3+$4+$5; print "";
print
>> ""}'</proc/stat
>> 1094155649
>> 1094155649
>
>I believe it is a requirement for an external monitoring script to produce
>four lines of output in order to be used with mrtg.
>Line 1 - current state, first var
>Line 2 - current state, second var
>Line 3 - string - uptime
>Line 4 - string - name of target
>
>You can use Options[target]: noinfo to supress the line 3 and line 4
data, but I think mrtg still requires it from the script.
--
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