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 - [email protected]

#1
Worked Alex, thanks millions.
#2
Dears,

Facing issues with WebUI configuration of NetXMS, on UBUNTU 24.02, with JETTY 12. and JRE 21.

I've followed all below steps, without any issues

1. sudo apt install default-jre
2. sudo curl -O https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-home/12.0.18/jetty-home-12.0.18.tar.gz
3. sudo tar -xvf jetty-home-12.0.18.tar.gz -C /opt
4. sudo ln -s /opt/jetty-home-12.0.18 /opt/jetty-home-12
5. sudo mkdir -p /opt/netxms-webui/{etc,logs} && cd /opt/netxms-webui
6. sudo java -jar /opt/jetty-home-12/start.jar --add-modules=ee8-deploy,gzip,http,http2,https,logging-logback,plus,server,ssl,work
7. sudo curl -o webapps/ROOT.war https://netxms.com/releases/5.2/nxmc-5.2.0.war
8. sudo keytool -genkeypair -alias jetty -keyalg RSA -keysize 2048 -keystore /opt/netxms-webui/etc/keystore.p12 -storetype PKCS12 -storepass Test@Fatmir123 -keypass Test@Fatmir123 -validity 3650 -dname "CN=netxms-webui, OU=Fatmir, O=Fatmir, L=Fatmir, ST=Fatmir, C=Fatmir"
9. sudo sed 's,# jetty.sslContext.keyStorePassword=,jetty.sslContext.keyStorePassword=Test@Fatmir123,' -i'' start.d/ssl.ini

After this I've edited conf service file, but because in my server didn't have jetty/jetty (user/group), I've added my current user. Now service is running, but page is unavailable (error 503)

systemctl edit --force --full netxms-webui.service

[Service]
Type=simple
WorkingDirectory=/opt/netxms-webui
Environment=JETTY_HOME=/opt/jetty-home-12
Environment=JETTY_BASE=/opt/netxms-webui
User=fts-fatmir
Group=fts-fatmir

I'm missing something, at least how to tell WebUI to access server, perhaps with specific User/Password in some configuration, but I cannot figure it out where.
If anyone has some ideas, in advance thank your very much

Best, Fatmir
#3
Hi All,

I have 2 PI devices where Mosquitto is running and I want to use one Windows machine with NetXMS agent, SubAgent MQTT to subscribe and collect the data.

In both PI devices, i can see in Mosquitto logs that NetXMS agent is logging succesfully. The nxagentd.conf file is configured to connect to 2 MQTT brokers and collect few Metrix..

The problem is that successful collection is happening only to one broker: if I put connection/Metrics of any of the brokers, everything goes fine. When I put connection/Metrics of both brokers, successful collection of DCI values is on the first one only, second shows errors.
In documentation it shows that you can subscribe to more than one broker, on same agent. Any idea how to do this?


MasterServers = <IP address of NetXMS server>
ConfigIncludeDir = C:\NetXMS\etc\nxagentd.conf.d
LogFile = {syslog}
FileStore = C:\NetXMS\var
SubAgent = mqtt

[MQTT/Brokers/pi_cz_gen]
Hostname = <here I'm putting IP address of MQTT broker>
Port = 1883
Login = admin
Password = *******

[MQTT/Brokers/pi_cz_gen/Metrics]
CZ_GEN.Telemetry.Battery = "tele/cz-gen/Battery"
CZ_GEN.Telemetry.Status = "tele/cz-gen/Status"

[MQTT/Brokers/pi_cf_gen]
Hostname = <here I'm putting IP address of MQTT broker>
Port = 1883
Login = admin
Password = ******

[MQTT/Brokers/pi_cf_gen/Metrics]
CF_GEN_3.Telemetry.GEN_CF_3_Battery = "tele/cf-gen/GEN_CF_3_Battery"
CF_GEN_3.Telemetry.GEN_CF_3_Frequency = "tele/cf-gen/GEN_CF_3_Frequency"
CF_GEN_3.Telemetry.GEN_CF_3_TotalPower = "tele/baa352c08d7f501c/GEN_CF_3_TotalPower"