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

#736
General Support / Re: Finding an object by ID
November 19, 2014, 10:08:27 PM
That's SQL query, use tool provided by your database engine to execute it.
#737
Общие вопросы / Re: Node Capabilities
November 19, 2014, 07:26:27 PM
Добавьте новый script DCI, с кодом $node->isAgent и поставьте трешхолд, 0 - нет агента, 1 - есть агент
#738
Судя по netstat, томкат слушает 8080 только на ipv6 (если :8080 - томкат).
Какие коннекторы прописаны в server.xml?
#739
General Support / Re: Finding an object by ID
November 18, 2014, 07:49:17 PM
select name from object_properties where object_id=13632;
#740
General Support / Re: Threshold script
November 17, 2014, 07:10:01 PM
There is a space in DCI name, please verify that you have space in configuration too.
#741
Добавьте в EPP такое правило:

Event: событие, которое генерирует LogWatch для этой строчки
Filtering script:if (int($node->logMatchCount) > 3) {
   $node->logMatchCount = 0;
   return true;
}
$node->logMatchCount = int($node->logMatchCount) + 1;
return false;

Action: отсылка оповещения

Я бы еще добавил проверку времени (сбрасывать счетчик, если пршло больше X секунд – 600 в примере):now = time();
if (now - int($node->logLastMatch) > 600 || int($node->logMatchCount) > 3) {
   $node->logLastMatch = now;
   $node->logMatchCount = 0;
   return true;
}
$node->logLastMatch = now;
$node->logMatchCount = int($node->logMatchCount);
return false;


Как это работает:
Счетчик сохраняется в custom attribute для сервера, на котором котором произошло событие ($node).
$node->logMatchCount и $node->logLastMatch - это упрощенный доступ к custom attribute, альтернатива GetCustomAttribute($node, ...) и SetCustomAttribute($node, ...).
Конструкция int($node->logMatchCount) - для ситуации, когда артибута еще нет, и результат NULL, принудительный каст в int даст на выходе 0, который можно сравнивать с другим числом (вместо конструкции вида "if ($node->logMatchCount != NULL && $node->logMatchCount > 3)").
#742
Запустите для начала "nxdbmgr -t upgrade" – будет понятно, на чем именно сломался апргейд. Судя по словам "файл базы" – это SQLite?
#743
А какая система и архитектура процессора?
#744
General Support / Re: nxshell import self written classes
November 12, 2014, 03:52:30 PM
nxshell use Jython, which do not support c extensions, you have to use pure-python modules.
#745
First of all, if it's server-grade hardware (not desktop), this information (temperature, voltage, fan speeds, etc.) is usually available via management board (iLO, DRAC, etc.), over SNMP or SMCLP.

On some systems, motherboard temperature can be also retrieved using WMI: https://www.netxms.org/forum/general-support/useful-wmi-queries/msg7656/#msg7656

If management board is not available and "ACPIThermalSpot" do not provide valid temperature, you can try to install SpeedFan (http://www.almico.com/speedfan.php) and sfsnmp extension (http://deve.loping.net/projects/sfsnmp/), then collect information data via SNMP.
I never used SpeedFan/sfsnmp combination, but seen some reports that it works quite well.
#746
По пункту 3 – это есть, называется autobind. При configuration poll, выполняется скрипт из заклади "Autobind script" для контейнера. Если скрипт вернул "true" - нода будет добавлена в контейнер. Пример скрипта: $node->isAgent, $node->isPrinter, и так далее, до любой сложности скриптов.
#747
General Support / Re: Export database 1.2.17
October 30, 2014, 11:56:46 PM
Try to replace dbschema_sqlite.sql with attached version.
#749
Если графики были настроены в виде дешбордов (а не saved graph), то при импорте система пытается найти подходящую ноду и DCI (по именам) и востанавливает все связи.
#750
Да, мы планируем расширять поддержку – текущая версия была сделана под конкретные требования.