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

#4726
Общие вопросы / Re: помогите с SQL
February 18, 2013, 07:17:37 PM
Сначала надо найти DCI ID по имени и node ID:

SELECT item_id FROM items WHERE node_id=<node id> AND name='<snmp oid>';

теперь можно прочитать последнее собранное значение:

SELECT transformed_value FROM raw_dci_values WHERE item_id=<dci id>;

Для Oracle у меня получился такой запрос:


SELECT n.primary_ip IP,
o.name NAME,
n.uname MODEL,
n.snmp_sys_name SNMP_DESCR,
n.bridge_base_addr MAC_ADDR,
i.description VLAN,
r.transformed_value SERIAL
FROM nodes n
LEFT JOIN object_properties o ON n.id = o.object_id
LEFT JOIN interfaces i ON n.id = i.node_id AND i.description like '%vlan%'
LEFT JOIN items t ON t.node_id=n.id AND T.NAME='.1.3.6.1.2.1.1.1.0'
LEFT JOIN raw_dci_values r ON r.item_id=t.item_id
ORDER BY n.primary_ip;


OID неправильный конечно. Можно вместо items.name использовать items.description.
#4727
А как вы делали инициализацию? Есть два типа SQL скриптов - dbinit_ и dbschema_. Надо использовать dbinit_ скрипт.
#4728
General Support / Re: Network Service
February 16, 2013, 09:03:21 PM
Hi!

Check that you have 127.0.0.1 in MasterServers.

Best regards,
Victor
#4729
Hi!

It's called "bind". You can select "Infrastructure Services" object or any container below, choose "Bind..." from context menu, and select node(s) you want to put into container.

Best regards,
Victor
#4730
General Support / Re: Network Service
February 15, 2013, 04:50:46 PM
Hi!

Internally server uses it's own agent running on same machine to monitor network services. You should check that NetXMS agent is running on NetXMS server's machine, and that it has port checker subagent loaded - there must be

SubAgent = portcheck.nsm

entry in nxagentd.conf. You don't have to install NetXMS agents on monitored nodes to check network services.

Best regards,
Victor
#4731
Windows / Re: Compilation for Windows, missing files
February 15, 2013, 04:48:49 PM
Hi!

We use Visual Studio 2005 for building NetXMS on Windows. I'll check and fix missing files. In the meantime you can use SVN snapshot to get these files: https://www.netxms.org/download/netxms-svn.tar.gz.

Best regards,
Victor
#4732
Feature Requests / Re: ifOperStatus Dormant
February 14, 2013, 05:46:24 PM
Hi!

Yes, it's a bug. Ill add correct handling of dormant operational status.

Best regards,
Victor
#4733
Hi!

How often do you see SNMP packets destined to devices with SNMP turned off? Can you show a screenshot of node properties and screenshot of SNMP request (or list SNMP OIDs requested by server)?

Best regards,
Victor
#4734
Общие вопросы / Re: Переезд с WhatsUP
February 14, 2013, 01:01:07 PM
WMI пока работает только через агента установленного на хосте. Запланировано реализовать доступ к WMI без агента (https://www.radensolutions.com/chiliproject/issues/37), но пока не сделано.
#4735
Надо сделать 2 DCI:
1. prtMarkerSuppliesMaxCapacity - .1.3.6.1.2.1.43.11.1.1.8.1.1 - его можно собирать редко, поскольку max capacity вряд-ли меняется;
2. prtMarkerSuppliesLevel - 1.3.6.1.2.1.43.11.1.1.9.1.1 - собирать с необходимой частотой, и добавить transformation script, который будет пересчитывать абсолютное значение в проценты:

total = GetDCIValueByName($node, ".1.3.6.1.2.1.43.11.1.1.8.1.1");
return $1 * 100 / total;

#4736
Общие вопросы / Re: Переезд с WhatsUP
February 14, 2013, 10:47:17 AM
Есть небольшой пример на английском по настройке параметра и отсылке сообшения: http://wiki.netxms.org/wiki/How_to_send_e-mail_notification_when_disk_space_is_low.
Вообще сначала надо определиться, как будут собираться данные: через агентов или через SNMP. С агентами все проще: ставится агент на хост, делается configuration poll, после чего кнопка "select" в диалоге конфигурации DCI будет давать список доступных параметров с агента. Для сбора данных с SNMP надо выбрать source "SNMP" в настройках DCI, после чего кнопка "select" откроет MIB browser, где можно выбрать нужный OID.
#4737
General Support / Re: need tuning help
February 14, 2013, 10:41:23 AM
Hi!

Can you show how a chart of CPU usage on your NetXMS server? It seems quite strange to have very high CPU usage on that number of nodes. Regarding number of pollers, I would suggest to set it as following:

NumberOfConfigurationPollers = 20
NumberOfDatabaseWriters = 4 (or more if database writer queue still big)
NumberOfDataCollectors = 50
NumberOfRoutingTablePollers = 20
NumberOfStatusPollers = 50
NumberOfTopologyPollers = 20

High CPU usage may be caused by frequent polling of large routing tables. For example, if you have a router with full BGP table, it is recommended to turn off routing table polling for it, otherwise NetXMS server will try to fetch this huge table periodically.

Best regards,
Victor
#4738
General Support / Re: Out of memory NetXMS v1.2.5
February 12, 2013, 07:07:06 PM
You can send it to [email protected].

Best regards,
Victor
#4739
General Support / Re: Android console app question
February 12, 2013, 01:38:58 PM
Hi!

As Android client is mostly read-only, you only need read access to the objects. Also you may need "acknowledge alarms" and "terminate alarms" rights if you need to manage alarms from mobile client. And running some types of object tools may require "Control" access right on appropriate nodes. You don't need any system-wide rights for mobile device users.

And other questions probably will go to Marco, as he is main author and maintainer of Android client.

Best regards,
Victor
#4740
General Support / Re: netxms install on debian live
February 12, 2013, 01:34:10 PM
Hi!

Did you place netxms-base_1.2.5_i386.deb along with netxms-agent_1.2.5_i386.deb?

Best regards,
Victor