issues with netxms

Started by nichky, August 04, 2025, 02:10:20 PM

Previous topic - Next topic

nichky

running with lot of issues using netxms:

- ssh - doesn't work, it is using the def one 22 , i have specidicate xxx (tool -> connect -> ssh-22 by def)
- graphe - its printing on some of the interfaces,  on 2 routers
- syslog doesn't work
- core is crashing (approximately every 1h)

the more i dig,  the more things doest worok

Alex Kirhenshtein

#1
SSH - you are mixing up ssh monitoring (when port from node properties is used) and object tools. Pre-configured object tool for SSH open default ssh client without specifying port. Tools are configurable in Settings -> Object Tools.

rest of the issues is not a bug report, we can't help you with this input, without proper details. I've already recommended you to read documentation, it's all covered there in details.
Regarding core "crash" - you need to configure logging to the file, and check why it's stopped and not starting.

System is working fine for years for our customers, in different environments, and with wire range of versions (oldest is still 3.9, if I remember correctly). But if you'll find condition which actually crash core or agents - please share minidump and logs, we'll look into it.

nichky

done, i will make that file ready and sedn it over.
Will that help to find out the issuss with  syslog and graphe?

please see about SSH:

https://www.netxms.org/forum/general-support/re-smtp-notification-has-been-enqueued/msg34678/#msg34678

nichky

Hi Alex,

I'm currently facing an issue with generating the .dmp file after a crash.
I've been able to run the following command successfully

netxmsd -D3 -f

However, when a crash occurs, the .dmp file is not being created.
This is my current netxmsd.conf:

# Configuration file generated on Wed Jul 30 14:51:14 2025
#

DBDriver=sqlite.ddr
DBName=C:\NetXMS\NetXMSDB
LogFile=C:\NetXMS\log\netxmsd.log


Let's also review my installation process to ensure it's correct:
Steps I Followed:
  • Downloaded:
  • During installation:
    • Database Type: SQLite
    • Database Path:
      C:\NetXMS\NetXMSDB
  • After installation, the NetXMS Core starts and works fine.



Problem:
When I tried following the official NetXMS documentation from here:
https://netxms.org/documentation/adminguide/installation.html#installing-from-rpm-repository
The Core service does not start properly after configuration.

Could you please review this and let me know if I'm missing something?



nichky

when i run netstat -an , do i need to see port 4701? 
i can only see 4700

Alex Kirhenshtein

2025.08.05 15:09:23.447 *I* [logger            ] Log file opened (rotation policy 2, max size 16777216)
2025.08.05 15:09:23.447 *I* [startup            ] Starting NetXMS server version 5.2.4 build tag 5.2-396-gbe46bc94fe
2025.08.05 15:09:23.452 *I* [startup            ] System time zone is AUS+10AUSEDT
2025.08.05 15:09:23.452 *I* [logger            ] Debug level set to 3
2025.08.05 15:09:23.454 *I* [config            ] Main configuration file: C:\NetXMS\etc\netxmsd.conf
2025.08.05 15:09:23.454 *I* [config            ] Configuration tree:
2025.08.05 15:09:23.454 *I* [config            ] config
2025.08.05 15:09:23.455 *I* [config            ]  +- server
2025.08.05 15:09:23.455 *I* [config            ]      +- DBDriver
2025.08.05 15:09:23.455 *I* [config            ]      |    value: pgsql.ddr
2025.08.05 15:09:23.455 *I* [config            ]      +- DBServer
2025.08.05 15:09:23.456 *I* [config            ]      |    value: 127.0.0.1
2025.08.05 15:09:23.456 *I* [config            ]      +- LogFile
2025.08.05 15:09:23.456 *I* [config            ]          value: C:\NetXMS\log\netxmsd.log
2025.08.05 15:09:23.457 *D* [startup            ] LIB directory set to C:\NetXMS\lib
2025.08.05 15:09:23.458 *I* [startup            ] System hardware ID 7769846E7CDDD8444067E3FFB9220D396182B9A6
2025.08.05 15:09:23.465 *I* [db.drv            ] Database driver "pgsql.ddr" loaded and initialized successfully
2025.08.05 15:09:23.469 *D* [comm.listener      ] SocketListener/LocalAdmin: Trying to bind on 127.0.0.1:21784/tcp
2025.08.05 15:09:23.469 *D* [comm.listener      ] SocketListener/LocalAdmin: Trying to bind on [::1]:21784/tcp
2025.08.05 15:09:23.470 *I* [comm.listener      ] SocketListener/LocalAdmin: listening on 127.0.0.1:21784
2025.08.05 15:09:23.470 *I* [comm.listener      ] SocketListener/LocalAdmin: listening on [127.0.0.1]:21784
2025.08.05 15:09:23.470 *D* [localadmin        ] Local administration interface listener initialized
2025.08.05 15:10:00.783 *E* [db                ] Unable to establish connection with database (could not connect to server: Connection refused (0x0000274D/10061)
 Is the server running on host "127.0.0.1" and accepting
 TCP/IP connections on port 5432?)


please read logs you've shared.

nichky


nichky

not sure what to say , its clear that there is some issue , is the way of installing right?

Alex Kirhenshtein

Quote from: nichky on August 05, 2025, 02:07:09 PMhave you spotted anything?

Sorry, I can't help you any further.

Your log literally says that connection with PostgreSQL server can't be established on localhost, port 5432 (default).

nichky


nichky

first log one was with database type: PostgreSQL -> CORE doest work at all

second log one is :SQLite -> CORE works for some time


Alex Kirhenshtein

2025.08.05 21:08:49.200 *E* [db.lock            ] Database is already locked by another NetXMS server instance (IP address: 10.100.99.34, machine info: ON-NIKOLA Windows 8 Build 9200)

Another instance of netxmsd is running. Kill all of them, the run "nxdbmgr unlock", then "nxdbmgr check".

https://netxms.org/documentation/adminguide/appendix.html#database-manager

nichky

noted, i will be doing that.

fyi: 10.100.99.34 is VPN- ip.
While netxms is running i'm doing VPN (work).
Would be a problem?

nichky

also i don't understand this part:
Windows 8 Build 920 - My laptop is Win 11