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

#2476
Hi,

node object in FindObject call is not for limiting search scope, but for access control (it will only find objects where this node set as trusted if trusted nodes check is on). If you have trusted nodes check off, you can pass null as node parameter.

Best regards,
Victor
#2477
На мой взгляд совершенно правильно - каждый скрипт заимается своим делом.
#2478
Another option besides source code change is to create local port mappings on NetXMS server itself on some fake subnet, different local virtual IP for each NAT'ed device.

Best regards,
Victor
#2479
Hi,

this message could also mean that server cannot find required dll for pgsql.ddr. Check that postgreSQL client dll's are in your PATH.

Best regards,
Victor
#2480
Could you delete it again, turn on debug 6, run configuration poll, and send me log messages related to that node?

Best regards,
Victor
#2481
Общие вопросы / Re: POLLERS is too high
July 07, 2016, 12:51:26 PM
Планируется что будут появляться и другие шаблоны - поэтому для старых инсталляций параметр по умолчанию 0. Сейчас только несколько шаблонов для мониторинга самого сервера. Сломать ничего не сломает, просто будут дополнительные шаблоны и события.
#2482
например так:


value = GetCustomAttribute(int, "ImportantInterface");
if (value == null)  // нет такого атрибута
{
   int->setExpectedState(0); // UP
}


status propagation из скрипта поменять нельзя.
#2483
SYS_SNMP_UNREACHABLE генерируется только если SNMP на ноде был. Можно сделать hook скрипт для configuration poll, который будет проверять наличие SNMP и генерировать событие если SNMP нет:


if (!$node->isSNMP)
   PostEvent($node, "SNMP_NOT_DETECTED");


в данном примере используется событие с именем SNMP_NOT_DETECTED.
#2484
Зарегистрировал как баг: https://dev.raden.solutions/issues/1257
#2485
Для всех опросов есть hook скрипты: Hook::ConfigurationPoll, Hook::sStatusPoll, и т.д. В данном случае похоже подойдет hook на configuration poll. Еще рекомендую отключить CheckTrustedNodes, иначе могут быть проблемы с поиском объектов.
Не совсем понял как ноды оказались в Infrastructure Services - сам по себе сервер их туда не помещает. В любом случае можно использовать UnbindObject в хуке чтобы убрать ноду оттуда.
#2486
Посмотрел внимательней лог - получается что модем дает ошибку на AT+CMGS. Когда делали отсылку с терминала, как вводили номер? Драйвер дает номер в двойных кавычках (например AT+CMGS="+15557770001"), возможно этот модем такой формат не понимает.
#2487
Общие вопросы / Re: POLLERS is too high
July 07, 2016, 12:19:02 PM
Стандартные шаблоны лежат в <prefix>/share/netxms/templates (/usr/share/netxms/templates для deb пакетов, <path>\share\templates на Windows). Сервер при старте импортирует все из этого каталога, если параметр ImportConfigurationOnStartup выставлен в ненулевое значение.
#2488
Hi,

do those subnets have same network mask?

Fix should be quite easy - just delete one of them (make sure you don't have nodes that are only in subnet being deleted).

Best regards,
Victor
#2489
General Support / Re: Syncer Thread flapping
July 07, 2016, 12:13:53 PM
Hi,

most likely. It could be due to slow database response - you can check that by setting server configuration parameter LongRunningQueryThreshold to non-zero value - it will log all SQL queries with execution time longer than given number of milliseconds.

Best regards,
Victor
#2490
Hi,

you may try to increase value of server configuration parameter AgentCommandTimeout (it is in milliseconds).

Best regards,
Victor