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

#721
General Support / Re: Several problems (v2.0-M1)
January 13, 2015, 06:25:43 PM
Hello.

Quote from: VMGuy on January 13, 2015, 01:33:19 AM
- Creating a new user
  > Objects is completely empty
    > Doesn't matter if I set the permissions manually or if I add the user to an admin group
    > Checked with same permissions as admin user

Login as admin, right click on any object (node / container / object root like "Entire Network" / etc.) in the tree, select properties and set permissions for the user. By default, permissions are propagated to child objects unless you implicitly disable inheritance in object's access control.

Quote from: VMGuy on January 13, 2015, 01:33:19 AM
- Deleting a user and recreating it with the same name
  > Always says the user already exists, but it's not in the user list anymore (also checked with refresh)
  > I need to restart the server to be able to create the user again

That's due to delayed write to the database. It should be synced in under a minute (usually that's just a few seconds), if it stays longer than that - you need to check value of "Database writer's request queue" metric on the server (in Last values)

Quote from: VMGuy on January 13, 2015, 01:33:19 AM
- Script library
  > Save button is disabled
    > The only way to save is closing the script and answer the next question with yes

Works fine for me (OSX). What OS you are using?
My test case was: Open script library, create new script (editor opens, icon is grayed out), type anything - icon becomes active.

Quote from: VMGuy on January 13, 2015, 01:33:19 AM
- Edit agent's configuration file
  > Always get "Cannot open agent config: Access denied"
  > Appears on Linux and Windows
  > Other agent stuff works, e.g. software inventory

Check agent's config file – server IP address should be whitelisted by using "MasterServers" option, all others ("Servers" and "ControlServers") don't have sufficient rights to edit configuration file remotely.
#722
Общие вопросы / Re: Internal Ping
December 19, 2014, 12:34:39 PM
10000 - это timeout, сервер не получил ICMP ECHO reply (или какой-то баг в агенте). Какая система?
#723
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
#724
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
#725
1) проблема не с временем, а с сбором параметров. Если сделать Configuration Poll, он проходит успешно? "nxget" запущеный с сервера получает данные?
2) FileSystem.FreePerc возвращает место без учета reserved (на ext2/3/4 это по умолчанию 5%, можно проверить при помощи tune2fs: tune2fs -l /dev/xvda1 |grep 'Reserved block count'). FileSystem.AvailPerc работает с учетом reserved.
Но это не объясняет, почему не сработал трешхолд. Покажите скриншот конфигурации этого параметра.
#726
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?
#727
General Support / Re: Monitor a running application
December 12, 2014, 10:54:39 AM
You can use Process.Count(*) or Process.CountEx(*) for that
#728
Right click on object, select "Properties", and change "Object Name"
#729
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.
#730
Общие вопросы / Re: Node Capabilities
November 19, 2014, 07:26:27 PM
Добавьте новый script DCI, с кодом $node->isAgent и поставьте трешхолд, 0 - нет агента, 1 - есть агент
#731
Судя по netstat, томкат слушает 8080 только на ipv6 (если :8080 - томкат).
Какие коннекторы прописаны в server.xml?
#732
General Support / Re: Finding an object by ID
November 18, 2014, 07:49:17 PM
select name from object_properties where object_id=13632;
#733
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.
#734
Добавьте в 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)").
#735
Запустите для начала "nxdbmgr -t upgrade" – будет понятно, на чем именно сломался апргейд. Судя по словам "файл базы" – это SQLite?