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 - Victor Kirhenshtein

#4126
General Support / Re: Cumulative network traffic
December 09, 2013, 08:20:51 AM
You returning value of original DCI in your transformation script, but if you want cumulative counter, you should return sum of current value of your dummy DCI and current value of original DCI, something like

GetDCIValue($node, dci->id) + GetDCIValue($node, $dci->id)

($dci refers to current DCI being processed).

And to reset the counter - check if last poll time for your dummy DCI is in different month, and return 0 in that case, like this:

if (strftime("%m", $dci->lastPollTime) < strftime("%m", time()))
   return 0;

Best regards,
Victor
#4127
This filtering script checks that absolute value for given OID is 0. If you have non-zero value which is not changing over time, OID will pass filter but you will still get 0 as delta value. If you want to filter out any non-changing values, you should get two samples and check delta, like this:


snmp = CreateSNMPTransport($node);
v1 = SNMPGetValue(snmp, ".1.3.6.1.2.1.2.2.1.16." . $1);
sleep(10000);  // sleep for 10 seconds
v2 = SNMPGetValue(snmp, ".1.3.6.1.2.1.2.2.1.16." . $1);
return (v2 - v1) != 0;


Of course, practical use of such method is questionable and depends on your goals - you will either miss slowly changing OIDs if sleep interval is too small or make configuration polling extremely long if you have lot of instances and long sleep interval.

Best regards,
Victor
#4128
General Support / Re: High number in queues
December 06, 2013, 01:42:32 PM
Hi!

This could happen if you have large network, autodiscovery is on, and lot of hosts/devices did not respond to ping and SNMP (usually because of firewall). If this is the case, you don't have to worry - eventually queue will go down. The only drawback is that network discovery will take much longer type. You can speed up discovery process by allowing access from NetXMS server where needed and/or using address filters for network discovery to skip unneded address ranges.

Best regards,
Victor
#4129
Hi!

SNMP OID used for data collection is in fact DCI name, and so it is available as first event parameter via macro %1 or variable $1 in filtering scripts.

Best regards,
Victor
#4130
General Support / Re: Last value sorting
December 06, 2013, 01:36:42 PM
Hi!

I've changed sorting in last values view to be data type aware. This fix will be part of 1.2.10 release.

Best regards,
Victor
#4131
Вот он.
#4132
Почти все выложено. Не переведен из выложенного ObjectManager. Ну и чуть позже подготовлю PerfView - и это будет последний плагин :)
#4133
С неравными интервалами могут быть только push параметры, но тогда придется сбор данных выносить во внешний скрипт. Можно сделать по другому - в DCI хранить кол-во тонера, и поставить threshold на условие diff with previous value > 0 - тогда он сработает когда кол-во тонера вырастет, т.е. картридж был заменен. По событию в этот момент можно через SNMP получить кол-во страниц (как сейчас сделано в transformation script), и использовать его в аларме и/или оповещениях. Дополнительный бонус - можно вывести на график текущий уровень тонера.
#4134
Hi!

Currently it's not possible, but in version 1.2.10 I've added automatic detection of predefined shared secret on agents. You can set server configuration parameter AgentDefaultSharedSecret to your secret, and server will automatically use it for communications when required.

Best regards,
Victor
#4135
General Support / Re: Run NXSL Script on Node click event
December 03, 2013, 11:46:49 PM
Hi!

It's not possible yet. However, we have such feature request for some time and it will be implemented in one of next releases (1.2.11 or 1.2.12, it will not be upcoming 1.2.10).

Best regards,
Victor
#4136
General Support / Re: BIT View of a specific Node
December 03, 2013, 11:45:39 PM
Hi!

It's not possible to achieve what you want with configuration. You'll need some specialized views. It is possible to create specialized plugin for management console which will provide such view, but you have to be able to develop Eclipse plugins in Java. You can also order custom development from us. There are also plans to add possibility to define custom forms in console using Python scripts, but I cannot promise when (and if) we will implement it.

Best regards,
Victor
#4137
General Support / Re: Unknown Interface problem
December 03, 2013, 11:41:52 PM
"unknown" interface is a pseudo interface object which is created when NetXMS server cannot get interface list from node either by SNMP or from NetXMS agent. Ensure that node is responding by SNMP or that NetXMS agent is installed.

Best regards,
Victor
#4138
Hi!

No, there are no such thing, although search in forum may bring you some. Feel free to ask if you need help to build some queries for reporting, etc.

Best regards,
Victor
#4139
General Support / Re: UseIfXtable vs ifXtable
December 03, 2013, 11:38:57 PM
Server configuration parameter UseIfXTable is global default, which you can override for each node individually on Polling page by setting "Use ifXTable" option to enable or disable. Setting it to default means "use global default set by UseIfXTable parameter".

Best regards,
Victor
#4140
General Support / Re: External parameter not added
December 02, 2013, 08:12:18 PM
Hi!

Did you do configuration poll after agent restart? Server uses cached version of parameter list when you press "select" button in DCI configuration dialog, and only updates it at configuration polls.

Best regards,
Victor