Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Percy

#1
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
#2
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
#3
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
#4
General Support / Interface Name in DCI through template
February 28, 2014, 09:44:43 AM
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

#5
General Support / Re: Set Sustom Attribute
February 27, 2014, 11:50:48 AM
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
#6
General Support / Re: Set Sustom Attribute
February 27, 2014, 08:28:25 AM
hi Victor,

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

Regards !
Percy
#7
General Support / Set Sustom Attribute
February 26, 2014, 08:37:31 AM
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
#8
General Support / Re: netxms with oracle 10+ backend
February 20, 2014, 07:58:12 AM
hi Victor,

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

regards  !
Percy
#9
General Support / Re: netxms with oracle 10+ backend
February 19, 2014, 08:48:50 AM
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
#10
General Support / Re: netxms with oracle 10+ backend
February 17, 2014, 11:47:49 AM
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

#11
General Support / Re: netxms with oracle 10+ backend
February 15, 2014, 08:55:53 AM
hi,
i am also facing the same Problem.
Percy
#12
General Support / Execution of Script
February 13, 2014, 11:15:24 AM
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
#13
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
#14
hi Sperlm..

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

with Regards
Percy
#15
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