[mrtg] RES: Problem with MRTG script

Davi de Paula Cabral - DATAPREVRJ davi.cabral at previdencia.gov.br
Fri Jan 14 14:02:52 MET 2005


I do not have this OID on my router. What does it mean?
I) Sometimes the OID needs you put a dot "." before it. By that way:
.1.3.6.1.2.1.25.3.3.1.2.1
II) You put the port but did not especify the retries, timeout and
"back-off".
Something like this:
password5 at x.x.x.x:165:1:1:1
Try it and return us.

Davi
-----Mensagem original-----
De: Westley Chang [mailto:ChangW at gao.gov]
Enviada em: quinta-feira, 13 de janeiro de 2005 15:35
Para: mrtg at list.ee.ethz.ch
Assunto: [mrtg] Problem with MRTG script


Hello,
  I am having an extremely difficult time trying to figure out this
error message:

ERROR: Target[407][_IN_] ' $target->[1]{$mode} c' (warn): (Missing
operator before c?)
ERROR: Target[407][_OUT_] ' $target->[1]{$mode} c' (warn): (Missing
operator before c?)


Here is the script file:
# --- x.x.x.x (ID: 406) xxxxx: CPU Utilization using Host MIB (1) ---
#

Target[406]:
1.3.6.1.2.1.25.3.3.1.2.1&1.3.6.1.2.1.25.3.3.1.2.1:password5 at x.x.x.x:165

MaxBytes[406]: 100
Options[406]:  gauge, unknaszero
WithPeak[406]: wmy
YLegend[406]: % Utilization
ShortLegend[406]: %
Legend1[406]: Proc Load in next minute
Legend2[406]: .
Legend3[406]: Maximal 5 Minute Proc Load
Legend4[406]: .
LegendI[406]:  Load:
LegendO[406]: .
Colours[406]: GREEN#00eb0c,BLUE#0000ff,GRAY#AAAAAA,VIOLET#ff00ff
Title[406]: x.x.x.x - CPU Utilization using Host MIB (1)
PageTop[406]: <H1>x.x.x.x - CPU Utilization using Host MIB (1)</H1>

# --- x.x.x.x (ID: 407) xxxxx: Memory in Use --- #

Target[407]:
1.3.6.1.2.1.25.2.3.1.6.2&1.3.6.1.2.1.25.2.3.1.6.2:password5 at x.x.x.x:165

MaxBytes[407]: 999999999999
kMG[407]: ,k,,,
Options[407]: gauge, absolute, unknaszero
YLegend[407]: Memory in Use
ShortLegend[407]: Bytes
WithPeak[407]: wmy
Colours[407]: GREEN#00eb0c,BLUE#0000ff,GRAY#AAAAAA,VIOLET#ff00ff
Legend1[407]: Allocated Memory Pool in Use
Legend2[407]: .
Legend3[407]: Peak Allocated Memory Pool in Use
Legend4[407]: .
LegendI[407]: Memory:
LegendO[407]: .
Title[407]: x.x.x.x - Memory in Use
PageTop[407]: <H1>x.x.x.x - Memory in Use</H1>

# --- x.x.x.x (ID: 408) xxxxx: Storage Available on C: Label:  Serial
Number 80103a73 --- #

Target[408]:
(1.3.6.1.2.1.25.2.3.1.5.3&1.3.6.1.2.1.25.2.3.1.5.3:password at x.x.x.x:165
- 
1.3.6.1.2.1.25.2.3.1.6.3&1.3.6.1.2.1.25.2.3.1.6.3:password5 at x.x.x.x:165)
*  
1.3.6.1.2.1.25.2.3.1.4.3&1.3.6.1.2.1.25.2.3.1.4.3:password5 at x.x.x.x:165

MaxBytes[408]: 2154989568
Options[408]: gauge, unknaszero, nopercent
WithPeak[408]: wmy
YLegend[408]: Bytes Available
ShortLegend[408]: Bytes Avail
Legend1[408]: Bytes Available
Legend2[408]: .
Legend3[408]: Bytes Available
Legend4[408]: .
LegendI[408]:  Bytes Available:
LegendO[408]: .
Colours[408]: GREEN#00eb0c,BLUE#0000ff,GRAY#AAAAAA,VIOLET#ff00ff
Title[408]: x.x.x.x - Storage Available on C: Label:  Serial Number
80103a73
PageTop[408]: <H1>x.x.x.x - Storage Available on C: Label:  Serial
Number 80103a73</H1>


# --- x.x.x.x (ID: 409) xxxxx: Storage Available on D: Label:DR  Serial
Number f4fded77 --- #

Target[409]:
(1.3.6.1.2.1.25.2.3.1.5.4&1.3.6.1.2.1.25.2.3.1.5.4:password at x.x.x.x:165
- 
1.3.6.1.2.1.25.2.3.1.6.4&1.3.6.1.2.1.25.2.3.1.6.4:password5 at x.x.x.x:165)
*  
1.3.6.1.2.1.25.2.3.1.4.4&1.3.6.1.2.1.25.2.3.1.4.4:password5 at x.x.x.x:165

MaxBytes[409]: 1050730496
Options[409]: gauge, unknaszero, nopercent
WithPeak[409]: wmy
YLegend[409]: Bytes Available
ShortLegend[409]: Bytes Avail
Legend1[409]: Bytes Available
Legend2[409]: .
Legend3[409]: Bytes Available
Legend4[409]: .
LegendI[409]:  Bytes Available:
LegendO[409]: .
Colours[409]: GREEN#00eb0c,BLUE#0000ff,GRAY#AAAAAA,VIOLET#ff00ff
Title[409]: x.x.x.x - Storage Available on D: Label:DR  Serial Number
f4fded77
PageTop[409]: <H1>x.x.x.x - Storage Available on D: Label:DR  Serial
Number f4fded77</H1>


# --- x.x.x.x (ID: 410) xxxxx: Storage Available on E: Label:IPTVMedia 
Serial Number  --- #

Target[410]:
(1.3.6.1.2.1.25.2.3.1.5.5&1.3.6.1.2.1.25.2.3.1.5.5 at x.x.x.x:165 - 
1.3.6.1.2.1.25.2.3.1.6.5&1.3.6.1.2.1.25.2.3.1.6.5:password5 at x.x.x.x:165)
*  
1.3.6.1.2.1.25.2.3.1.4.5&1.3.6.1.2.1.25.2.3.1.4.5:password5 at x.x.x.x:165

MaxBytes[410]: 15142739968
Options[410]: gauge, unknaszero, nopercent
WithPeak[410]: wmy
YLegend[410]: Bytes Available
ShortLegend[410]: Bytes Avail
Legend1[410]: Bytes Available
Legend2[410]: .
Legend3[410]: Bytes Available
Legend4[410]: .
LegendI[410]:  Bytes Available:
LegendO[410]: .
Colours[410]: GREEN#00eb0c,BLUE#0000ff,GRAY#AAAAAA,VIOLET#ff00ff
Title[410]: x.x.x.x - Storage Available on E: Label:IPTVMedia  Serial
Number 
PageTop[410]: <H1>x.x.x.x - Storage Available on E: Label:IPTVMedia 
Serial Number </H1>


# --- x.x.x.x (ID: 411) xxxxx: Storage Available on Virtual Memory ---
#

Target[411]:
(1.3.6.1.2.1.25.2.3.1.5.6&1.3.6.1.2.1.25.2.3.1.5.6 at x.x.x.x:165 - 
1.3.6.1.2.1.25.2.3.1.6.6&1.3.6.1.2.1.25.2.3.1.6.6:password5 at x.x.x.x:165)
*  
1.3.6.1.2.1.25.2.3.1.4.6&1.3.6.1.2.1.25.2.3.1.4.6:password5 at x.x.x.x:165

MaxBytes[411]: 646709248
Options[411]: gauge, unknaszero, nopercent
WithPeak[411]: wmy
YLegend[411]: Bytes Available
ShortLegend[411]: Bytes Avail
Legend1[411]: Bytes Available
Legend2[411]: .
Legend3[411]: Bytes Available
Legend4[411]: .
LegendI[411]:  Bytes Available:
LegendO[411]: .
Colours[411]: GREEN#00eb0c,BLUE#0000ff,GRAY#AAAAAA,VIOLET#ff00ff
Title[411]: x.x.x.x - Storage Available on Virtual Memory
PageTop[411]: <H1>x.x.x.x - Storage Available on Virtual Memory</H1>


# --- x.x.x.x (ID: 412) xxxxx: Port Utilization by port instance on
Intel(R) PRO Adapter (2) --- #

Target[412]: 2:password5 at x.x.x.x:165 
MaxBytes[412]: 12500000
Options[412]: bits, unknaszero 
Title[412]: x.x.x.x - Port Utilization by port instance on Intel(R) PRO
Adapter (2)
PageTop[412]: <H1>x.x.x.x - Port Utilization by port instance on
Intel(R) PRO Adapter (2)</H1>
YLegend[412]: Port Utilization
LegendI[412]: In
LegendO[412]: Out
Legend1[412]: Inbound Bits
Legend2[412]: Outbound Bits
Legend3[412]: INBOUND Max value per interval on graph
Legend4[412]: OUTBOUND Max value per interval on graph
Colours[412]: GREEN#00eb0c,BLUE#0000ff,GRAY#AAAAAA,VIOLET#ff00ff
WithPeak[412]: ymw

# --- x.x.x.x (ID: 413) xxxxx: Number of processes using Host MIB ---
#

Target[413]:
1.3.6.1.2.1.25.1.6.0&1.3.6.1.2.1.25.1.6.0:password5 at 192.168.5.56:165

MaxBytes[413]: 999999999999
Options[413]: gauge, unknaszero
WithPeak[413]: wmy
YLegend[413]: Processes
ShortLegend[413]: #
Legend1[413]: Number of Processes running
Legend2[413]: .
Legend3[413]: Number of Processes running
Legend4[413]: .
LegendI[413]: Procs:
LegendO[413]: .
Colours[413]: GREEN#00eb0c,BLUE#0000ff,GRAY#AAAAAA,VIOLET#ff00ff
Title[413]: x.x.x.x - Number of processes using Host MIB
PageTop[413]: <H1>x.x.x.x - Number of processes using Host MIB</H1>

# --- x.x.x.x (ID: 414) xxxxx: Number of current users using the Host
MIB --- #

Target[414]:
1.3.6.1.2.1.25.1.5.0&1.3.6.1.2.1.25.1.5.0:password5 at 192.168.5.56:165

MaxBytes[414]: 999999999999
Options[414]: gauge, unknaszero
WithPeak[414]: wmy
YLegend[414]: No. of Users
ShortLegend[414]: #
Legend1[414]: Number of Users
Legend2[414]: .
Legend3[414]: Number of Users
Legend4[414]: .
LegendI[414]: Users:
LegendO[414]: .
Colours[414]: GREEN#00eb0c,BLUE#0000ff,GRAY#AAAAAA,VIOLET#ff00ff
Title[414]: x.x.x.x - Number of current users using the Host MIB
PageTop[414]: <H1>x.x.x.x - Number of current users using the Host
MIB</H1>


Why is it constantly asking me for 'Missing operator before c?'. 
Please advise.  Any advice would be greatly appreciated.  Thanks!:)

      Wes

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