[mrtg] Re: I lost in --if-template

Takumi Yamane yamtak at b-session.com
Wed Sep 28 23:33:04 MEST 2005


On Wed, 28 Sep 2005 12:27:26 -0400, Tao Yaoning wrote 
in <8ee7548c05092809275e3653d7 at mail.gmail.com>:
>
> I want to give my extreme switch port 3/1 a specified title, so I 
> write the template file like this:
> 
> if($target_name == "192.168.0.253_3001") {
> $target_lines .=<<ECHO;
[snip]
> ECHO
> 
> the template works on all the ports. There must be something wrong, 
> but I couldn't find what's wrong with my template flie.

perl -e '$var=false; print "always true\n" if ($var == "true");'

man perlop
read a section 'Equality Operators'

-- 
Takumi Yamane <yamtak at b-session.com>

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://lists.ee.ethz.ch/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the mrtg mailing list