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

#16
Announcements / Re: NetXMS 5.2 patch release 5
September 04, 2025, 04:50:46 PM
Quote from: Spheron on September 04, 2025, 12:09:30 PMIf i run then nxdbmgr background-upgrade i get the following errors:

DROP INDEX idx_tdata_7035
SQL query failed (42P16 FEHLER:  mehrere Primärschlüssel für Tabelle »idata_7046« nicht erlaubt):
ALTER TABLE idata_7046 ADD PRIMARY KEY (item_id,idata_timestamp)
SQL query failed (42P16 FEHLER:  mehrere Primärschlüssel für Tabelle »tdata_7046« nicht erlaubt):
ALTER TABLE tdata_7046 ADD PRIMARY KEY (item_id,tdata_timestamp)
SQL query failed (42704 FEHLER:  Index »idx_idata_7052_id_timestamp« existiert nicht):
DROP INDEX idx_idata_7052_id_timestamp
SQL query failed (42P16 FEHLER:  mehrere Primärschlüssel für Tabelle »tdata_7052« nicht erlaubt):
ALTER TABLE tdata_7052 ADD PRIMARY KEY (item_id,tdata_timestamp)
SQL query failed (42P16 FEHLER:  mehrere Primärschlüssel für Tabelle »idata_7089« nicht erlaubt):
ALTER TABLE idata_7089 ADD PRIMARY KEY (item_id,idata_timestamp)
SQL query failed (42704 FEHLER:  Index »idx_tdata_7089« existiert nicht):
DROP INDEX idx_tdata_7089
SQL query failed (42P16 FEHLER:  mehrere Primärschlüssel für Tabelle »idata_7096« nicht erlaubt):
ALTER TABLE idata_7096 ADD PRIMARY KEY (item_id,idata_timestamp)
SQL query failed (42P16 FEHLER:  mehrere Primärschlüssel für Tabelle »tdata_7096« nicht erlaubt):
ALTER TABLE tdata_7096 ADD PRIMARY KEY (item_id,tdata_timestamp)
SQL query failed (42704 FEHLER:  Index »idx_idata_7127_id_timestamp« existiert nicht):

There is one more problem - you already have duplicates in the idata_* tables.

Try this query to find them:

DO $$
DECLARE
    node_record RECORD;
    tbl_name TEXT;
    dup_count INTEGER;
    total_duplicates INTEGER := 0;
BEGIN
    FOR node_record IN SELECT id FROM nodes
    LOOP
        tbl_name := 'idata_' || node_record.id;
       
        IF EXISTS (
            SELECT 1
            FROM information_schema.tables
            WHERE table_schema = 'public'
            AND table_name = tbl_name
        ) THEN
            EXECUTE format('
                SELECT COUNT(*) FROM public.%I
                WHERE ctid NOT IN (
                    SELECT MIN(ctid)
                    FROM public.%I
                    GROUP BY item_id, idata_timestamp
                )', tbl_name, tbl_name) INTO dup_count;
           
            IF dup_count > 0 THEN
                RAISE NOTICE 'Table % has % duplicate rows', tbl_name, dup_count;
                total_duplicates := total_duplicates + dup_count;
            END IF;
        END IF;
    END LOOP;
   
    RAISE NOTICE 'Total duplicate rows found: %', total_duplicates;
END $$;
#17
These items are from standard template "Operating Systems/Windows".
this template create two metrics related to file system (FileSystem.FreePerc({instance}) and FileSystem.UsedPerc({instance})), both with enabled instance discovery.

More information on instance discovery: https://netxms.org/documentation/adminguide/data-collection.html#instance

Short summary: system query FileSystem.MountPoints from the agent to get all available mount points and create (or delete) new DCI for each instance. Since it's done in the context of the node, template column is set to the node itself.

In instance discovery, there is a filter, which can return true or false: create or ignore.
Default filter in the template add anything except CDFS.

There are multiple solutions, simplest is:
1) create new template, configure automatic apply, like in the original template
2) disable existing DCIs in the "Operating Systems/Windows" template. Status change is persisted even when we update system templates.
3) copy these DCIs to the new template and adjust instance discovery filter to your liking.



We plan to implement small changes to the scripting language which will allow creating hooks for standard templates, but for now you'll have to modify them.
#18
General Support / Re: v5.1.3 Android Client
August 17, 2025, 09:08:58 PM
It's fixed in upcoming 5.2.5
#19
SNMPv2-TC.mib is bundled.

UBNT-MIB is bundled as well, but we have older version -- and that's probably the reason.

I've renamed both from .txt to .mib and copied them to $NETXMS_HOME/share/netxms/mibs/, then nxmibc works just fine.

I'm pretty much sure upload via UI will work as well, once you'll update UBNT-MIB.mib. Future releases will include latest version, I've pushed this fix.
#20
General Support / Re: issues with netxms
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]
#21
General Support / Re: issues with netxms
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.
#22
General Support / Re: issues with netxms
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
#23
General Support / Re: issues with netxms
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).
#24
General Support / Re: issues with netxms
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.
#25
General Support / Re: issues with netxms
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.
#26
General Support / Re: Two Factor Authentication Fail
August 04, 2025, 03:31:54 PM
Yes, you can either request another admin user to reset it for you, or unlock and login as system.

But regarding TOTP - check server's time, maybe NTP stopped working and there is a drift.
#27
General Support / Re: core issus on windows
August 03, 2025, 12:55:52 PM
As I mentioned before - set log file location to a file and check why it's not staring. Or run "netxmsd -D3" from the command line to keep it in the foreground, in debug mode. Reinstall is never a solution.
#29
General Support / Re: SNMP communication issues
August 01, 2025, 03:35:38 PM
Quote from: nichky on August 01, 2025, 03:34:09 PMAlex - let we make it easy

from here:

https://netxms.com/downloads

what i need to install,  in order to be able to login by using the container?


YOU CAN'T LOGIN INTO CONTAINER.

Container does not contain neither server components, nor web.

Please read this: https://netxms.org/documentation/adminguide/concepts.html
#30
General Support / Re: SNMP communication issues
August 01, 2025, 03:27:27 PM
Quote from: nichky on August 01, 2025, 03:26:06 PMyes the one that i'm using is
/netxms-agent-mikrotik , so i need to install WebUI and acces :expose :8080/:8443.

are we on the same page?
you need to install server + web somewhere.
then you can add mikrotok to the system and collect data over SNMP.
agnet on the mikrotik is required only if you want to install it on the customer's firewall, for example (so you can get access to the NATed network)