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 - Filipp Sudanov

#1471
General Support / Re: how to enable capabilities
December 22, 2019, 02:20:30 AM
Capabilities get updated when Full Configuration Poll is performed. If node responds to attempt to connect to netxms agent, isAgent capability will be set to Yes and so on.
#1472
Try to undeploy and deploy the war. Also try to clean /var/cache/tomcat/work/Catalina/localhost folder.

The most recent mac console will be released in the next few days, currently you can use previous one, the differences are minor: https://netxms.org/download/releases/3.1/nxmc-3.1.241.war
#1473
Имеется в виду SNMP community string? В каком имено месте - в свойствах ноды или в Configuration -> SNMP credentials?

Какая точно версия сервера? Какая база данных, ее версия? Какая консоль, под какой ОС?
#1474
I've tried on my system with Postgres 10 and NetXMS 3.1.261 on Ubuntu 18.04 - the reconnect actually occurs. Can you increase debugging for DB operations, e.g. by running this from command line:
nxadm -c "debug db.* 8"
and show the log during the moment when database stops/restarts.
#1475
General Support / Re: Netxms 3.1.261 and device discovery
December 17, 2019, 06:35:39 PM
Currently community strings are not sorted / prioritized. The value specified in node properties ('public' by default) is tried first, then server tries community strings from settings (in order in which the database returned the list).

There is no way to change community string from NXSL.
The only possible way for now is to use a Jython script launched by nxshell.
#1476
Дело тут вот в этой строчке:
[26.11.2019 11:21:04]    Upstream interface GigabitEthernet1/0/32 on node SW29xx-9-2 (servernaya, stoyka 3) is down

В netxms есть механизм корелляции, который при потере связи с нодой проверяет, не потеряна ли связь также со свичами/рутерами, через которые подключена нода. Сейчас этот механизм работает так, что переход порта на свиче в DOWN тоже тоже кореллируется и мы бы говорим, что нода недоступна (unreachable) потому что вот этот порт на свиче в дауне (эту логику планируется поменять).
Однако помимо unreachable нода должна была стать и critical, то что это не произошло, это не правильно.
Я так понимаю, что это происходило на 3.0. Планируете апгрейдиться на 3.1?
#1477
As for the first problem with executing an agent´s action via EPP, it was fixed and should work in version 3.1.261 that was released yesterday. Could you please confirm that it works for you?

There is currently no way to pass script arguments that have spaces from GUI's Server Console (and also from nxadm -c). Possible workarounds:
- use some special character, e.g. _ and replace it in the script
- you can use nxscript command line utility, but it can not run scripts from server script library, the script should be in a file.
nxscript 1.nxs "1" "2 3"
#1478
You can use the following macro in threshold value field: %{custom_attribute_name:default_value}. With that you can specify actual threshold value on the node itself in a custom attribute. Nodes, that do not have such attribute will use the default_value.

If you want more customization you can use %[script_name] macro that will be calling a script to calculate the threshold value.

As for disabling thresholds for particular DCIs - you can use the same macro as above and put some huge value to the custom attribute, that will never get reached. Or you can put node into maintenance - then DCIs are collected, but no events are generated.

#1479
Общие вопросы / Re: Карта сети
December 09, 2019, 04:14:24 PM
Баг удается повторить, сделали тикет: https://track.radensolutions.com/issue/NX-1729
#1480
General Support / Re: v3 templates alerts
December 04, 2019, 10:45:03 PM
Templates are matched on guid.
#1481
General Support / Re: netxmsd 3.1 crashing on startup
December 04, 2019, 06:11:03 PM
What version are you using? Is it from packages, downloaded from netxms web site or you compiled it yourself? What Linux version are you using?

Does it segfaults all the time, or it happened only once?

If segfaults repeat, can you set DebugLevel=9 in server config, launch the server and attach the resulting log file?


#1482
Hi!

Do I understand correctly, that you are running NetXMS server on raspberry Pi? A few questions on that matter, would be good if you can provide some info.
How reliable that works? Do you monitor many devices? What database are you using? Is the database working in raspbery Pi? Is raspberry running from SD card or it has SSD connected?

Currently the only way to get netxms on raspberry is to compile yourself. Below is instruction I used to compile netxms agent, to compile the server you need to modify ./configure command.

apt update
apt install automake libssl-dev libcurl4-openssl-dev libssh-dev libmosquitto-dev libpcre3-dev postgresql-client libpq-dev unixodbc-dev

PCRE:
wget https://ftp.pcre.org/pub/pcre/pcre-8.43.tar.gz
tar zxvf pcre-8.43.tar.gz pcre-8.43/
cd pcre-8.43/
./configure --prefix=/opt/pcre --enable-pcre32 --disable-cpp --enable-utf --disable-stack-for-recursion --enable-unicode-properties --disable-dependency-tracking
make
make install

OpenSSL:
wget https://www.openssl.org/source/openssl-1.1.1d.tar.gz
tar zxvf openssl-1.1.1d.tar.gz
cd openssl-1.1.1d
./config --prefix=/opt/openssl no-comp threads
make
make install

bcm2835 which is needed for --with-rpi-agent
apt-get install html-xml-utils
mkdir -p bcm2835 && (wget -qO - `curl -sL http://www.airspayce.com/mikem/bcm2835 | hxnormalize -x -e | hxselect -s '\n' -c "div.textblock>p:nth-child(4)>a:nth-child(1)"` | tar xz --strip-components=1 -C bcm2835 )
cd bcm2835
./configure
make
make install

NetXMS Agent:
./configure --prefix=/opt/netxms --with-agent --with-internal-libexpat --with-internal-sqlite --with-internal-zlib --with-internal-libjansson --with-mariadb --with-odbc --with-pgsql --with-sqlite --with-openssl=/opt/openssl --with-pcre=/opt/pcre --with-rpi-agent
make
make install
#1483
General Support / Re: netxmsd not working after Update
December 03, 2019, 05:18:11 PM
Hi!

Can you share the output of dpkg -l | grep netxms and the contents of /etc/netxmsd.conf

#1484
Timer cancellations are related to server actions that are launched when an event happens. In event processing policy you can configure an action that is executed and set execution delay (in seconds). When event happens, the action will be scheduled. To be able to cancel this particular action we need to mark it somehow. This is done with timer key. This field can have macro fields in it, so e.g. for every node or node-dci combination, etc this field can be unique.

Then we can have another record in event processing policy that can have timer cancellation action. It has the same timer key. If that happens before the timeout goes out, the scheduled action will be cancelled. If not, the action will happen.
#1485
Hi!

NetXMS has a tool called nxdbmgr that has an option for database migration. It is launched like this:
nxdbmgr migrate old.configuration.file
The idea is that this tool is launched on the system you are migrating to. In the regular netxms configuration file on that system you have all the configuration for the new database. And you have another configuration file that has connection parameters to the database you are migrating from - that file name is given to nxdbmgr as parameter.
Before migration you have to initialize the new database by running nxdbmgr init.
netxms server should be stopped so no new data appears in the database during migration.
Migration is only supported on the same version of the database. So you can install 2.2.17 on the new system, do the migration and the do the upgrade.
A more recommended way is to upgrade first and migrate then (in that case you would use newer nxdbmgr that possibly has some bugs fixed) - but for that you would need to compile libprce32, so I would try the above approach first.