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

#1246
Hi,

please note that RPi subagent has very limited functionality: it provides access to GPIO PINs, supports reading DHT22 sensor connected to GPIO, and provides CPU temperature.

Best regards,
Victor
#1247
General Support / Re: TCP proxy functionality
July 07, 2019, 01:32:38 PM
Hi,

there is TCP proxy functionality in agent, server, and client API which is something similar to SSH port forwarding. It was intended mostly for integration tools but there is command line tool that can be used for TCP port forwarding. You can build it from source (it is located under src/client/nxtcpproxy) or download from here: https://cloud.netxms.org/index.php/s/zQLdMnFaNu0mwNA

You run it on your workstation like this:

java -jar nxtcpproxy-2.2.15.jar netxms_server_ip netxms_login netxms_password proxy_node_name remote_ip remote_port local_port

On proxy node TCP proxy should be enabled by adding

EnableTCPProxy = yes

to nxagentd.conf file. NetXMS user should have system access right "Initiate TCP proxy sessions".

For example, if I want to connect with SSH to IP address 10.5.3.2 via proxy node "zone-proxy" I can run (assuming NetXMS server IP address is 10.0.0.10)

java -jar nxtcpproxy-2.2.15.jar 10.0.0.10 admin password zone-proxy 10.5.3.2 22 2222

and then connect with SSH client to localhost port 2222.

Best regards,
Victor
#1248
General Support / Re: Installing agent on Raspbian
July 07, 2019, 11:35:07 AM
Hi,

you have to add new source for apt. Create new file named netxms.list in /etc/apt/sources.list.d/ with content like this:

deb http://packages.netxms.org/raspbian stretch main


You may also need to install GPG key with command

wget -q -O - http://packages.netxms.org/netxms.gpg | sudo apt-key add -

Best regards,
Victor
#1249
Announcements / NetXMS 2.2.16 released
July 02, 2019, 05:04:03 PM
Hi all!

NetXMS version 2.2.16 is out. It is planned to be last release in 2.2 branch and should be followed by release 3.0 in next few weeks. Changes since previous release:

Improved systemd integration
- Agent table System.InstalledProducts supported on AIX and FreeBSD
- Fixed issues:
   NX-857 (Server should send SNMP timeout to proxy agent)
   NX-869 (nxevent sometimes hanges after sending event)
   NX-1606 (DefaultInterfaceExpectedState - wrong values)
   NX-1624 (Add "for the last minute" to description of Icmp.* per-minute agent parameters)
   NX-1633 (Add option to "nxdbmgr export" which will skip selected tables)
   NX-1646 (Agent can't start with invalid entry in the configuration file)
   NX-1651 ("Thresholds" not updating live)
   NX-1655 (Agent's parameters for network interfaces always return error on Solaris 11)

Best regards,
Victor
#1250
General Support / Re: Version 3 Agent Release Date?
June 27, 2019, 01:59:57 PM
Hi,

We plan first 3.0 release in mid-July. If you need only agent for testing I can build installer form current 3.0 branch.

Best regards,
Victor
#1251
Hi,

looks like NetXMS client is blocked on OSM tile server. We plan to setup our own tile server. In the meantime, you can try to set tile server to https://maps.wikimedia.org/osm-intl/ (server configuration parameter TileServerURL).

Best regards,
Victor
#1252
Hi,

looks like bug in static build. Try to use non-static binaries (they should run on almost any distribution as well).

Best regards,
Victor
#1253
Hi,

you can configure DCI on a switch with source "internal" and parameter ReceivedSyslogMessages- it is cumulative counter for received syslog messages. Then you can either do delta transformation and create threshold on it or use "diff" threshold on raw value.

Best regards,
Victor
#1254
Ну это должно происходить автоматом. В списке интерфейсов свича должны показываться телефоны как подключенные устройства. Если нет, то надо разбираться почему.
#1255
Похоже что наш клиент заблокировали на tile.openstreetmap.org. Мы будем делать свой tile server, пока можно поставить в настройках https://maps.wikimedia.org/osm-intl/ (параметр TileServerURL).
#1256
А какую информацию можно получить через CDP про телефон? В любом случае, если есть OID'ы на свиче, то можно их настроить на ноде телефона и как source node указать ноду свича - тогда реальный сбор данных будет на свиче а показываться они будут на телефоне.
#1257
Quote from: Retif on May 22, 2019, 04:41:49 PM
1. Сейчас ExternalList отвечает в формате "(Название) - (Идентификатор)", соответственно, в ExternalParameter этот текст передается в таком же виде и в интерфейсе отображается в таком же виде.
Это неудобно визуально, потому что идентификатор (THUMBPRINT) большой и бесполезный для отображения.
Можно ли как-то через ExternalList получить отдельно две части - название и идентификатор, в ExternalParameter передавать только идентификатор, а отображать только название?

Можно использовать instance discovery filter - там можно вернуть отдельно значение instance и отдельно instance name, например так:


instance = $1;
if (instance ~= "(.*) - (.*)")
{
   return %(true, instance, $1);
}
return true;


и в поле description для DCI использовать {instance-name} вместо {instance}.

Quote from: Retif on May 22, 2019, 04:41:49 PM
2. Нужно изменить конфиг агента на группе серверов. Не для всех, а только для каких-то, например для находящихся в контейнере. Для этого нужно использовать Agent configuration policy? Прочитал документацию про это, но что-то не понял, можно ли сделать на группу серверов. Или правильней для всех серверов одинаковый мастер-конфиг с netxms подтягивать, просто не использовать потом, что не нужно?

Да, можно использовать политику и наложить на несколько серверов. Как вариант - использовать функцию автоматического наложения, по аналогии с шаблонами.

Quote from: Retif on May 22, 2019, 04:41:49 PM
3. В макросах для Event Processing не смог получить количество дней, которое выдается в Value DCI-инстанса. %<currentValue> и %<dciValue> что-то пустоту выдают.

Это при обработке события по срабатыванию threshold?
#1258
We have very good experience with PostgreSQL, that's definitely our recommendation. You may also try TimescaleDB - this is PostgreSQL extension optimized for time series data. We have added support for TimescaleDB recently and so far it shows significant performance improvement for large deployments.

Best regards,
Victor
#1259
Hi,

try to open properties of already added device and set option "This is address of remote management node" on "Communication" page. Then try to addd another node with same IP address. It should work if both nodes does not report NAT IP as one of their interfaces address.

Best regards,
Victor
#1260
Add line

CreateCrashDumps = yes
DumpDirectory = some dir

to netxmsd.conf. Server then should generate minidumps after crash in directory you have specified.

Best regards,
Victor