[mrtg] Re: resolve problem?
Michel
pjam at xs4all.nl
Mon Jan 19 00:40:58 MET 2004
Hi Alex,
You were partly right. I removed the backslashes but still receive an
error: can't resolve "ipref=ip" to IP address
I will look at it tomorrow. I guess it has something to do with the
SNMP-version option.
Thanks for your quick response.
Regards,
MIchel
./cfgmaker --global "WorkDir:/usr/local/apache/htdocs/mrtg" --global
"IconDir:icons" --global "Options[_]:growright,bits"
--snmp-options=:::::2 ipref=ip metrobay at metro827 >mrtg.cfg
--base: Get Device Info on public at ipref=ip:::::2
Error:
can't resolve "ipref=ip" to IP address
at /usr/local/mrtg-2/bin/../lib/mrtg2/SNMP_util.pm line 424 SNMPWALK
Problem for public at ipref=ip:::::2:v4only at ./cfgmaker line 825
WARNING: Skipping public at ipref=ip:::::2 as no info could be retrieved
--base: Get Device Info on metrobay at metro827:::::2
--base: Vendor Id: cisco
--base: Populating confcache
--snpo: confcache metrobay at metro827:::::2 Name AT0 --> 1
--snpo: confcache metrobay at metro827:::::2 Name Et0 --> 2
--snpo: confcache metrobay at metro827:::::2 Name Nu0 --> 3
--snpo: confcache metrobay at metro827:::::2 Name AT0-interleave --> 4
--snpo: confcache metrobay at metro827:::::2 Name AT0-fast --> 5
--snpo: confcache metrobay at metro827:::::2 Name AT0-adsl --> 6
--snpo: confcache metrobay at metro827:::::2 Name AT0 --> 7 (duplicate)
--snpo: confcache metrobay at metro827:::::2 Name AT0 --> 8 (duplicate)
--snpo: confcache metrobay at metro827:::::2 Name AT0 --> 9 (duplicate)
--snpo: confcache metrobay at metro827:::::2 Name AT0 --> 10 (duplicate)
--snpo: confcache metrobay at metro827:::::2 Name Di0 --> 11
--snpo: confcache metrobay at metro827:::::2 Name Vi1 --> 12
--snpo: confcache metrobay at metro827:::::2 Descr ATM0 --> 1
--snpo: confcache metrobay at metro827:::::2 Descr Ethernet0 --> 2
--snpo: confcache metrobay at metro827:::::2 Descr Null0 --> 3
--snpo: confcache metrobay at metro827:::::2 Descr ATM0-interleave --> 4
--snpo: confcache metrobay at metro827:::::2 Descr ATM0-fast --> 5
--snpo: confcache metrobay at metro827:::::2 Descr ATM0-adsl --> 6
--snpo: confcache metrobay at metro827:::::2 Descr ATM0-atm layer --> 7
--snpo: confcache metrobay at metro827:::::2 Descr ATM0.0-atm subif --> 8
--snpo: confcache metrobay at metro827:::::2 Descr ATM0-aal5 layer --> 9
--snpo: confcache metrobay at metro827:::::2 Descr ATM0.0-aal5 layer --> 10
--snpo: confcache metrobay at metro827:::::2 Descr Dialer0 --> 11
--snpo: confcache metrobay at metro827:::::2 Descr Virtual-Access1 --> 12
--snpo: confcache metrobay at metro827:::::2 Type 1 --> 1
--snpo: confcache metrobay at metro827:::::2 Type 6 --> 2
--snpo: confcache metrobay at metro827:::::2 Type 1 --> 3 (duplicate)
--snpo: confcache metrobay at metro827:::::2 Type 124 --> 4
--snpo: confcache metrobay at metro827:::::2 Type 125 --> 5
--snpo: confcache metrobay at metro827:::::2 Type 94 --> 6
--snpo: confcache metrobay at metro827:::::2 Type 37 --> 7
--snpo: confcache metrobay at metro827:::::2 Type 134 --> 8
--snpo: confcache metrobay at metro827:::::2 Type 49 --> 9
--snpo: confcache metrobay at metro827:::::2 Type 49 --> 10 (duplicate)
--snpo: confcache metrobay at metro827:::::2 Type 23 --> 11
--snpo: confcache metrobay at metro827:::::2 Type 23 --> 12 (duplicate)
--snpo: confcache metrobay at metro827:::::2 Ip 10.10.10.1 --> 2
--snpo: confcache metrobay at metro827:::::2 Ip [my ip address here]--> 11
--snpo: confcache metrobay at metro827:::::2 Eth --> 1
--snpo: confcache metrobay at metro827:::::2 Eth 00-01-96-a4-87-85 --> 2
--snpo: confcache metrobay at metro827:::::2 Eth --> 3 (duplicate)
--snpo: confcache metrobay at metro827:::::2 Eth --> 4 (duplicate)
--snpo: confcache metrobay at metro827:::::2 Eth --> 5 (duplicate)
--snpo: confcache metrobay at metro827:::::2 Eth --> 6 (duplicate)
--snpo: confcache metrobay at metro827:::::2 Eth --> 7 (duplicate)
--snpo: confcache metrobay at metro827:::::2 Eth --> 8 (duplicate)
--snpo: confcache metrobay at metro827:::::2 Eth --> 9 (duplicate)
--snpo: confcache metrobay at metro827:::::2 Eth --> 10 (duplicate)
--snpo: confcache metrobay at metro827:::::2 Eth --> 11 (duplicate)
--snpo: confcache metrobay at metro827:::::2 Eth --> 12 (duplicate)
--base: Get Interface Info
--base: Walking ifIndex
--base: Walking ifType
--base: Walking ifAdminStatus
--base: Walking ifOperStatus
--base: Walking ifAlias
--base: Walking vmVlan
--base: Walking ifSpeed
--base: Walking ifHighSpeed
--base: snmpget metrobay at metro827:::::2:v4only for ifHighSpeed.1 -> 1
Mb/s
--base: snmpget metrobay at metro827:::::2:v4only for ifHCInOctets.1 ->
184230366
--base: snmpget metrobay at metro827:::::2:v4only for ifHighSpeed.2 -> 10
Mb/s
--base: snmpget metrobay at metro827:::::2:v4only for ifHCInOctets.2 ->
184230366
--base: snmpget metrobay at metro827:::::2:v4only for ifHighSpeed.3 ->
10000 Mb/s
--base: snmpget metrobay at metro827:::::2:v4only for ifHCInOctets.3 ->
184230366
--base: snmpget metrobay at metro827:::::2:v4only for ifHighSpeed.4 -> 0
Mb/s
--base: snmpget metrobay at metro827:::::2:v4only for ifHCInOctets.4 ->
--base: check for HighspeedCounters faild ... Droping back to V1
--base: snmpget metrobay at metro827:::::2:v4only for ifHighSpeed.5 -> 0
Mb/s
--base: snmpget metrobay at metro827:::::2:v4only for ifHCInOctets.5 ->
--base: check for HighspeedCounters faild ... Droping back to V1
--base: snmpget metrobay at metro827:::::2:v4only for ifHighSpeed.6 -> 0
Mb/s
--base: snmpget metrobay at metro827:::::2:v4only for ifHCInOctets.6 ->
--base: check for HighspeedCounters faild ... Droping back to V1
--base: snmpget metrobay at metro827:::::2:v4only for ifHighSpeed.7 -> 0
Mb/s
--base: snmpget metrobay at metro827:::::2:v4only for ifHCInOctets.7 ->
--base: check for HighspeedCounters faild ... Droping back to V1
--base: snmpget metrobay at metro827:::::2:v4only for ifHighSpeed.8 -> 1
Mb/s
--base: snmpget metrobay at metro827:::::2:v4only for ifHCInOctets.8 ->
--base: check for HighspeedCounters faild ... Droping back to V1
--base: snmpget metrobay at metro827:::::2:v4only for ifHighSpeed.9 -> 0
Mb/s
--base: snmpget metrobay at metro827:::::2:v4only for ifHCInOctets.9 ->
184230539
--base: check for HighspeedCounters faild ... Droping back to V1
--base: snmpget metrobay at metro827:::::2:v4only for ifHighSpeed.10 -> 1
Mb/s
--base: snmpget metrobay at metro827:::::2:v4only for ifHCInOctets.10 ->
184230539
--base: snmpget metrobay at metro827:::::2:v4only for ifHighSpeed.11 -> 0
Mb/s
--base: snmpget metrobay at metro827:::::2:v4only for ifHCInOctets.11 ->
184230539
--base: check for HighspeedCounters faild ... Droping back to V1
--base: snmpget metrobay at metro827:::::2:v4only for ifHighSpeed.12 -> 0
Mb/s
--base: snmpget metrobay at metro827:::::2:v4only for ifHCInOctets.12 ->
184230539
--base: check for HighspeedCounters faild ... Droping back to V1
-----Oorspronkelijk bericht-----
Van: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch]
Namens Alex van den Bogaerdt
Verzonden: zondag 18 januari 2004 23:22
Aan: mrtg at list.ee.ethz.ch
Onderwerp: [mrtg] Re: resolve problem?
On Sun, Jan 18, 2004 at 11:13:29PM +0100, Michel wrote:
> Hello,
>
> When I start cfgmaker with the following command:
>
> ./cfgmaker --global "WorkDir:/usr/local/apache/htdocs/mrtg" \ --global
> "Options[_]:growright, bits" \--global "IconDir:icons" \ifref=ip
> \snmp-options=:::::2c\ metro827 at metro827 > mrtg.cfg
You have backslashes that do not seem to make much sense.
Your mail client probably f**ked up, or you used cut'n'paste
in a strange way. This, or you really have backslashes in
strange and unnecessary places.
I guess "\--global" looks stranger than the rest. Perhaps there's
your problem.
Just write anything on one line so there's no need to escape newlines
with backslashes. That means you can't do it wrong.
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
More information about the mrtg
mailing list