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

#1351
Hi,

please check if there is any errors logged in UI log (usually it is in $HOME/.nxmc/data/.metadata/.log).

Best regards,
Victor
#1352
Hi,

we are using libtre as regexp engine, their regexp syntax is described here: https://laurikari.net/tre/documentation/regex-syntax/.

There are two options for testing regexps and parsers:

1. Create simple NXSL script like below:

if ($2 match $1)
{
println "Matched";
println "  CG1 = " . $1;
println "  CG2 = " . $2;
println "  CG3 = " . $3;
println "  CG4 = " . $4;
println "  CG5 = " . $5;
}
else
{
println "Not matched";
}


and run it from command line:

victor@hp8570w ~/tmp $ /opt/netxms/bin/nxscript regex.nxsl 'Error\s(.*)' 'Error 44'
NetXMS Scripting Host  Version 3.0.1690
Copyright (c) 2005-2018 Victor Kirhenshtein

Matched
  CG1 = 44
  CG2 = Error 44
  CG3 =
  CG4 =
  CG5 =
victor@hp8570w ~/tmp $


2. Use nxlptest tool (I'm not sure though if it is included into deb packages). It allows you to run specific log parser from command line overriding trace level and file name specified in the parser. For example, if I want to test parser on my syslog I can do it like this:

/opt/netxms/bin/nxlptest -D9 -t9 -f /tmp/syslog /opt/netxms/etc/syslog_parser.xml

It will run parser from /opt/netxms/etc/syslog_parser.xml with maximum diagnostic output reading data from /tmp/syslog instead of /var/log/syslog as defined in the parser.

Best regards,
Victor
#1353
General Support / Re: DCI Template manual override
April 29, 2019, 11:23:10 AM
Hi,

you can change threshold to script like this:

v = GetCustomAttribute($node, "VoltageThreshold");
return $1 < ((v != null) ? v : 22);


then threshold will fire if voltage is less than 22 unless you have custom attribute VoltageThreshold set on a node - in that case it will compare current value with value of this attribute. So if you need to override threshold to fire if below 25v on specific node, go to that node properties, page "Custom Attributes", and add attribute VoltageThreshold with value 25.

Best regards,
Victor
#1354
Hi,

from value sizes it seems that value is there but cannot be displayed for some reason (possibly UI bug). Is it possible to provide raw value from database for testing?

Best regards,
Victor
#1355
Hi,

how big are those tables? Also, could you check values stored in tdata table for those two table DCIs - is value for empty table really small?

Best regards,
Victor
#1356
ПОхоже модем надо переключать в правильную кодировку. Можете прислать результаты команды AT+CSCS=? на вашем модеме?
#1357
General Support / Re: DCI Template manual override
April 25, 2019, 01:32:17 PM
This is the idea of templates (and why you always get a warning when editing template item on a node). If you need customizable thresholds you can use combination of script thresholds and custom attributes. For example, if you need to check that value is less than 10 unless custom value is set on a node in custom attribute "CustomThresholdValue" you can use the following script threshold:

v = GetCustomAttribute($node, "CustomThresholdValue");
return $1 < ((v != null) ? v : 10);


Best regards,
Victor
#1358
В 2.2.13 появилась функция обнаружения нод-дубликатов (с одинаковыми адресами), и в ней уже нашли несколько багов. Попробуйте отключить, выставив параметр сервера NetworkDiscovery.MergeDuplicateNodes в 0.
#1359
Попробуйте переключить драйвер из текстового в PDU режим.
#1360
А какой тип карты - автоматическая топология или custom? И выключен ли automatic layout?
#1361
Да, можно. У агента есть список PDH.ObjectInstances который как аргумент принимает PDH объект. Например, для получения всех физических дисков можно использовать PDH.ObjectInstances(PhysicalDisk).
#1362
Hi,

you probably should check database health and performance first - it could be that for some reason database is unable to handle INSERTs for collected data. Also, check that database connection pool is not exhausted (you can check log file for DB connection pool related errors as well as check active pool connections with show dbcp command in server debug console). You may also try to increase value of server configuration parameter DBWriter.DataQueues.

Best regards,
Victor
#1363
General Support / Re: Unable to Start Netxms Server
April 25, 2019, 10:30:18 AM
Hi,

yes, it was fixed in 2.2.13. We also plan release 2.2.14 next week.

Best regards,
Victor
#1364
Hi,

after you unpack archive you should have nxmc (or nxmc.exe on Windows) executable inside whatever target directory you were using for extraction. Just run it.

Best regards,
Victor
#1365
General Support / Re: subagent
April 18, 2019, 06:16:10 PM
Right click on node, select Tools->Info->Agent->Subagent list

To load subagent add

SubAgent = name.nsm


to your nxagentd.conf.

Best regards,
Victor