[mrtg] Re: Inlast/outlast is not defined

Joe Wixted jwixted at limecity.com
Sat Dec 27 14:23:57 MET 2003


Thanks.

I switched over to using snmp2ca.  I don't see instances for storagesize
or storageused, as I had with the "standard" OIDs.  How do you graph
those, compute them?

Also, I'm using the following to monitor free disk, but the graph shows
"4.4 M" on the vertical axis label, when it should read "4.4 G".  How do
I change that?

Target[scitexnt.ldisk.snmp2cac]:
1.3.6.1.4.1.9600.1.1.1.1.20.2.67.58&1.3.6.1.4.1.9600.1.1.1.1.20.2.67.58:
diablo at 192.168.1.74
MaxBytes[scitexnt.ldisk.snmp2cac]: 4096
unscaled[scitexnt.ldisk.snmp2cac]: dwmy
Options[scitexnt.ldisk.snmp2cac]: gauge, unknaszero, growright, integer
kMG[scitexnt.ldisk.snmp2cac]: ,M,G,T,P
# kilo[scitexnt.ldisk.snmp2cac]: 1024
WithPeak[scitexnt.ldisk.snmp2cac]: wmy
YLegend[scitexnt.ldisk.snmp2cac]: MB Free
ShortLegend[scitexnt.ldisk.snmp2cac]: MB
Legend1[scitexnt.ldisk.snmp2cac]: Available Disk Space
Legend2[scitexnt.ldisk.snmp2cac]: 
LegendI[scitexnt.ldisk.snmp2cac]: MB Free
LegendO[scitexnt.ldisk.snmp2cac]: 
Colours[scitexnt.ldisk.snmp2cac]:
GREEN#00eb0c,BLUE#0000ff,GRAY#AAAAAA,VIOLET#ff00ff
Title[scitexnt.ldisk.snmp2cac]: SNMP2CA C:
PageTop[scitexnt.ldisk.snmp2cac]: <H1>SNMP2CA C:</H1>

-----Original Message-----
From: William Owen [mailto:William.Owen at ProfilesInternational.com] 
Sent: Friday, December 26, 2003 9:51 AM
To: Joe Wixted
Subject: RE: [mrtg] Inlast/outlast is not defined

Have you walked the OID's with some utility to verify that you are using
the correct instances?  I had issues with changing instance numbers on
Win2k server and when it didn't return a value, I would get this error.
Also, I recommend using snmp2ca
(http://www.wtcs.org/snmp4tpc/snmp2ca.htm) to obtain your values instead
of the pre-bundled OID's.  This eliminates the changing instance number
issue.

-----Original Message-----
From: Joe Wixted [mailto:jwixted at limecity.com]
Sent: Friday, December 26, 2003 8:33 AM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] Inlast/outlast is not defined

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




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