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
fixed
#17
thanks for the report, I've forgot to move this hostname during migration to another server.
#18
General Support / Re: Mac version 6.0.0 not downloading
February 10, 2026, 01:45:12 AM
yes, it's know issue - package will be available tomorrow.
#19
There are no arm installer (yet), but you can download standalone jar file, install java, and launch jar file directly
#21
function GetTree(nodeID)
{
    obj = FindObject(nodeID);
    if (obj == null) return;
   
    children = obj.children;
   
    for (n : children)
    {
        if (classof(n) == "Node")
        {
            ifaces = n.interfaces;
            for (iface : ifaces)
            {
                if (iface.description ~= "WAN")
                {
                    println("Node: " .. n.name .. ", Interface: " .. iface.name .. ", Description: " .. iface.description .. ", IP: " .. iface.ipAddr);
                }
            }
        }
        // Рекурсия ВЫНЕСЕНА за пределы условия - обходим все контейнеры
        GetTree(n.id);
    }
}

GetTree(2);

Основные изменения:

- function вместо sub — современный синтаксис
- obj.children вместо GetObjectChildren(obj)
- . вместо -> для доступа к свойствам
- .. для конкатенации строк (вместо , в println)
- Рекурсия вынесена за пределы условия classof(n) == "Node"
#22
Общие вопросы / Re: FileSystem.Total
January 22, 2026, 12:45:58 PM
если появляются - значит instance discovery фильтр всё еще проходит. DCI удаляются автоматически, если для них фильтр вернул false. По умолчанию - через 7 дней.

Quote from: Argonauts on January 13, 2026, 11:27:07 AMКак мне удалить все DCI, что я наплодил с созданием DCI под instance discovery? Со временем они появляются обратно ::)
#23
Feature Requests / Re: IOS App
December 31, 2025, 01:39:19 PM
Well, it's still in the TestFlight. We need more feedback from users, right now it's a bit on a back burner
#24
Well, we always mention that it's just for the tests and extremely simple setups. SQLite is great for some use cases, but not this one.
Consider it's not available.


Quote from: cwl on November 22, 2025, 11:10:02 AM
Quote from: Filipp Sudanov on November 21, 2025, 03:43:38 PMIs this still with SQLite?
But generally speaking if SQLite is provided as an option - it has work correctly.
#25
update alarms set alarm_state=3 where alarm_state <> 3;
Quote from: Argonauts on November 10, 2025, 09:50:21 AMАктивных алармов 187к -_-
Я могу их как-то скопом потушить? С момента развертывания не трогали алармы
#26
General Support / Re: Sending alarms to N8N?
October 21, 2025, 11:16:19 PM
also you don't need "function main()", just write code.

something like this:

source = FindObject($alarm.sourceObject());

j = JsonObject();
j.set("id", $alarm.id);
j.set("state", $alarm.state);
j.set("severity", $alarm.severity);
j.set("message", $alarm.message);
j.set("source", source ? source.name : "");
j.set("eventCode", $alarm.eventCode);
j.set("eventName", $alarm.eventName);

trace(0, j.serialize());

I highly recommend you to read https://www.netxms.org/documentation/nxsl-latest/.
#27
General Support / Re: Sending alarms to N8N?
October 21, 2025, 10:22:34 PM
There are no "Execute()" function in the NXSL, and you can't execute external commands in any way - that's by design.

What I'd do:
- create Action which runs external shell script to form  json and send query using curl. Pass required event fields as arguments to the script.
- add this Action to EPP (I'd create separate rule just for this integration - this way you can control what exactly being sent)

Or, you setup web service (Settings -> Web service definition), and call it from NXSL. But again, I'd use action for that, not hook.

Note on the json string escaping: instead of manual processing, you can use construct https://netxms.org/documentation/nxsl-latest/#class-jsonobject and produce perfectly valid json.
#29
General Support / Re: v5.1.3 Android Client
September 30, 2025, 10:38:21 PM
Quote from: tolimanjo on September 30, 2025, 05:41:40 AMI was getting the '500' error from the client when using HTTP, and a packet capture showed HTTPS style connection attempts to the server. Perhaps Android was trying to be helpful?
Anyway, putting an HTTPS-HTTP proxy in front of the server (and specifying https:// on the client) fixed the problem.

if protocol is not specified in the connection string, https:// is added.
#30
General Support / Re: "mysql.ddr"
September 26, 2025, 10:52:10 AM
apt install netxms-dbdrv-mariadb

then use DBDriver=mariadb