[mrtg] Re: How to monitor swap space, cpu and filesystem ?

giochi at telvia.it giochi at telvia.it
Thu Apr 17 16:07:10 MEST 2003


Actually I see only my two lan cards.

When I try to mrtg the conf file (/usr/local/mrtg-2/bin/mrtg mrtgnew.cfg) I
see this error:

root at bizio:/home/rizla/net-snmp-5.0.8# /usr/local/mrtg-2/bin/mrtg
/home/rizla/mrtgnew.cfg 
Unknown SNMP var dskPercent.1
 at /usr/local/mrtg-2/bin/mrtg line 1678
Unknown SNMP var dskPercent.2
 at /usr/local/mrtg-2/bin/mrtg line 1678
WARNING: Expected a number but got '0:37:24'
WARNING: Expected a number but got 'bizio'
ERROR: Target[localhost.disk][_IN_] ' $$target[2]{$mode} ' did not eval
into defined data
ERROR: Target[localhost.disk][_OUT_] ' $$target[2]{$mode} ' did not eval
into defined data
WARNING: Skipping Update of localhost.disk, inlast is not defined
WARNING: Skipping Update of localhost.disk, outlast is not defined

I've added this line (as Grek suggest) into mrtgnew.cfg:

Target[localhost.disk]:dskPercent.1&dskPercent.2:community at localhost
RouterUptime[localhost.disk]: community at localhost
MaxBytes[localhost.disk]: 100
Title[localhost.disk]: Disk Usage
PageTop[localhost.disk]: <H1>Disk / and /home usage %</H1>
Options[localhost.disk]: growright, gauge, nopercent
ShortLegend[localhost.disk]: %
YLegend[localhost.disk]: Disk Utilization
Legend1[localhost.disk]: Root disk
Legend2[localhost.disk]: /home disk
Legend3[localhost.disk]:
Legend4[localhost.disk]:
LegendI[localhost.disk]: Root disk
LegendO[localhost.disk]: /home disk

How to see the graphics of swap and disk space ?

Thanks again

--
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