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

M

mike

@mike
Unfollow Follow
About
Posts
7
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Inbound Traffic (bit) does not work correct
    M mike
    Support

    I think the problem is the max value of integer. It´s 2.147.483.647. I don´t know why he ignores the Datatype you set at the dci.
    I think you can solves this if you change the transformation script from "return $1 *8;" to "return $1 * 8.0;".
    I will test this today.


  • Inbound Traffic (bit) does not work correct
    M mike
    Support

    Hi,
    i have a lot of dci elements for the port traffic (bits/sec). As you can see in the picture, this does not work if the traffic is more than 2.1g. Suddenly we have negative values. The Port is a 10g port.
    If I monitor byte instead of bit, everything works fine. Even if I update the mysql database (*8 to get bit) everything is still fine (and i get about 2.7-3g)
    So I think that there is a Bug in the DCI bits/s with the transformation.

    Here some information:

    I tried:
    30 an 60 seconds polling interval
    Unsigned integer 64 bit and Integer 54 bit

    If I take a look at the History values for the DCI in netxms I get something like:
    2140082744
    2130266056
    -2088964288
    -2087799680
    2027156922

    If you check the mysql Database sometimes I get values like:
    18446744071578687616
    18446744071621501168
    and sometimes negative values.


    line.PNG


  • Instance Discovery (Port Admin State, Port OperState)
    M mike
    Support

    That solved the problem. Thank you.


  • Instance Discovery (Port Admin State, Port OperState)
    M mike
    Support

    Thank you, the "$1" solved the Problem. I attached my configuration in case someone is interested.

    Is there a chance to check for just the first (or any) part of the description name? I have many ports named "Test_xxx". It would be nice to search for "Test" in the first 4 letters and exclude them too.


    1.PNG

    2.PNG


  • Instance Discovery (Port Admin State, Port OperState)
    M mike
    Support

    hi, thanks for reply.
    Unfortunately this was a mistake while writing the post.

    This is my last version:

    snmp = CreateSNMPTransport($node);
    
    oper = SNMPGetValue(snmp, ".1.3.6.1.2.1.2.2.1.8." . $1);
    nam = SNMPGetValue(snmp, ".1.3.6.1.2.1.31.1.1.1.18." . $1);
    adm = SNMPGetValue(snmp, ".1.3.6.1.2.1.2.2.1.7." . $1);
    dec = SNMPGetValue(snmp, ".1.3.6.1.2.1.31.1.1.1.1." . $1);
    
    if (oper != null && oper != 0 && nam != null && adm == 1)
          return %(true, oper, dec . " - " . nam);
    else return false;
    

    /edit:
    I saw that i corrected my mistake 3 seconds before your post. I was a bit too late 🙂


  • Instance Discovery (Port Admin State, Port OperState)
    M mike
    Support

    Hi,

    I tried to get a List of my Ports. The DCI should give me the operState. But just for Port with Admin = up.

    This is what i tried:

    dci Name: Port {instance-name}
    SNMP OID: .1.3.6.1.2.1.2.2.1.8.{instance}

    Base OID: .1.3.6.1.2.1.2.2.1.8

    snmp = CreateSNMPTransport($node);
    
    value = SNMPGetValue(snmp, ".1.3.6.1.2.1.2.2.1.8." . $1);
    nam = SNMPGetValue(snmp, ".1.3.6.1.2.1.31.1.1.1.18." . $1);
    adm = SNMPGet(snmp, ".1.3.6.1.2.1.2.2.1.7." . $1);
    
    if (value != null && value != 0 && nam != null && adm->value == 1)
                    return %(true, value, nam);
    else return false;
    

  • Cisco ASR 1002
    M mike
    Support

    Hi,
    I saw that my Cisco ASR 1002 Router is using the "Generic" driver instead of a Cisco driver like the "catalyst" one.
    Is there a way to use a specific cisco driver? Or are there any plans to implement the asr 1002 series in the future?

    kind regards
    Mike

  • 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