[mrtg] Re: Ambiuous &

Pavleck, Jeremy D. Jeremy.Pavleck at capella.edu
Fri Sep 23 08:12:24 MEST 2005


 Thanks Takumi, someone replied to me in an email about an hour before
you. I didn't try it that way because that's the way I did it
originally, before I loaded the mib. It just didn't occur to me to try
it once more!
 So I gave it a shot and it works fine. Weird how the long target
doesn't work with a loaded mib but the short does - but I'll take it.
Thanks for your help.


Jeremy D. Pavleck
Network Engineer
System Management
	
Capella University
225 South 6th Street, 9th Floor
Minneapolis, MN 55402

www.capella.edu


-----Original Message-----
From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch]
On Behalf Of Takumi Yamane
Sent: Friday, September 23, 2005 12:37 AM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] Re: Ambiuous &

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

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