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 - Filipp Sudanov

#646
А можно тот же скриншот, что на Access Control.png, но выделить мышью группу Admins
#647
Here's nxshell script that does the same job. nxshell is Jython implementation of Java API. You need to install nxshell to use this, on Linux this is included in netxms-client package

To execute the script:
nxshell -u admin -P password create_nodes.py

import csv

print("=========================================================================================================")

with open('nodes.csv') as csv_file:
    reader = csv.reader(csv_file, delimiter=',')
    data = [row for row in reader]

Infrastructure = session.findObjectByName("Infrastructure services")
if Infrastructure is None:
    print("Infrastructure services not found")
    quit()

flags = NXCObjectCreationData.CF_DISABLE_ETHERNET_IP

for i in range(0, len(data)):
    node_name = data[i][0].strip()
    node_address = data[i][1].strip()
    node_container = data[i][2].strip()
    Container = session.findObjectByName(node_container)
    if Container is None:
        cd = NXCObjectCreationData(objects.GenericObject.OBJECT_CONTAINER, node_container, Infrastructure.objectId);
        node_container_id = session.createObject(cd)
        print('Container "{}" created, id={}'.format(node_container, node_container_id))
    else:
        print('Container "{}" already exists'.format(node_container))
        node_container_id = Container.objectId
    Node = session.findObjectByName(node_name)
    if Node is None:
        cd = NXCObjectCreationData(objects.GenericObject.OBJECT_NODE, node_name, node_container_id);
        cd.setCreationFlags(flags);
        cd.setPrimaryName(node_address)
        nodeId = session.createObject(cd)
        print('Node "%s" created, id=%d' % (node_name, nodeId))
    else:
        print('Node "%s" already exists' % (node_name))
#648
Access denied может быть и со стороны NetXMS сервера - если нет права "control" на этот объект. В принципе покажите, какие права есть на этот объект, может быть на работу с файлами тоже прав не хватает.

#649
First of all, there is built-in support for web services in NetXMS. It's possible to set up DCIs that get data from web services, but there's also ability to use them from NXSL scripts https://www.netxms.org/documentation/nxsl-latest/#class-webservice

It's probably not a good idea to have long operations in hook scrips, so I would call PostEvent() from NXSL and then have a rule in EPP that catches that event and calls server action which calls NXSL script.
#650
General Support / Re: Netflow supported?
April 25, 2023, 02:08:50 PM
Currently it's not supported. There are plans to implement it, but it's not clear how soon this could be. If, just in case, your company wants to sponsor this development, feel free to contact us.
#651
General Support / Re: netXMS server occupied space
April 25, 2023, 01:39:51 PM
First of all, you can check what exactly tables take the most space in your database, e.g. for MySQL: https://stackoverflow.com/questions/9620198/how-to-get-the-sizes-of-the-tables-of-a-mysql-database

Log retention time is set in Configuration -> Server configuration, search for "RetentionTime" there.
Next housekeeper run after you have changed retention times will delete records according to the new retention time.

But databases typically do not instantly return all freed space to the file system. Depending on the database, you might need to execute some command for data compacting, e.g. VACCUUM for postgres database.
#652
У меня не получилось повторить. В каких случаях это происходит, на ноде есть агент, или есть SNMP, что-то из этого перестает отвечать?
#653
The issue is with how the subject is parsed when we try to match the user which corresponds to the certificate. Code was written with openssl certs in mind, but for Microsoft certs subject is composed differently (has DC= serveral times, etc).
The certificate itself is validated ok, that's why there's no "validation failed" in the log, but server can not match certificate with a user, thus Access Denied.

Will fix
#654
General Support / Re: Attach device id to node
April 11, 2023, 04:19:31 PM
There's new asset management functionality coming in 4.4. There will be option to configure the fields and fill them in for each node. I think there should also be a search mechanism.
There's no mechanism to display these fields exactly on overview tab, but this could be achieved by a script DCI displayed there or by script macro called from commend field.

Also, when this will be implemented, these values could be put into built-in fields from configuration poll hook: https://track.radensolutions.com/issue/NX-2402

In current version you can either use a custom attribute or a push DCI (e.g. you can use script object tool to edit the value).
Searching could be done using "Find object" query, pls update if you need an example on this.
#655
General Support / Re: Find Switch Port - Bug
April 11, 2023, 01:46:33 PM
Should be fixed now, pls check most recent patch release
#656
General Support / Re: Agent Tables
April 11, 2023, 01:41:50 PM
And what is in Columns in table properties?
#657
Which Postgres and Timescale versions do you use?
#658
General Support / Re: DCI Retention
April 04, 2023, 12:11:22 PM
If you are opening history from last values, it's opening 4096 last values there. But under three dots icon in upper right corner you can select arbitrary date range.

Retention period for DCI is set in Data Collection Configuraiton, by default it's 30 days
#659
Yes, reporting process gets database credentials from netxmsd process. What is the value of DBServer= in your netxmsd.conf ?
#660
General Support / Re: Cisco Meraki MIB
March 14, 2023, 03:21:46 PM
MIB file and driver are two different things. MIB files just add textual oid and description in MIB browser.

Drivers exist for a limited number of devices (list of drivers is in the documentation: https://www.netxms.org/documentation/adminguide/snmp.html). Drivers do several things:
- provide some information that is not supported by generic driver, e.g. device geographical coordinates
- fix problems for devices that report something incorrectly under standard OIDs.

Are you having any issues with your Meraki devices under generic driver?