ckdake l33t
Joined: 10 Apr 2003 Posts: 889 Location: Atlanta, GA
|
Posted: Mon May 24, 2004 3:13 am Post subject: apple airport extreme and mrtg |
|
|
Hey everyone: im trying to get an apple airport working with mrtg. I've seen it done, and a guy sent me his config file, but im a bit stumped.
airport.cfg
Code: | #Global Settings
Interval: 5
Refresh: 300
WorkDir: /opt/mrtg/data/airport
IconDir: /icons/
#14all settings
14all*columns: 2
#Default Settings
Options[_]: growright, bits
WithPeak[_]: wmy
XSize[_]: 500
YSize[_]: 125
Target[airport_1]: 1:public@airport:
SetEnv[airport_1]: MRTG_INT_IP="10.0.1.1" MRTG_INT_DESCR="AMD PCNetISA"
MaxBytes[airport_1]: 1250000
Title[airport_1]: Traffic Analysis for Ethernet
PageTop[airport_1]: <H1>Traffic Analysis for Ethernet</H1>
### Interface 2 >> Descr: 'WaveLAN/IEEE' | Name: '' | Ip: '' | Eth: '00-02-2d-0f -74-51' ###
Target[airport_2]: 2:public@airport:
SetEnv[airport_2]: MRTG_INT_IP="" MRTG_INT_DESCR="WaveLAN/IEEE"
MaxBytes[airport_2]: 1375000
Title[airport_2]: Traffic Analysis for Wavelan
PageTop[airport_2]: <H1>Traffic Analysis for Wavelan</H1>
### Interface 3 >> Descr: 'V.90 Modem: APPLE VERSION 0001' | Name: '' | Ip: '' | Eth: '00-00-00-00-00-00' ###
### The following interface is commented out because:
### * it is administratively DOWN
### * it is operationally DOWN
#
# Target[airport_3]: 3:public@airport:
# SetEnv[airport_3]: MRTG_INT_IP="" MRTG_INT_DESCR="V.90 Modem: APPLE VERSION 00 01"
# MaxBytes[airport_3]: 14400
# Title[airport_3]: Traffic Analysis for 3 -- Jatonet
# PageTop[airport_3]: <H1>Traffic Analysis for 3 -- Jatonet</H1>
|
when I try "mrtg airport.cfg"
Code: | SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 1 (OID: 1.3.6.1.2.1.2.2.1.10.1)
SNMPv1_Session (remote host: "10.0.1.1" [10.0.1.1].161)
community: "public"
request ID: 571219816
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/bin/../lib/mrtg2/SNMP_util.pm line 458
SNMPGET Problem for ifInOctets.1 ifOutOctets.1 sysUptime sysName on public@10.0.1.1:
at /usr/bin/mrtg line 1678
SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 1 (OID: 1.3.6.1.2.1.2.2.1.10.2)
SNMPv1_Session (remote host: "10.0.1.1" [10.0.1.1].161)
community: "public"
request ID: 571219817
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/bin/../lib/mrtg2/SNMP_util.pm line 458
SNMPGET Problem for ifInOctets.2 ifOutOctets.2 sysUptime sysName on public@10.0.1.1:
at /usr/bin/mrtg line 1678
ERROR: Target[airport_1][_IN_] ' $$target[0]{$mode} ' did not eval into defined data
ERROR: Target[airport_1][_OUT_] ' $$target[0]{$mode} ' did not eval into defined data
WARNING: Skipping Update of airport_1, inlast is not defined
WARNING: Skipping Update of airport_1, outlast is not defined
ERROR: Target[airport_2][_IN_] ' $$target[1]{$mode} ' did not eval into defined data
ERROR: Target[airport_2][_OUT_] ' $$target[1]{$mode} ' did not eval into defined data
WARNING: Skipping Update of airport_2, inlast is not defined
WARNING: Skipping Update of airport_2, outlast is not defined
|
but:
Code: | ckdake@nemo ckdake $ snmpwalk -Os -c public -v 1 10.0.1.1 system
sysDescr.0 = STRING: Apple Base Station V3.84 Compatible
sysObjectID.0 = OID: zeroDotZero
sysUpTime.0 = Timeticks: (26144570) 3 days, 0:37:25.70
sysContact.0 = STRING: info@misterxconsulting.com
sysName.0 = STRING: MXC Wireless
sysLocation.0 = STRING: Mister X Consulting World Headquarters
sysServices.0 = INTEGER: 79
End of MIB
|
so that seems to work but for my other systems the results are much larger. any thoughts? _________________ http://ckdake.com/ |
|