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

N

ntnam

@ntnam
Unfollow Follow
About
Posts
12
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Alarm Column Reordering
    N ntnam
    Feature Requests

    The grid of Alarm Browser or Alarm Viewer should allow column reordering by drag column header or something.


  • Network Map add to link aggregation
    N ntnam
    Feature Requests

    NetXMS should display Node Name and Interface Alias in this case.
    It's hard when i add more physical link to link aggregation.


    linkmap.JPG


  • Add custom parameter to Event Template?
    N ntnam
    Support

    I create the script GetInterfaceAlias

    if ($dci==null)
      return "?";
    else
      return GetInterfaceObject($node, $dci->instanceData)->alias;
    

    and using macro in message %[GetInterfaceAlias] but this return "?"
    my threshold script run correct

    ifo = GetInterfaceObject($node, $dci->instanceData);
    speed = ifo->speed;
    if (speed!=null)
      if ($1/speed*100 > $2)
        return true;
    return false;
    

    I'am using NETXMS 3.0.2287.
    Can you tell me my mistake.


  • Add custom parameter to Event Template?
    N ntnam
    Support

    Event SYS_THRESHOLD_REACHED don't have parameter index of interface.
    Can i store it from Threshold Script and get it in Event?
    Can you show me another way to get it?


  • Return threshold value and actual value in Threshold script
    N ntnam
    Feature Requests

    I create Data Collection Configuration with threshold value is not fixed

    Transformation:

    return 10*log10($1/1000);
    

    Script:

    transport = CreateSNMPTransport($node);
    value = SNMPGetValue(transport, ".1.3.6.1.4.1.9.9.91.1.2.1.1.4." . $dci->instanceData . ".1");
    threshold = 10*log10($value/1000);
    return (threshold > $1);
    

    I think it's better when i can return threshold value and actual value to the Event Message:

    return %(threshold > $1, format(threshold,1,2), format($1,1,2));
    

  • Get interface speed in Threshold Script ?
    N ntnam
    Support

    Thanks you.
    I replace {instance} by $dci->instanceData is ok.


  • Create node with physical interface only?
    N ntnam
    Support

    You click one node
    Open and view in Object Details > Interfaces
    You can see the column name "ifType"


  • Get interface speed in Threshold Script ?
    N ntnam
    Support

    I monitor traffic in Data Collection Configuration

    Description: {instance-name} - Traffic Out (bits/s)
    Parameter : .1.3.6.1.2.1.31.1.1.1.10.{instance}
    Origin: SNMP - Unsigned Integer 64bit
    Transformation :  Average delta per second
    Transformation script: $1 * 8
    Instance Discovery : SNMP Walk - OIDs
    Base SNMP OID: .1.3.6.1.2.1.31.1.1.1.1

    It's work ok.
    I need add event when percent bandwidth reach.
    I create Threshold script below but the "{instance}" seem to fail.

    $ifo = GetInterfaceObject($node, {instance});
    $speed = $ifo->speed;
    if ($1/$speed*100 > $2)
      return true;
    else
      return false;
    

    How can i get {instance} value? or get interface speed from variables $dci, $node, $object?


  • Add custom parameter to Event Template?
    N ntnam
    Support

    Yes. Thanks you very much.


  • Add custom parameter to Event Template?
    N ntnam
    Support

    Event SYS_IF_DOWN has default message Interface "%2" changed state to DOWN (IP Addr: %3/%4, IfIndex: %5)
    How can i add %6 or %? with interface ifAlias?


  • Create node with physical interface only?
    N ntnam
    Support

    Thanks you. It's simple.

    if ($1->ifType == 6)
       return true;
    else
       return false;
    

  • Create node with physical interface only?
    N ntnam
    Support

    How can i create node only show physical interfaces (ifType = 6)

  • 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