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

#3061
General Support / Re: Traffic by Protocol
June 12, 2015, 04:19:54 PM
Hi,

currently it's not possible. We have plans to add IPFIX/NetFlow support in 2.1.

Best regards,
Victor
#3062
General Support / Re: Login to server
June 12, 2015, 04:18:45 PM
Hi,

1.2.17 has few known LDAP bugs that was fixed in 2.0. I'm not sure though if that's one of those known bugs. If you can try 2.0-M4 (or wait for 2.0-M5 which will be available next week) it will be great.
Also, is is possible that LDAP server do not respond to requests from NetXMS server? This can be the reason of timeout on client connect.

Best regards,
Victor
#3063
В 2.0-M5 добавуил параметр агента File.FolderCount - аналогичен File.Count, только считает папки, а не файлы. Теперь получить кол-во папок новее одного дня можно так:

File.FolderCount(C:\Install,*,0,,-86400)

возможность использования File.Time.Change() похоже зависит от операционки - на Windows меняется после создания подпапки.
#3064
Отправил адрес в личку. Смогу заняться в понедельник-вторник думаю.
#3065
General Support / Re: "Automatic Apply rules" delay
June 04, 2015, 10:26:54 AM
That actually make sense to interpret runtime error / abort in auto apply script as no action - otherwise small typo can cause mass remove of templates. I've made change in server logic - now only explicitly returned false will cause unbind - runtime errors will be interpreted as "no change". It will be included in 2.0-M5 release.

Best regards,
Victor
#3066
General Support / Re: 2.0-M4 - Invalid network mask
June 04, 2015, 10:10:22 AM
Hi,

it's a known issue, I plan to fix it in 2.0-M5 release.

Best regards,
Victor
#3067
General Support / Re: nxzlib.dll
June 04, 2015, 10:09:40 AM
Hi,

32 bit version of nxzlib.dll attached.

Best regards,
Victor
#3068
General Support / Re: Active Discovery
June 04, 2015, 10:08:15 AM
Hi,

you can disable built-in active discovery and create your own external script which will do network scan and then use nxshell to create node in NetXMS.

Best regards,
Victor
#3069
Можно поставить threshold "data collection error" на счетчик - он сработает если произойдет ошибка сбора данных.
#3070
Например такой скрипт:


x = 1;
y = null;

z = x / y;

println "z=" . z;


завершится с ошибкой:


Error 5 in line 4: Invalid operation with NULL value


добавляем try/catch:


x = 1;
y = null;

try
{
   z = x / y;
}
catch
{
   z = "ERROR CODE=" . $errorcode . "; LINE=" . $errorline . "; TEXT=" . $errortext;
}

println "z=" . z;


Скрипт отработает и выдаст


C:\Source\NetXMS\x64\debug>nxscript.exe test20.nxsl
NetXMS Scripting Host  Version 2.0-M5
Copyright (c) 2005-2015 Victor Kirhenshtein

z=ERROR CODE=5; LINE=6; TEXT=Error 5 in line 6: Invalid operation with NULL value

C:\Source\NetXMS\x64\debug>

#3071
Еще можно в письмо вставлять URL нужного дашборда.
#3072
General Support / Re: DCI based on SNMP trap.
May 26, 2015, 05:18:09 PM
Hi,

server do not expect two values within one second. You can try to put sleep call (https://wiki.netxms.org/wiki/NXSL:sleep) between two push calls to guarantee at least second interval between values.

Best regards,
Victor
#3073
Now I understand. The problem is that when mapping of trap to event happens, only values are copied, not OIDs (value of $event->parameters[3] will be "[GRE-FW01][INFO][005]" in your example). But, if you have two parameter mappings on different OIDs, and only one of them can be present in actual trap, that means that other parameter will be empty. So, if you have mapped .1.3.6.1.4.1.9789.1500.1.5 to parameter #2 and .1.3.6.1.4.1.9789.1500.2.5 to parameter #3, you can simply check if parameter 2 is empty - if it is, you have .1.3.6.1.4.1.9789.1500.2.5, otherwise .1.3.6.1.4.1.9789.1500.1.5.

Best regards,
Victor
#3074
Hi,

currently it is not possible. I've just added new methods to NXSL class "Event": setMessage, setSeverity, setUserTag. They will be included in release 2.0-M5. Then you'll be able to use script like this:


$event->setSeverity(2);  // change severity to minor


Best regards,
Victor
#3075
Можно поставить threshold на data collection error. Он сработает при ошибке получения данных для DCI.