<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=us-ascii" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Mabry Tyson wrote:
<blockquote cite="mid:4D39EA32.2080802@AI.SRI.COM" type="cite">
<pre wrap="">Maybe I'm missing something obvious. Any help would be appreciated.
I recently upgraded to version 2.17.0 from 2.14.7. Since then, cfgmaker
is reporting an error when I try to build the configuration for our router.
</pre>
<blockquote type="cite">
<pre wrap=""># /usr/local/mrtg-2/bin/cfgmaker --global "Workdir: $DIR/workdir/mrtg"
--global 'Options[_]: bits,growright' --snmp-options :::::2
--ifdesc=alias --host-template=$DIR/mrtg/cpu.config --output
$DIR/mrtg/cfg/myrouter.cfg <a class="moz-txt-link-abbreviated" href="mailto:mycommunity@myrouter.example.com">mycommunity@myrouter.example.com</a>
Error:
can't resolve "myrouter.example.com" to IP address
at /usr/local/mrtg-2/bin/../lib/mrtg2/SNMP_util.pm line 428
SNMPWALK Problem for <a class="moz-txt-link-abbreviated" href="mailto:mycommunity@myrouter.example.com:::::2:v4only">mycommunity@myrouter.example.com:::::2:v4only</a>
at /usr/local/mrtg-2/bin/cfgmaker line 958
WARNING: Skipping <a class="moz-txt-link-abbreviated" href="mailto:mycommunity@myrouter.example.com:::::2">mycommunity@myrouter.example.com:::::2</a> as no info
could be retrieved
</pre>
</blockquote>
<pre wrap=""><!---->
It works properly if I use any of several (I didn't try all 22) of the
router's IP addresses (<a class="moz-txt-link-rfc2396E" href="mailto:mycommunity@myrouter.example.com">"mycommunity@myrouter.example.com"</a> ->
<a class="moz-txt-link-rfc2396E" href="mailto:mycommunity@1.2.3.4">"mycommunity@1.2.3.4"</a>). It works properly if I use the name of one of
my switches (<a class="moz-txt-link-rfc2396E" href="mailto:mycommunity@myswitch.example.com">"mycommunity@myswitch.example.com"</a>). nslookup (or dig)
properly find the IP addresses for the router name. (nsswitch.conf
indicates hosts should first be looked up in files and then dns.)
I don't want to switch to using an IP address as the IP address (vs
hostname) gets used throughout, making things less intelligible.
The OS is Ubuntu Hardy Heron (8.0.4 LTS).
</pre>
</blockquote>
My first thought is that since you have hand edited what you posted(as
opposed to a pure cut & paste), there is a subtle typo in the real
command line you feed to cfgmaker and why I create bash scripts to run
cfgmaker.<br>
<br>
Or myrouter.example.com is not resolving properly on your computer.<br>
<br>
Lyle<br>
<br>
</body>
</html>