Hi Edrich,

I don't think there is a way to make case insensitive. Not within MRTG 
operations. The only way it would work would be trial and error until an 
interface matched, trying all variations to determine the right one. In that 
use case it makes far more sense to use one of the other interface reference 
methods. You could match by:

 1) Interface Number
 2) Ethernet Address
 3) Interface Description
 4) Interface Name
 5) Interface Type

For most equipment I play with #3 and #4 are the same. If for some reason you 
cannot, then I believe it would be easier to write a script for a cron job. Use 
snmpwalk and capture the current value, then use sed to replace the target line 
in the MRTG config. That way you could it updated.





Sincerely, 

Edwin A Epstein, III 
Rhinobee Internet Services 
707.237.7504 ext 209 
707.737.0288 Mobile

----- Original Message -----
From: "mrtg-request" <[email protected]>
To: "mrtg" <[email protected]>
Sent: Monday, March 26, 2018 3:00:02 AM
Subject: mrtg Digest, Vol 127, Issue 2

Send mrtg mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of mrtg digest..."


Today's Topics:

   1. Graphing by interfacename - Case insensitive? (Edrich de Lange)
   2. Re: [unsure]  Graphing by interfacename - Case insensitive?
      (Alex van den Bogaerdt)


----------------------------------------------------------------------

Message: 1
Date: Mon, 26 Mar 2018 10:24:44 +0200
From: Edrich de Lange <[email protected]>
To: [email protected]
Subject: [mrtg] Graphing by interfacename - Case insensitive?
Message-ID:
        <CAO2mfay+MEoEbboEE8KAfqRw22P9=x2crdqcdcad1gcf-pz...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi All

I have a googled, and read through various forums, and have had little luck.

Im currently using the graph by interface name to graph some dynamic
interfaces. it works brilliantly.

However, my biggest problem at the moment is that sometimes the users
change the case of the interface name, and then it stops graphing.

Is there any way to make this case insensitive?

Kind regards
[image: Inline image 1]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.oetiker.ch/pipermail/mrtg/attachments/20180326/d2c41fdf/attachment-0001.html>

------------------------------

Message: 2
Date: Mon, 26 Mar 2018 11:54:07 +0200
From: "Alex van den Bogaerdt" <[email protected]>
To: [email protected]
Subject: Re: [mrtg] [unsure]  Graphing by interfacename - Case
        insensitive?
Message-ID:
        <6f466744d65b40358271ca5303dbe087.squir...@webmail.argewebhosting.nl>
Content-Type: text/plain;charset=utf-8

> Hi All
>
> I have a googled, and read through various forums, and have had little
> luck.
>
> Im currently using the graph by interface name to graph some dynamic
> interfaces. it works brilliantly.
>
> However, my biggest problem at the moment is that sometimes the users
> change the case of the interface name, and then it stops graphing.
>
> Is there any way to make this case insensitive?

That's probably just a matter of changing a regular expression.

But....

If your users can change interface names, what's there to stop them from
changing the name in something other than just a difference in case ?




------------------------------

Subject: Digest Footer

_______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg


------------------------------

End of mrtg Digest, Vol 127, Issue 2
************************************
(null)

_______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

Reply via email to