[mrtg] Re: cpu usage..
Paul C. Williamson
pwilliamson at mandtbank.com
Fri Nov 2 11:57:05 MET 2001
You need two OIDs, you've got one...
You have:
OID1:public at x.x.x.x
You need:
OID1&OID2:public at x.x.x.x
Rather than using the OID for CPU, try the tutorial for writing a custom script. It computes the cpu load a lot more accurately. I do this, and it also showed me indirectly how to use sed and awk as well as how to write an external script.
Paul
>>> Arif Rudiana <arudiana at telkom.co.id> 11/02/01 03:51 AM >>>
Dear Alex ...
Thank so much for answer my last question... I've changed with linux
OID's... Please see the following configuration
WorkDir:/var/www/html/mrtg/cpu
Target[10.14.130.59_cpu]: .1.3.6.1.4.1.2021.11.9.0:public at 10.14.130.59
MaxBytes[10.14.130.59_cpu]: 100
Options[10.14.130.59_cpu]: gauge
Unscaled[10.14.130.59_cpu]: ymwd
ShortLegend[10.14.130.59_cpu]: %
YLegend[10.14.130.59_cpu]: CPU Utilitation
Title[10.14.130.59_cpu]: CPU usage
After I issued the following command:
# ./mrtg /var/www/mrtg/cpulinux.cfg
I've got error like this
WARNING: Could not match host: 'public at 10.14.130.59' ref: ' ' key: ' '
Rateup ERROR:.....
I didn't know what the errors mean, i 'm absolutely sure that my ip
address is 10.14.130.59 with public community
could tell me what's wrong with my configuration..
By the way . .. my machine running with Mandrake 8.0 (Traktopel) kernel
2.4.3-20mdk
Thank so much
ARIF
Alex van den Bogaerdt wrote:
>Arif Rudiana wrote:
>
>>Right now i'd like to monitor CPU usage . so ... i try to make
>>configuration like this
>>
>>Target[10.14.130.59_cpu]:
>>1.3.6.1.4.1.9.2.1.57&1.3.6.1.4.1.9.2.1.57.0:public at 10.14.130.59
>>
>>and so on....
>>
>>and.. i get some :
>>CFG error unknown option
>>"1.3.6.1.4.1.9.2.1.57&1.3.6.1.4.1.9..1.57.0:public at 10.14.130.59 ....
>>
>
>This is probably caused by putting the OID on a line of its own. You
>shouldn't do that, just put the Target[x]:y at z on one line.
>
>When you've solved that problem you will encounter another problem:
>You use 1.3.6.1.4.1.9.2.1.57 and 1.3.6.1.4.1.9.2.1.57.0
>This cannot work. If 1.3.6.1.4.1.9.2.1.57 is the OID then you need
>to specify the instance. So: OID.0&OID.0:public at ip
>
>When you've solved that problem you may get another error. This is
>because .1.3.6.1.4.1.9 is the cisco private mib and since you wrote
>you're monitoring your linux box this isn't going to work.
>
--
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
--
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