[mrtg] Re: Disk I/O stats
Greg.Volk at edwardjones.com
Greg.Volk at edwardjones.com
Tue Feb 26 22:35:10 MET 2002
>
> 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
>
>
> # /usr/bin/awk '/cpu /{print $2+$3+$4+$5; print $2+$3+$4+$5; print ""; print
> ""}'</proc/stat
> 1094156076
> 1094156076
>
>
> # /usr/bin/awk '/cpu /{print $2+$3+$4+$5; print $2+$3+$4+$5; print ""; print
> ""}'</proc/stat
> 1094156180
> 1094156180
>
>
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