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

#121
There are multiple approaches, but I preffer this one:

in EPP set custom attribute on the node with timestamp of the last log event (either via script action, or directly in rule's filter script), then add scheduled task with the script, which iterates over nodes and check if time in custom attribute is older than a threshold. If it's too old - use PostEvent to inject another event in to the system.

#122
Prefix /usr/local usually indicates that you built it from source. Run configure with additional "—with-oracle=/path/to/cliebt/library" and rebuild. 
Same for netsvc, looks like you are missing libcurl 
#123
Quote from: lroytman on May 17, 2024, 10:45:39 PMHi Victor,

Please, see here: https://netxms.org/documentation/nxsl-latest/#func-right
It says:  [color=rgba(0, 0, 0, 0.6)]This function is deprecated starting from version 5.0.[/color][color=rgba(0, 0, 0, 0.6)] Please use [/color]String::right()

Regards,

Leo

I've updated documentation to be more descriptive.
#124
Quote from: Maddog on May 20, 2024, 01:20:58 PMHi. Version 5.0.3 ( nxmc-5.0.3-aarch64.dmg ) is not available. Error 404 on download.
Thanks, fixed.
#125
Check MariaDB logs, it looks like a database problem (maybe just out of space?)
#126
Check windows event log, maybe nxdbmgr crashed
#127
5.0.2 is now available. Most likely this will be the last release of the legacy console, we'll push app for the new console in next few days.
#128
These scripts were not converted during migration (for multiple reasons, we'll handle that).

You can convert scripts using "nxscript -5" command.

Copy script from the chart into a file, then run "nxscript -5 file.nxsl", it will output updated script.
#129
Announcements / Re: NetXMS 5.0 released
May 08, 2024, 12:13:40 AM
5.0.2 in published
#130
Announcements / Re: NetXMS 5.0 released
May 08, 2024, 12:12:13 AM
Quote from: lpolstor on May 07, 2024, 07:22:30 PMTrying to install Netxms 5.0.1 on Ubuntu 24.04 Server, had some troubles installing
ref  Installation — NetXMS Administrator Guide (4.4.3)  ... ( I assum 5.0.1 version is on it's way..)



[color=#404040][size=2][font=SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, Courier, monospace]wget http://packages.netxms.org/netxms-release-latest.deb
sudo dpkg -i netxms-release-latest.deb
sudo apt-get update[/font][/size][/color]

but when I tried to install netxms-server I got the following list when I tabbed at the end of the prompt:

root@testhost:~# apt-get install netxms-
netxms-agent          netxms-base           netxms-dbdrv-sqlite3  netxms-release

Checked  Index of /ubuntu/pool/noble/main/ (netxms.org) and it contains less directories as the same for Jammy, example  Index of /ubuntu/pool/jammy/main/n/ (netxms.org)  has netxms and all the useful deb packages, however the noble one does not.

Regards
Lars Petter

Build for 24.04 is still on the way (there are some changes required and we were busy with other issues), but it will be available in next few days.
#131
General Support / Re: Bulk DCI removal
May 08, 2024, 12:09:10 AM
They should've been removed when instance DCI was removed from the template. Also "nxdbmgr check" should handle that, if I remember correctly.

Anyway, you can delete them either via API (e.g. using nxshell or custom java app) or by modifying database directly. I'd recommend API.

Something like this (do not run as-is, just an example):
for node in [o for o in session.allObjects if isinstance(o, objects.Node)]:
    c = session.openDataCollectionConfiguration()
    try:
        items_to_remove = []
        for item in c.items:
            if item.name == 'System.CPU.Usage':
                items_to_remove.append(item.id)
       
        for item_id in items_to_remove:
            c.deleteObject(item_id)
       
        if len(items_to_remove) > 0:
            c.commit()
    finally:
        c.close()
#132
General Support / Re: Signing Key
May 02, 2024, 05:56:39 PM
Hi

It's already renewed and uploaded a while ago.

I highly recommend to use netxms-release package, which update keys automatically.

Key locations:
https://packages.netxms.org/netxms-keyring.gpg -- binary keyring
https://packages.netxms.org/netxms.gpg -- armoured key

Also it's available from key servers.

Make sure that key is not imported into trusted keys (e.g. using apt-key), but is stored in separate key store, as recommended in recent Debian/Ubuntu.
#133
Driver is unrelated to templates, it's a loadable server extension which provide vendor (or device) specific information which is either not available via common SNMP OIDs, or not available via SNMP at all (like physical ports layout on the switch).
GENERIC is a default driver for all devices which works in standard way. In ideal world it would be the only driver in the system.

You can check sources here: https://github.com/netxms/netxms/tree/master/src/server/drivers.
#134
Пока никак, это требует небольшого изменения в коде драйвера.
#135
Please show output of "lsb_release -a" from that system