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

#76
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
#77
General Support / Re: ubuntu installation with mysql
March 13, 2025, 11:18:42 PM
use netxms-dbdrv-mariadb instead, it's compatible
#78
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)
#79
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.
#81
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
#82
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.
#83
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)
#84
Quote from: kronicklez on February 18, 2025, 03:57:32 AMHi,

May i know where is path location this  "netxmsd.service" this file?

I'm using ubuntu 22 server.

Thanks and appreciate your feedback


you can add override by running "systemctl edit netxms-server". It's not recommended to modify unit file directly - it might be overwritten by the upgrade.
#85
It's a leftover from really old times. We probably need to remove this option.

Web load configuration in the following order (e.g. "server" parameter, same for others):
1) from JNDI, java:comp/env/nxmc/server
2) "server" from the property file /nxmc.properties (from resources)
3) JVM property "nxmc.server" (e.g. you can run "java -Dnxmc.server=1.2.3.4")
4) environment variable NXMC_SERVER
5) then, if not found, and only for the server - try to look up the hostname "NETXMS_SERVER"
#86
А какая версия убунту? Возможно мы под нее просто не выкладываем уже пакеты.
#87
General Support / Re: LDAP SearchFilter syntax
January 21, 2025, 03:33:51 PM
Second one is correct. See screenshot.

I'd check that search base is wide enough.
#88
General Support / Re: LDAP SearchFilter syntax
January 21, 2025, 02:17:45 PM
(&(|(objectClass=user)(objectClass=group))(department=Department1))

you can even use wildcards there:

(&(|(objectClass=user)(objectClass=group))(department=Department*))
#89
General Support / Re: LDAP SearchFilter syntax
January 21, 2025, 11:11:06 AM
I usually filter by the base group, but you need to use ActiveDirectory(?) extensions to do it recursively, something like this:

(&(|(objectClass=user)(objectClass=group))(memberOf:1.2.840.113556.1.4.1941:=CN=...))
#90
Announcements / Re: NetXMS 5.1 patch release 2
January 09, 2025, 05:47:42 PM
Quote from: yordi on January 09, 2025, 05:46:47 PMHello,

Thanks Alex, i will (try) update to the latest Debian.
This server was wayback installed as a project for a internship, Linux is not my main server environment.

i Suppose this will not be a problem for Netxms to upgrade when i have Debian 12 installed ?

Thanks for your help !

greetings,
Yordi
Yes, there are packages for both Debian 11 and 12 in the repo.