[mrtg] Indexmaker regexp matching... Was: RE: Re: Indexmaker... p lease HELP!!!

James Smith JSMITH at PRESIDIO.com
Tue Jul 27 15:27:20 MEST 1999


According to the source code, it uses the title line, but the behavior I
have observed is it ignores the target definition, and just uses the title
text when looking for a match.

For example, 
Title[1.2.3.4]: Loudenboomer 5000 atc2p3
You will not get a match with "-r 1.2.3.4", but you will get a match 
with "-r 5000". If you want to match on IP address, you must change
"Title[1.2.3.4]: Loudenboomer 5000 atc2p3" to read
"Title[1.2.3.4]: Loudenboomer 5000 atc2p3 1.2.3.4" or some such.

Jim

-----Original Message-----
From: Eric Werner [mailto:ewerner at nwlink.com]
Sent: Monday, July 26, 1999 12:14 PM
To: MRTG mail list (E-mail)
Subject: [mrtg] Re: Indexmaker... please HELP!!!


On Fri, 23 Jul 1999 lfiddler at us.ibm.com wrote:

> Just to clarify so that we are on the same page here....
> 
> This is what I am typing :     Indexmaker -r '154.17.6.1'
> /usr/local/mrtg2.7/cfg_files/asp_mrtg.cfg > /tmp/index.html
> 
> I get back the usage error.  Exactly what you sent me (below).
> 
> Works if I don't use -r '154.17.6.1'... creates the full file, but we want
it by
> device not all of the devices in one HTML file.
> 
> Any suggestions would be appreciated...

And is the target name for that IP the IP itself, i.e. you are using
Target[154.17.6.1]?  That is the only think indexmaker is looking for.  It
isn't looking at the details, just the target definition.

Eric Werner
Senior Network Administrator
-----------------------------------------------------------------
                                               ewerner at nwlink.com
                                       <http://www.phydeaux.net/>

 It's a little known fact that the Y1K bug caused the Dark Ages.

--
* To unsubscribe from the mrtg mailing list, send a message with the
  subject: unsubscribe to mrtg-request at list.ee.ethz.ch
* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg

--
* To unsubscribe from the mrtg mailing list, send a message with the
  subject: unsubscribe to mrtg-request at list.ee.ethz.ch
* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg


More information about the mrtg mailing list