NetXMS Support Forum

English Support => General Support => Topic started by: nichky on August 04, 2025, 02:10:20 PM

Title: issues with netxms
Post by: nichky on August 04, 2025, 02:10:20 PM
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
Title: Re: issues with netxms
Post by: Alex Kirhenshtein on August 04, 2025, 03:38:06 PM
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.
Title: Re: issues with netxms
Post by: nichky on August 05, 2025, 03:37:11 AM
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
Title: Re: issues with netxms
Post by: nichky on August 05, 2025, 06:04:19 AM
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:



Problem:
When I tried following the official NetXMS documentation from here:
https://netxms.org/documentation/adminguide/installation.html#installing-from-rpm-repository (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?

Title: Re: issues with netxms
Post by: nichky on August 05, 2025, 08:15:23 AM
see this:

netxmsd.exe -D3 -f (https://imgur.com/a/LgXUIzF) + 
log => https://we.tl/t-APGj03FpwP
Title: Re: issues with netxms
Post by: nichky on August 05, 2025, 02:01:12 PM
when i run netstat -an , do i need to see port 4701? 
i can only see 4700
Title: Re: issues with netxms
Post by: Alex Kirhenshtein on August 05, 2025, 02:04:40 PM
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.
Title: Re: issues with netxms
Post by: nichky on August 05, 2025, 02:07:09 PM
have you spotted anything?
Title: Re: issues with netxms
Post by: nichky on August 05, 2025, 02:11:32 PM
not sure what to say , its clear that there is some issue , is the way of installing right?
Title: Re: issues with netxms
Post by: Alex Kirhenshtein on August 05, 2025, 02:11:38 PM
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).
Title: Re: issues with netxms
Post by: nichky on August 05, 2025, 02:15:32 PM
how about this log (https://we.tl/t-Z6BLtpww94)?
Title: Re: issues with netxms
Post by: nichky on August 05, 2025, 02:21:01 PM
first log one was with database type: PostgreSQL -> CORE doest work at all

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

Title: Re: issues with netxms
Post by: Alex Kirhenshtein on August 05, 2025, 02:32:37 PM
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
Title: Re: issues with netxms
Post by: nichky on August 05, 2025, 02:39:48 PM
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?
Title: Re: issues with netxms
Post by: nichky on August 05, 2025, 02:47:18 PM
also i don't understand this part:
Windows 8 Build 920 - My laptop is Win 11
Title: Re: issues with netxms
Post by: nichky on August 06, 2025, 02:50:20 AM
Alex - we got some improvement


this is what i was getting,  and i had to reinstalled, in order to make it works:

"netxms the net cms core service on local computer started and then stopped.Some service stoped automaticly if they are not in use by other services or programs"

as per your advice  "nxdbmgr unlock", then "nxdbmgr check" fixed

see here (https://we.tl/t-c1bnuAs7xH) pls

it seems like the VPN cost the issues.
i will be not doing VPN just for make sure that this costed the issues
Title: Re: issues with netxms
Post by: nichky on August 06, 2025, 09:17:03 AM
Alex - i had some of CORE crashs today, what can u get from this log (https://we.tl/t-XBPMJyLdQY)?
Title: Re: issues with netxms
Post by: nichky on August 06, 2025, 02:07:02 PM
i'm really confused.
It looks like that port 5432 makes a lot of drama.
I did check that is PostgreSQL.
The interesting part is i dont have it installed on my laptop (both)
Title: Re: issues with netxms
Post by: nichky on August 06, 2025, 02:15:57 PM
that why i asked Alex check if i'm installing NetXMS properly, also i noted if i chouse  PostgreSQL the CORE doeset run at all.
Title: Re: issues with netxms
Post by: nichky on August 06, 2025, 03:59:18 PM
do u have anythign to add?
Title: Re: issues with netxms
Post by: nichky on August 06, 2025, 07:46:56 PM
probably nothing you can add.
Normal if i have issues with the basic install to ask for help.
Im  not only one having issues with that.
I did what u asked me to do.
Still having an issue (better then how it was)
Title: Re: issues with netxms
Post by: Alex Kirhenshtein on August 06, 2025, 07:50:15 PM
Yes, nothing I can add, tbh.

I've provided you with all the information and keywords, next step it only install it remotely for you.
Title: Re: issues with netxms
Post by: nichky on August 07, 2025, 12:21:44 AM
do we have that option , greate. Whenever you're ready - Thanks
Title: Re: issues with netxms
Post by: Alex Kirhenshtein on August 07, 2025, 12:23:34 AM
Quote from: nichky on August 07, 2025, 12:21:44 AMdo we have that option , greate. Whenever you're ready - Thanks
contact [email protected]
Title: Re: issues with netxms
Post by: nichky on August 07, 2025, 05:10:32 AM
emailed already

btw do u have tutorial of how to instal netxms on windows? 
I can see that there's tutorial of how to install on Ubuntu, how about win?