[mrtg] cfgmaker error: No response from remote host

Steve Shipway s.shipway at auckland.ac.nz
Wed May 20 08:13:57 CEST 2009


Sound like cfgmaker is getting confused by the community string and is using the wrong one somehow.

Try experimenting with the number of escape characters for the @ in the community, or use single quotes:

cfgmaker --global 'WorkDir: /srv/www/htdocs/mrtg/172.16.20.1'
 --global 'Options[_]: growright' --output /etc/mrtg/switch.cfg
 --subdirs=HOSTNAME --ifdesc=nr --ifdesc=descr --ifdesc=alias
 --ifref=name 'He\@pr at 172.16.20.1'

if this doesn't work, use 2, 3 or 4 backquotes before the @ instead, I don't know without testing how many times cfgmaker is evaluating it and removing the \ characters.  Really, cfgmaker should have some code to identify problem characters in the community string and escape them automatically...  make the regexp matching 'greedy' so that the last @ is taken as the separator.  But that's someone else's problem :)

Steve
________________________________________
From: mrtg-bounces at lists.oetiker.ch [mrtg-bounces at lists.oetiker.ch] On Behalf Of Chris Henderson [henders254 at gmail.com]
Sent: Wednesday, 20 May 2009 4:51 p.m.
To: McDonald, Dan
Cc: mrtg at lists.oetiker.ch
Subject: Re: [mrtg] cfgmaker error: No response from remote host

On Tue, May 19, 2009 at 10:22 PM, McDonald, Dan
<Dan.McDonald at austinenergy.com> wrote:
> On Tue, 2009-05-19 at 11:36 +1000, Chris Henderson wrote:
>> I have changed a switch and want to run cfgmaker again. But when I run
>> "cfgmaker --global 'WorkDir: /srv/www/htdocs/mrtg/172.16.20.1"
>> --global 'Options[_]: growright' --output /etc/mrtg/switch.cfg
>> --subdirs=HOSTNAME --ifdesc=nr --ifdesc=descr --ifdesc=alias
>> --ifref=name He at pr@172.16.20.1" I get error "SNMPWALK Problem for
>> ifDescr on He at pr@172.16.20.1::::::v4only: No response from remote host
>> '172.16.20.1' at /usr/bin/cfgmaker line 147.



More information about the mrtg mailing list