Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

C

ckenny

@ckenny
Unfollow Follow
About
Posts
4
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Is it possible to display interface alias in title of graphs?
    C ckenny
    Support

    Ok, so I finally got this working.  Here's the code I used in case it can help someone else:

    // filter out interfaces
    if ($2 == "Nu0" || $2 == "Vl1" || $2 == "Vl100")
    	return false;
    
    snmp = CreateSNMPTransport($node);
    
    if (snmp == null)
    	return -1;
    
    ifAlias = SNMPGetValue(snmp, ".1.3.6.1.2.1.31.1.1.1.18." . $1);
    
    if (ifAlias != "")
       $2 = $2 . " - " . ifAlias;
    
     // trace(0, "Newname is ". $2);
    
    return %(true, $1, $2);
    

  • Is it possible to display interface alias in title of graphs?
    C ckenny
    Support

    Ok, I think I get it now.  Please confirm if I'm on the right track.  I need to use the instance filter script to manually poll the interface Alias, combine the result with $2 (Fa0/1, Fa0/2, etc.) and return that... ie. return %(true, $1, $combinedresult);


  • Is it possible to display interface alias in title of graphs?
    C ckenny
    Support

    Hi Victor,
    Thanks for your help.  It's greatly appreciated.
    I've found reference to Aliases showing up in the "Interfaces" tab, however I'm not sure how to utilize that data in a graph.

    Currently I'm using the following DCI settings:

    Parameter: .1.3.6.1.2.1.31.1.1.1.6.{instance}
    Base OID:  .1.3.6.1.2.1.31.1.1.1.1

    The aliases are located at .1.3.6.1.2.1.31.1.1.1.18
    If I'm already using {instance} to poll "bit/s IN", how can I also use {instance} to poll the "Aliases" within the same DCI?  Or do I have to set the Parameter to be 1 level higher and then use a script to sort through the massive data that is returned?

    Thanks,
    Charles


  • Is it possible to display interface alias in title of graphs?
    C ckenny
    Support

    Hi there,

    I've gone over the docs and searched the forum, but cannot find much info regarding the use of interface aliases.  Can someone please help?

    I have instance discovery working and I'm getting the instance names Fa0/1, Fa0/2, etc.  These are being displayed correctly in the performance tab by using: Interface {instance} in the title.  However, I was hoping to include the interface alias as well.  I've enabled UseInterfaceAliases=3 and I now see the interface name + alias combined, ie: Gi0/1 (Core Uplink)  Is there some way to get both these values into the title of graph and/or in the performance tab?

    Thanks,
    Charles

  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups