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

#706
General Support / Re: virtual Diskspace
December 18, 2014, 04:24:24 PM
Hello.

We have a spreadsheet for this kind of calculation; It was implemented for MSSQL, but it will dive you pretty much correct estimate for other DBMS as well.
You can download it here: http://git.netxms.org/public/netxms.git/blob/develop:/doc/misc/database_sizing.xlsx
#707
Short answer - you can't. You can, however, disable saving them to event log (Event Configuration -> edit SYS_INCORRECT_NETMASK -> uncheck "Write to event log").

If you really want to disable them, change src/server/core/node.cpp, lines 1016 and 5699, remove "PostEvent" call (all 3 lines) and recompile.         PostEvent(EVENT_INCORRECT_NETMASK, m_id, "idsaa", pInterface->getId(),
                   pInterface->getIfIndex(), pInterface->getName(),
                   pInterface->getIpNetMask(), pSubnet->getIpNetMask());


P.S. I highly recommend you to fix invalid netmask on servers/routers instead of muting them in monitoring.

Quote from: hkusulja on May 08, 2014, 11:36:32 AM
Quote from: yshiro on May 08, 2014, 11:14:16 AM
Hi, you can disable it on "Configuration\Event processing Policy" just look for "Generate alarm when incorrect network mask detected on interface" and disable this policy.
Hi, thank you for a tip, however as I said, I have already disabled in Event processing policy. The issue is that NetXMS Agents are still generating this Events, and if you look real-time Event monitor, there are lot of them, so I am trying to disable this feature / event log generation for this.

Thank you
#708
1) проблема не с временем, а с сбором параметров. Если сделать Configuration Poll, он проходит успешно? "nxget" запущеный с сервера получает данные?
2) FileSystem.FreePerc возвращает место без учета reserved (на ext2/3/4 это по умолчанию 5%, можно проверить при помощи tune2fs: tune2fs -l /dev/xvda1 |grep 'Reserved block count'). FileSystem.AvailPerc работает с учетом reserved.
Но это не объясняет, почему не сработал трешхолд. Покажите скриншот конфигурации этого параметра.
#709
General Support / Re: Problem with WEB Login
December 12, 2014, 11:19:02 AM
Did you set proper ACL on objects (check inheritance too)?
Can you see objects after you add users to "Admins" group and relogin (it should not be required, but just for sake of testing)?
Can you see objects using native console?
#710
General Support / Re: Monitor a running application
December 12, 2014, 10:54:39 AM
You can use Process.Count(*) or Process.CountEx(*) for that
#711
Right click on object, select "Properties", and change "Object Name"
#712
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.
#713
Общие вопросы / Re: Node Capabilities
November 19, 2014, 07:26:27 PM
Добавьте новый script DCI, с кодом $node->isAgent и поставьте трешхолд, 0 - нет агента, 1 - есть агент
#714
Судя по netstat, томкат слушает 8080 только на ipv6 (если :8080 - томкат).
Какие коннекторы прописаны в server.xml?
#715
General Support / Re: Finding an object by ID
November 18, 2014, 07:49:17 PM
select name from object_properties where object_id=13632;
#716
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.
#717
Добавьте в 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)").
#718
Запустите для начала "nxdbmgr -t upgrade" – будет понятно, на чем именно сломался апргейд. Судя по словам "файл базы" – это SQLite?
#719
А какая система и архитектура процессора?
#720
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.