[mrtg] Re: Ambiuous &

Takumi Yamane yamtak at b-session.com
Fri Sep 23 07:37:15 MEST 2005


On Thu, 22 Sep 2005 20:57:27 -0500, "Pavleck, Jeremy D." wrote 
in <0F1A5F3993566D4883C596CB56E59B9A04E5DEF8 at mspmail02.int.capella.lan>:
> 
>  I'm running a MRTG 2.10.15 installation on Solaris 9. I've installed
> NetSNMP and varied the way I write the target but nothing seems to 
> work.
> 
>  I receive the following error, and my graphs don't work for that
> particular counter: (From mrtg --debug="snpo" my.cfg)
> ERROR: Target[server-disk_used][_IN_]
> 'iso.org.dod.internet.private.enterprises.ucdavis.dskTable.dskEntry.
> dskUsed.1&iso.org.dod.internet.private.enterprises.ucdavis.dskTable.
> dskEntry.dskAvail. $target->[45]{$mode} ' (warn): Ambiguous use of & 
> resolved as operator & at (eval 96) line 1.
> ERROR: Target[server-disk_used][_OUT_]
> 'iso.org.dod.internet.private.enterprises.ucdavis.dskTable.dskEntry.
> dskUsed.1&iso.org.dod.internet.private.enterprises.ucdavis.dskTable.
> dskEntry.dskAvail. $target->[45]{$mode} ' (warn): Ambiguous use of & 
> resolved as operator & at (eval 97) line 1.
> 
> The target line for that particular machine looks like this:
> Target[server-disk_used]:
> iso.org.dod.internet.private.enterprises.ucdavis.dskTable.dskEntry.
> dskUsed.1&iso.org.dod.internet.private.enterprises.ucdavis.dskTable.
> dskEntry.dskAvail.1:community at server

Add
  LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
and rewrite your target as:
  Target[server-disk_used]: dskAvail.1&dskAvail.1:community at server
it works fine.

I confirmed that your 'long target' does not work, dunno why.

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