News:

We really need your input in this questionnaire

Main Menu
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

#46
This hook is not limited to Nodes, so $node can be null while $object is set.
If you are interested in nodes only, just check for $node:

if ($node and not $node.snmpSysName.isEmpty()) {
   $node.rename($node.snmpSysName);
}
#47
impish (21.10) больше не обновляется. Мы собираем пакеты для всех LTS версий и последней текущей
#48
General Support / Re: v5.1.3 Android Client
May 07, 2025, 04:39:41 PM
I'll try to push it into public beta (in the play store) next week
#49
Мы какое-то время не проверяли совместимость с последними версиями.
Я зарегистрировал таск: https://track.radensolutions.com/issue/NX-2762
#50
Похоже на баг, или в прошивке, или у нас. Я только что проверил на микротике и циске - там всё стабильно работает. Что это за устройство, и какая там стоит прошивка?

И попробуйте nxsnmpwalk, возможно устройство не понимает запрос на несуществующий OID?
1.3.6.1.4.1 - это вся ветка private, ее нельзя запросить гетом.

Пример, как я проверял:
[admin@MikroTik] /snmp/community> add name=v3user addresses=::/0 authentication-password=UFDz3XGjYUhVEjTS encryption-password=ZwtM5KlwSsVQxsyc authentication-protocol=SHA1 encryption-protocol=AES security=private read-access=yes write-access=no

❯ nxsnmpget -a SHA1 -A UFDz3XGjYUhVEjTS -e AES -E ZwtM5KlwSsVQxsyc -u v3user -v 3 10.40.4.18 1.3.6.1.2.1.1.1.0
1.3.6.1.2.1.1.1.0 [STRING]: RouterOS RB5009UPr+S+
#51
Try "chown -R fts-fatmir /opt/netxms-webui/", then restart jetty
#52
If you want to enable ssl in jetty, you need to generate keychain and set keyStorePath, as well as keyStorePassword.

Keychain can be either self-signed or you can import existing certificates.

Or you can just omit https on the jetty side and configure ssl-offloading using any other reverse proxy (nginx, reproxy, etc.)
#53
You can run jetty on the same server. Jetty (or Tomcat) is just a java application which can run .war files.

Recent jetty is not available in packages, but it's easy to install by hand:

curl -O https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-home/12.0.17/jetty-home-12.0.17.tar.gz # download latest Jetty12
tar zxf jetty-home-12.0.17.tar.gz -C /opt # unpack it to /opt/
ln -s  /opt/jetty-home-12.0.17 /opt/jetty-home-12 # make a symlink without a minor version, so every upgrade you don't have to modify systemd unit
mkdir /opt/netxms-web/ # actual work area for the web
cd /opt/netxms-web/
java -jar /opt/jetty-home-12.0.17/start.jar --add-modules=server,http,ee8-deploy,gzip,http2,https,logging-logback,plus,ssl,work # create default configuration for jetty
vim start.d/ssl.ini # change keyStorePath and keyStorePassword to match your keystrore
curl -o webapps/ROOT.war https://netxms.com/download/releases/5.1/nxmc-5.1.4.war # download war file to webapps/ROOT.war, so app will be available at /
java -jar /opt/jetty-home-12.0.17/start.jar # test that it runs

useradd -r -s /sbin/nologin jetty # create user so we don't run it as root
systemctl edit --full --force netxms-web.service # create service, paste sample from bellow
systemctl enable --now netxms-web.service # enable autostart and start immediately


Unit file:

[Unit]
Description=NetXMS WEB UI
StartLimitIntervalSec=0

[Service]
Type=simple
WorkingDirectory=/opt/netxms-web
User=jetty
Group=jetty
ExecStart=java -jar /opt/jetty-home-12/start.jar
Restart=on-failure
RestartSec=30
TimeoutSec=900

[Install]
WantedBy=multi-user.target
#54
General Support / Re: ubuntu installation with mysql
March 13, 2025, 11:18:42 PM
use netxms-dbdrv-mariadb instead, it's compatible
#55
Hello,

Yes, you can setup web interface and use browser for accessing that.

Download war file from https://netxms.com/download/releases/5.1/nxmc-5.1.4.war, and deploy it into java application server (e.g. Jetty9-12 or Tomcat9)
#56
Announcements / Re: NetXMS 5.1 patch release 4
March 03, 2025, 03:23:54 PM
Hi

yes, it's know issue, new build will be available shortly.

RPMs are already updated, DEBs are on the way.
#58
General Support / Re: Web console issues
February 25, 2025, 08:33:34 PM
You've downloaded wrong file, instead of nxmc  you are using the API war
#59
My guess is that DB is shutting down before the core process and netxmsd waits for connection to write cached information.

Add "After=" section to your unit override.
#60
There are comments by systemctl:

### Editing /etc/systemd/system/netxms-server.service.d/override.conf
### Anything between here and the comment below will become the new contents of the file

...

### Lines below this comment will be discarded


Your changes were just ignored.

Proper override should be something like this:

### Anything between here and the comment below will become the new contents of the file


[Unit]
After=network.target postgresql.service
TimeoutSec=900
... more overrides

### Lines below this comment will be discarded



But I want to point out that TimeoutSec=900 is default value in the unit file (check /lib/systemd/system/netxms-server.service)