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

P

Percy

@Percy
Unfollow Follow
About
Posts
39
Topics
9
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • how to set custom attribute to the interfaces of router
    P Percy
    Support

    hi all,

    i want to set custom attribute to the interfaces of the router. like i want to add the customer_name of that link or interface as a custom attribute . please help me to to this. what will be the script....?

    thanks in advance.

    Regards !
    Percy


  • Interface Name in DCI through template
    P Percy
    Support

    hi..,

    i tried the way you mention above but not working properly.
    Still i am facing the same problem in getting the port name or interface name in DCI description.

    percy


  • Interface Name in DCI through template
    P Percy
    Support

    hi,
    thanks for the Reply... i have tried this still not working...
    i think problem is here
    in this $1 = fa0/0, fa0/1 and so on
    trafficIn = SNMPGetValue(transport, ".1.3.6.1.2.1.31.1.1.1.6.fa0/0); but when we select walk with this OId it give result like this
    .1.3.6.1.2.1.31.1.1.1.6.1    125824582
    .1.3.6.1.2.1.31.1.1.1.6.2    112124548
    .1.3.6.1.2.1.31.1.1.1.6.3    152548225

    here {instance} is an Index i.e integer value but we are passing string fa0/0

    when i change the Parameter Oid IfName to ifIndex than DCI doesnot show the Interface Name...but give the Values for the DCI.
    in this case DCI doesnot shows the interface Name

    Description                                    Parameter                                  data Type
    Traffic In {instance} (Byte/sec)      .1.3.6.1.2.1.2.2.1.1.{instance}    integer
    Traffic In 1 (Byte/sec)                  .1.3.6.1.2.1.2.2.1.1.1                integer
    Traffic In 2 (Byte/sec)                  .1.3.6.1.2.1.2.2.1.1.2                integer
    Traffic In 3 (Byte/sec)                  .1.3.6.1.2.1.2.2.1.1.3                integer

    difficult to find the DCI for the Interface Inteface fa0/1 or if there are many Interfaces difficult to find the DCI for the particular inteface.

    Regards.
    Percy


  • Interface Name in DCI through template
    P Percy
    Support

    hi Victor,

    i have created  Templates

    Description- Traffic In {instance} (Byte/sec)
    Parameter-.1.3.6.1.2.1.31.1.1.1.1.{instance}    //ifName Oid
    Origin- SNMP
    Datatype- String
    Instance Discovery-Snmp walk-oid
    Base Oid-.1.3.6.1.2.1.31.1.1.1.1
    Polling Interval = 60 seconds

    transformation Script-
    transport = CreateSNMPTransport($node);    // Create SNMP transport for node
    if (transport == null)
    {
    println "Failed to create SNMP transport, exit";
    return 1;
    }
    trafficIn = SNMPGetValue(transport, ".1.3.6.1.2.1.31.1.1.1.6.$1");
    return = trafficIn;

    this template create DCI for the Routers in this way

    Description                                    Parameter                                  data Type
    Traffic In {instance} (Byte/sec)      .1.3.6.1.2.1.31.1.1.1.1.{instance}      String
    Traffic In fa0/0 (Byte/sec)              .1.3.6.1.2.1.31.1.1.1.1.fa0/0            String
    Traffic In fa0/1 (Byte/sec)              .1.3.6.1.2.1.31.1.1.1.1.fa0/1            String
    Traffic In fa0/2 (Byte/sec)              .1.3.6.1.2.1.31.1.1.1.1.fa0/2            String

    but when i check the DCI values. it does not collect the data shows zero for all interfaces DCI, why transformation script is not working. please correct me where i am doing wrong. please let me know if there are other way to do the same.

    thanks in advance,
    Percy


  • Set Sustom Attribute
    P Percy
    Support

    hi victor ,

    this works fine for new added nodes...how to set custom attribute for those which were previously added nodes. and not getting the Custom attribute for the Interfaces. how to apply the script to the interfaces.

    thank you
    Percy


  • Set Sustom Attribute
    P Percy
    Support

    hi Victor,

    Thank you so much for the support...yes its working.

    Regards !
    Percy


  • Set Sustom Attribute
    P Percy
    Support

    hi all,
    i have tried the Function SetCustomAttribute in script library. than i configured Action to Execute the script for Event Sys_Node_Added. it works fine for all the new added Nodes with same custom attribute value.
    now what i want is that custom attrubute value should be added node Hostname.
    So i used this
    SetCustomAttribute($node, "Node_HostName", "%n")
    but i get the Value %n. why macro didn't work here. secondly how to set the custom attribute for the Interfaces or Instance.

    thank you,
    Percy


  • netxms with oracle 10+ backend
    P Percy
    Support

    hi Victor,

    Great help...thanks a lot.
    its working now

    regards  !
    Percy


  • netxms with oracle 10+ backend
    P Percy
    Support

    hi victor,
    Sorry for the late reply . i have attached the netxmsd.conf, tnsnames.ora, Listener.ora file.
    when i start Server Configuration Wizard to select the Data base Engine i selct the Oracle than Create new database become disable.
    in case of Postgresql netxms create its database names Netxms_db and its required schema. why in case of oracle create new database become Disable.

    thank you
    Percy


    netxmsd.conf

    tnsnames.ora

    listener.ora


  • netxms with oracle 10+ backend
    P Percy
    Support

    hi Victor,

    i am using NetXMS 1.2.11 with Postgres as Backend database. it is  working Properly. now i have another test machine with Oracle as Backend Database but netxms is not able to connect to the Oracle Database. it shows the error message like

    Unable to Connect to database : ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA

    Machine Details
    OS- Windows Server 2008 r2 64 Arch,
    RAM - 16GB,
    Database - Oracle 11g
    NetXMS 1.2.11

    Thanks
    Percy


  • netxms with oracle 10+ backend
    P Percy
    Support

    hi,
    i am also facing the same Problem.
    Percy


  • Execution of Script
    P Percy
    Support

    hi all,

    i want to execute the script created in script library for a particular DCI through transformation tab of DCI. Is it possible..? if possible what function i can use  to call that script in transformation script of  DCI.

    thank you
    Percy


  • Instance Discovery Filter Script [SOLVED]
    P Percy
    Support

    hi..,

    i didn't change anything in delta calculation but a little change in this Script.

    snmp = CreateSNMPTransport($node);
    x = SNMPGetValue(snmp, ".1.3.6.1.2.1.2.2.1.16." . $1);
    if  (x != null)  return x;  // you  gave  me like this return (x > 0 );
    else return 0;

    i am also confused how it started collecting data.  due to that change in the script or happened automatically. but still there is 0 value for the other interfaces (10,2.33) strange why it gives for 1,9 did you notice this in screenshots.

    thank you,
    Percy


  • Instance Discovery Filter Script [SOLVED]
    P Percy
    Support

    hi Sperlm..

    its working now. thanks a lot for the Support.
    posting the Screenshots for the last values.

    with Regards
    Percy


    output3.jpg


  • Instance Discovery Filter Script [SOLVED]
    P Percy
    Support

    hi Milan,

    thanks for the patience posting you the screenshots for the History of the DCI for the interface 1 and last value.
    In Delta calculation tab :- Average Delta Per minute, it is correct or will be something else ?

    regards.
    Percy


    output.jpg

    output2.jpg


  • Instance Discovery Filter Script [SOLVED]
    P Percy
    Support

    hi,

    yes i checked there are values . i have attached the screen shot.

    thanks,
    Percy


    output.jpg


  • 95 percentile
    P Percy
    Support

    hi Marco,

    thank you so much for the help. i am trying to check this script through nxShell. lets see whether it works or not.

    regards,
    Percy


  • Instance Discovery Filter Script [SOLVED]
    P Percy
    Support

    @sperlm said in Instance Discovery Filter Script [SOLVED]:

    Hello, I will reply here so others can try to help too.

    DESCRIPTION -interface traffic: {instance}
    PARAMETER -1.3.6.1.2.1.2.2.1.16.{instance}
    base OID to .1.3.6.1.2.1.2.2.1.16
    snmp = CreateSNMPTransport($node);
    return SNMPGetValue(snmp, ".1.3.6.1.2.1.2.2.1.16." . $1) != 0;

    Not sure if it is the problem you encountered but I had problems with this structure because there is no guarantee there will be 0 value, there can be null too so I wrote it like this:

    snmp = CreateSNMPTransport($node);
    x = SNMPGetValue(snmp, ".1.3.6.1.2.1.2.2.1.16." . $1);
    if  (x != null) return (x > 0);
    else return 0;

    p.s. does it mean you get the desired DCI with correct OID on all of your nodes but the value there is 0 or it creates unwanted DCIs with wrong OID?

    @percy said in Instance Discovery Filter Script [SOLVED]:

    hi Sperlm,

    thank you for replying back.

    Not sure if it is the problem you encountered but I had problems with this structure because there is no guarantee there will be 0 value, there can be null too so I wrote it like this:

    snmp = CreateSNMPTransport($node);
    x = SNMPGetValue(snmp, ".1.3.6.1.2.1.2.2.1.16." . $1);
    if  (x != null) return (x > 0);
    else return 0;
    [/quote]
    i tried this Script on the instance discovery tab of Template than applied to Node i get the DCI for Non Zero values interfaces [ like 1,2,9,10,33] pls check on attachment but when i see the collected values for these DCI it shows 0 value...

    [/quote]

    p.s. does it mean you get the desired DCI with correct OID on all of your nodes but the value there is 0 or it creates unwanted DCIs with wrong OID?
    [/quote]
    yes getting 0 value. why it does not give the values of traffic on interfaces.
    [/quote]


  • Instance Discovery Filter Script [SOLVED]
    P Percy
    Support

    hi Sperlm,

    thank you for replying back.
    [/quote]Not sure if it is the problem you encountered but I had problems with this structure because there is no guarantee there will be 0 value, there can be null too so I wrote it like this:

    snmp = CreateSNMPTransport($node);
    x = SNMPGetValue(snmp, ".1.3.6.1.2.1.2.2.1.16." . $1);
    if  (x != null) return (x > 0);
    else return 0;[/quote]

    i tried this Script on the instance discovery tab of Template than applied to Node i get the DCI for Non Zero values interfaces [ like 1,2,9,10,33] pls check on attachment but when i see the collected values for these DCI it shows 0 value...

    [/quote]p.s. does it mean you get the desired DCI with correct OID on all of your nodes but the value there is 0 or it creates unwanted DCIs with wrong OID?
    [/quote]

    yes getting 0 value. why it does not give the values of traffic on interfaces.
    Regards,
    Percy


    output.jpg


  • 95 percentile
    P Percy
    Support

    hi Marco,

    i am not able to put this script
    http://wiki.netxms.org/wiki/Script_Example:_Aggregation_of_DCI_values_and_applying_the_95%25_percentile_average

    can you help me how to use this script. does it require the DCI if yes what will be the Parameter.

    regards
    percy

  • 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