[mrtg] Re: IP problem

Takumi Yamane yamtak at b-session.com
Sat Jan 3 14:14:15 MET 2004


> darius:~# /usr/bin/cfgmaker public@$1 --global "workdir: /home/mrtg/
> public_html/$1 " --output /etc/mrtg/$1.cfg
> --base: Get Device Info on public at public@:
> Error:
>   can't resolve "" to IP address
... snip ...

how about this?

IP=what.ever.your.agents.ip \
/usr/bin/cfgmaker public@$IP \
  --global "workdir: /home/mrtg/public_html/$IP" \
  --output /etc/mrtg/$IP.cfg


>what could be the problem, and how to solve it?

there is no problem if you do know what '$1' means.


Takumi Yamane <yamtak at b-session.com>

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