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

#1381
Hi,

if those were standard templates then likely they were re-imported on startup. If this is the case set server configuration variable ImportConfigurationOnStartup to false. In 2.2.14 we changed that logic to only import missing templates and events by default.

Best regards,
Victor
#1382
Hi,

from configuration poll output it looks like SNMP is not detected on the node. Make sure that community string is correct and SNMP requests from NetXMS serever are allowed on device. You can use command line tools nxsnmpget and nxsnmpwalk to check if SNMP requests are going through.

Best regards,
Victor
#1383
Yes, this is normal. On startup agent logs unexpanded file name. You should also see something like this when file is found:

2019.04.12 12:03:13.608 *D* [logwatch           ] File "/tmp/test-20190412.log" (pattern "/tmp/test-`date +%Y%m%d`.log") successfully opened

Are you sure your commands return correct values? You may also try to use cmd /c "command" within backticks (because echo for example is not an external executable but cmd's internal command).

Also, if you only need current date/time you may use date/time macros without external commands, like this:

<file>C:\inetpub\wwwroot\website\logs\Log_%Y_%m_%d.txt</file>

Best regards,
Victor
#1384
А, до меня дошло :) ПОка что ничего не приходит в голову кроме как добавить опцию создания виртуальной ID колонкиу на основе OID. Подумаю еще над этим.
#1385
Ну какой-то идентификатор там есть судя по выводу (268435778 например). Вот его и брать.
#1386
General Support / Re: Monitoring FTP?
April 10, 2019, 12:09:19 PM
Hi,

currently it is not possible with built-in tools. You have to use external parameter (using curl for example). You can also register feature request for adding FTP support to portcheck and/or netsvc subagent.

Best regards,
Victor
#1387
Hi,

third argument in File.Size and File.Count is recursion flag. You have it set to 1, change it to 0 to only process files in given directory.

Best regards,
Victor
#1388
Hi,

there is parameter File.Size with same arguments as File.Count - you can use it to retrieve file size and check.

Best regards,
Victor
#1389
General Support / Re: Run ssh command through agent
April 09, 2019, 10:28:00 AM
Hi,

it is not NXSL function, but list provided by agent. You can call it from NXSL script like this:

AgentReadList($node, "SSH.Command(ip,login,password,command");

Use string concatenation to insert dynamic values.

Best regards,
Victor
#1390
Скорее всего не хватает instance column - непонятно какую именно строку брать из каждого значения таблицы. Попробуйте добавить колонку с идентификатором.
#1391
В ExternalTable идет три поля, разделенных : - имя таблицы, параметры, и команда. Параметры разделяются ; и могут быть такими:

separator= символ - разделитель, по умолчанию запятая.
instanceColumns= колонка/колонки в которых содержится уникальный идентификатор для строки.
description= описание таблицы.

Второй вариант - это использовать instance discovery. Тогда остается параметр для получения срока действия сертификата, и делается ExternalList который выдает список всех сертификатов в системе, и используется для instance discovery. Тогда для каждого сертификата будет создан отдельный DCI, на котором уже могут быть трешолды как обычно.
#1392
Ошибка скорее всего связана с кодировкой базы, проверьте что там UTF-8.

По идее это не должно быть связано с доступом к объекту, но поскольку какие-то объекты не сохраняются корректно в базе, есть смысл сначала решить эту проблему.

Еще попробуйте пользователя system - это встроенный суперпользователь. И проверьте права на объекты (в свойствах самих дашбордов и корневого объекта) - возможно снята опция наследования прав. Пользователь admin - это просто пользователь которому назначены права при инициализации, но их можно отобрать. У пользователя system права отобрать нельзя.

#1393
Actually you can create such script DCI on any node (including server node) and skip GetNodeTemplates part, using FindObject instead. So it will be something like this:

total = 0;
t = FindObject("<NAME_OR_ID_OF_TEMPLATE>");
if (t != 0) {
children = GetObjectChildren(t);
foreach(c : children) {
dciValue = GetDCIValue(c,FindDCIByName(c,"<YOUROID>"));
if ( dciValue != null ) total+=dciValue;
}
}
return total;


With that variant it is not necessary to assign template to node with summary DCI.

Best regards,
Victor
#1394
Hi,

can you check with SNMP walk that OID .1.3.6.1.2.1.31.1.1.1.6.92 is present? Could it be that 64 bit counters only supported for physical interfaces by this device?

Best regards,
Victor
#1395
Hi,

looks like you need DCI summary table. After you hve it configured, you can either open it on demand for any container, or put on dashboard.

Best regards,
Victor