[mrtg] Inlast/outlast is not defined

Joe Wixted jwixted at limecity.com
Fri Dec 26 15:33:29 MET 2003


Hello, List!  Nob, here....

Using: MRTG 2.9.27 on Windows 2000
 
I've been setting up MRTG to monitor disk space on a Windows 2000 box,
using the getlog.pl (http://www.wn.com.au/psimmo/) method quite
successfully.

I now want to move towards using the OIDs go give me combined graphs of
available and free disk.  I found the cfg at Somix for Windows Servers,
storage:

Target[$CFGNAME]:
(1.3.6.1.2.1.25.2.3.1.5.$INSTANCE&1.3.6.1.2.1.25.2.3.1.5.$INSTANCE:$COMM
UNITY@$IPADDRESS -
1.3.6.1.2.1.25.2.3.1.6.$INSTANCE&1.3.6.1.2.1.25.2.3.1.6.$INSTANCE:$COMMU
NITY@$IPADDRESS) *
1.3.6.1.2.1.25.2.3.1.4.$INSTANCE&1.3.6.1.2.1.25.2.3.1.4.$INSTANCE:$COMMU
NITY@$IPADDRESS 
MaxBytes[$CFGNAME]: $MAX
Options[$CFGNAME]: gauge, unknaszero, nopercent
WithPeak[$CFGNAME]: wmy
YLegend[$CFGNAME]: Bytes Available
ShortLegend[$CFGNAME]: Bytes Avail
Legend1[$CFGNAME]: Bytes Available
Legend2[$CFGNAME]: .
Legend3[$CFGNAME]: Bytes Available
Legend4[$CFGNAME]: .
LegendI[$CFGNAME]:  Bytes Available:
LegendO[$CFGNAME]: .
Colours[$CFGNAME]: GREEN#00eb0c,BLUE#0000ff,GRAY#AAAAAA,VIOLET#ff00ff
Title[$CFGNAME]: $DEVICE
PageTop[$CFGNAME]: <H1>$DEVICE</H1>

Using this, I created:

SetEnv[Scitexnt.ldisk.somixc]: INSTANCE="2" COMMUNITY="diablo"
IPADDRESS="192.168.1.74" DEVICE="SCITEXNT Somix C"
Target[scitexnt.ldisk.somixc]:
(1.3.6.1.2.1.25.2.3.1.5.$INSTANCE&1.3.6.1.2.1.25.2.3.1.5.$INSTANCE:$COMM
UNITY@$IPADDRESS -
1.3.6.1.2.1.25.2.3.1.6.$INSTANCE&1.3.6.1.2.1.25.2.3.1.6.$INSTANCE:$COMMU
NITY@$IPADDRESS) *
1.3.6.1.2.1.25.2.3.1.4.$INSTANCE&1.3.6.1.2.1.25.2.3.1.4.$INSTANCE:$COMMU
NITY@$IPADDRESS 
MaxBytes[scitexnt.ldisk.somixc]: 900000
Options[scitexnt.ldisk.somixc]: gauge, unknaszero, nopercent
WithPeak[scitexnt.ldisk.somixc]: wmy
YLegend[scitexnt.ldisk.somixc]: Bytes Available
ShortLegend[scitexnt.ldisk.somixc]: Bytes Avail
Legend1[scitexnt.ldisk.somixc]: Bytes Available
Legend2[scitexnt.ldisk.somixc]: .
Legend3[scitexnt.ldisk.somixc]: Bytes Available
Legend4[scitexnt.ldisk.somixc]: .
LegendI[scitexnt.ldisk.somixc]:  Bytes Available:
LegendO[scitexnt.ldisk.somixc]: .
Colours[scitexnt.ldisk.somixc]:
GREEN#00eb0c,BLUE#0000ff,GRAY#AAAAAA,VIOLET#ff00ff
Title[scitexnt.ldisk.somixc]: $DEVICE
PageTop[scitexnt.ldisk.somixc]: <H1>$DEVICE</H1>

My MRTG.LOG shows:

2003-12-26 09:27:10 -- ERROR: Target[scitexnt.ldisk.somixc][_IN_]
'(1.3.6.1.2.1.25.2.3.1.5.$INSTANCE&1.3.6.1.2.1.25.2.3.1.5.$INSTANCE:$COM
MUNITY@$IPADDRESS -
1.3.6.1.2.1.25.2.3.1.6.$INSTANCE&1.3.6.1.2.1.25.2.3.1.6.$INSTANCE:$COMMU
NITY@$IPADDRESS) *
1.3.6.1.2.1.25.2.3.1.4.$INSTANCE&1.3.6.1.2.1.25.2.3.1.4.$INSTANCE:$COMMU
NITY@$IPADDRESS' (warn): Array found where operator expected at (eval
2652) line 1, at end of line
2003-12-26 09:27:10 -- ERROR: Target[scitexnt.ldisk.somixc][_OUT_]
'(1.3.6.1.2.1.25.2.3.1.5.$INSTANCE&1.3.6.1.2.1.25.2.3.1.5.$INSTANCE:$COM
MUNITY@$IPADDRESS -
1.3.6.1.2.1.25.2.3.1.6.$INSTANCE&1.3.6.1.2.1.25.2.3.1.6.$INSTANCE:$COMMU
NITY@$IPADDRESS) *
1.3.6.1.2.1.25.2.3.1.4.$INSTANCE&1.3.6.1.2.1.25.2.3.1.4.$INSTANCE:$COMMU
NITY@$IPADDRESS' (warn): Array found where operator expected at (eval
2653) line 1, at end of line
2003-12-26 09:27:10 -- WARNING: Skipping Update of
scitexnt.ldisk.somixc, inlast is not defined
2003-12-26 09:27:10 -- WARNING: Skipping Update of
scitexnt.ldisk.somixc, outlast is not defined

1)  Have I defined the env vars properly?  
2)  What needs to be changed to get rid of the array error/warning?  

I get the same results if I replace the $STRING's with their respective
values.

TIA!

Joe Wixted, MCSE

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