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 - ntnam

#1
Feature Requests / Alarm Column Reordering
October 14, 2020, 05:26:59 AM
The grid of Alarm Browser or Alarm Viewer should allow column reordering by drag column header or something.
#2
Feature Requests / Network Map add to link aggregation
January 03, 2020, 03:44:38 AM
NetXMS should display Node Name and Interface Alias in this case.
It's hard when i add more physical link to link aggregation.
#3
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.

#4
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?
#5
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));
#6
Thanks you.
I replace {instance} by $dci->instanceData is ok.
#7
You click one node
Open and view in Object Details > Interfaces
You can see the column name "ifType"
#8
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?
#9
Yes. Thanks you very much.
#10
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?
#11
Thanks you. It's simple.

if ($1->ifType == 6)
   return true;
else
   return false;
#12
How can i create node only show physical interfaces (ifType = 6)