[mrtg] Re: cpu

Koelstra, J. (Jan) JKoelstra at MINSZW.NL
Mon Oct 27 09:35:52 MET 2003


You only needed one extra space, not 4...
I'll bet if you use the next line the graphs will appear

Target[cpu.2]:
1.3.6.1.4.1.9.2.1.58.0&1.3.6.1.4.1.9.2.1.58.0:iti2600 at 202.125.128.181

HTH,

Jan.

-----Original Message-----
From: mrtg user [mailto:mrtguser at yahoo.com] 
Sent: Monday, October 27, 2003 7:32 AM
To: Walid Khalil
Cc: mrtg at list.ee.ethz.ch
Subject: [mrtg] Re: cpu


dear walid,
it doesnt work either,like as u said to insert space,i m sending you the
cfg as well as the errors .
 
# Router CPU load %
 Target[ cpu.2 ] :
1.3.6.1.4.1.9.2.1.58.0&1.3.6.1.4.1.9.2.1.58.0:iti2600 at 202.125.128.181
 RouterUptime[cpu.2]: iti2600 at 202.125.128.181
 MaxBytes[cpu.2]: 100
 Title[cpu.2]: CPU LOAD
 PageTop[cpu.2]: <H1>CPU Load %</H1>
 Unscaled[cpu.2]: ymwd
 ShortLegend[cpu.2]: %
 XSize[cpu.2]: 380
 YSize[cpu.2]: 100
 YLegend[cpu.2]: CPU Utilization
 Legend1[cpu.2]: CPU Utilization in % (Load)
 Legend2[cpu.2]: CPU Utilization in % (Load)
 Legend3[cpu.2]:
 Legend4[cpu.2]:
 LegendI[cpu.2]:
 LegendO[cpu.2]: &nbsp;Usage
 Options[cpu.2]: gauge,growright
workdir: c:\nms-mrtg\mrtg-output\cpu\
 
errors are:
 
C:\NMS-RRD\mrtg-2.9.7\bin>perl mrtg-cpu.cfg
Can't use subscript on constant item at mrtg-cpu.cfg line 2, near "2 ]"
syntax error at mrtg-cpu.cfg line 2, near "] :" Array found where
operator expected at mrtg-cpu.cfg line 2, at end of line Bareword found
where operator expected at mrtg-cpu.cfg line 3, near "RouterUptim e"
        (Missing semicolon on previous line?)
Array found where operator expected at mrtg-cpu.cfg line 3, at end of
line
        (Missing operator before ?)
Bareword found where operator expected at mrtg-cpu.cfg line 4, near
"MaxBytes"
        (Missing semicolon on previous line?)
Bareword found where operator expected at mrtg-cpu.cfg line 5, near
"Title"
        (Missing semicolon on previous line?)
Bareword found where operator expected at mrtg-cpu.cfg line 6, near
"<H1>CPU"
        (Missing operator before CPU?)
Bareword found where operator expected at mrtg-cpu.cfg line 10, near
"YSize"
        (Missing semicolon on previous line?)
Bareword found where operator expected at mrtg-cpu.cfg line 11, near
"YLegend"
        (Missing semicolon on previous line?)
Bareword found where operator expected at mrtg-cpu.cfg line 13, near ")
Legend2"
        (Missing operator before Legend2?)
Bareword found where operator expected at mrtg-cpu.cfg line 14, near ")
Legend3"
        (Missing operator before Legend3?)
syntax error at mrtg-cpu.cfg line 18, near "]:"
Backslash found where operator expected at mrtg-cpu.cfg line 20, near
"mrtg\" Backslash found where operator expected at mrtg-cpu.cfg line 20,
near "output\" Backslash found where operator expected at mrtg-cpu.cfg
line 20, near "cpu\" Execution of mrtg-cpu.cfg aborted due to
compilation errors.
 
in trouble
mrtg user..

Walid Khalil <Walid at acconline.com> wrote:
Use a space between ]: and 1.3.6...
[cpu.1]: 1.3.6.1.4.1.9.2.1.58.0

-----Original Message----- 
From: mrtg user [mailto:mrtguser at yahoo.com] 
Sent: Sat 10/25/2003 7:30 AM 
To: Alex van den Bogaerdt; mrtg at list.ee.ethz.ch 
Cc: 
Subject: [mrtg] Re: cpu



dear Alex,
yes, i have the same config file on both the machines, on one machine
its working file although that machine also giving me the same errors
but creating output mean giving graphs, but on the other hand the 2nd
machine giving me the errors but not graphs .
[cpu.1]:1.3.6.1.4.1.9.2.1.58.0&1.3.6.1.4.1.9.2.1.58.0:public at xx.xx.xx.xx

> Can't use subscript on constant item at mrtg-cpu.cfg line 2, near "1]"

The error is in line 2. The error is near "1]". What more do you need?


All other errors are continuation errors; they will disappear when you
fix the real error. alex can u tell me wot sort of errors these are and
how to remove them as i have pasted the cfg as well as error log kindly
resolve this issue i am in deep trouble


Alex van den Bogaerdt wrote:
On Sat, Oct 25, 2003 at 04:00:04AM -0700, mrtg user wrote:

> Well I m using mrtg version 2.9.7, and I have installed my cpu load 
> checking for my cisco routers 7500, on two different machines on one 
> machine its working perfectly allrite, while on the other machine its 
> giving me error and cant creating graphs

And you're saying that if you compare the two config files byte by byte,
there is NO difference at all, including the error in the Target line?

> Target[cpu.1]:1.3.6.1.4.1.9.2.1.58.0&1.3.6.1.4.1.9.2.1.58.0:public at xx.
> xx.xx.xx


> Can't use subscript on constant item at mrtg-cpu.cfg line 2, near "1]"

The error is in line 2. The error is near "1]". What more do you need?


All other errors are continuation errors; they will disappear when you
fix the real error.

Alex

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


---------------------------------
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

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





---------------------------------
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears

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



Het ministerie van Sociale Zaken en Werkgelegenheid sluit elke aansprakelijkheid uit in verband met het niet juist, onvolledig of niet tijdig overkomen van de informatie in deze e-mail. 
Aan dit bericht kunnen geen rechten worden ontleend. 

Dit bericht is alleen bestemd voor de geadresseerde. Indien dit bericht niet voor u bestemd is, verzoeken wij u dit onmiddellijk aan ons te melden en de inhoud van het bericht te vernietigen. 
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The ministry of Social Affairs and Employment is not liable for any incorrect or incomplete transmission of the information in this e-mail or for any delay in its receipt. 
This message shall not constitute any obligations.

This message is intended solely for the addressee.
If you have received this message in error, please inform us immediately and delete its content.

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