Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

J

jermudgeon

@jermudgeon
Unfollow Follow
About
Posts
47
Topics
20
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • 3.2/3.3 DCI items not tied to nodes
    J jermudgeon
    Support

    Thanks Filipp.


  • 3.3 does not reconnect to postgres
    J jermudgeon
    Support

    The grep could afford to be a bit more detailed, for example, 'bin/netxmsd', as any open/tailed netxms log files will pass the grep and cause script failure later on.


    netxmsd-threads-8416.zip


  • 3.2/3.3 DCI items not tied to nodes
    J jermudgeon
    Support

    I have 82421 collectible DCIs and an additional 25552 that are missing a corresponding node.

    nxdbmgr check does not find and purge these.

    There do not appear to be any leftover data in the corresponding idata tables.

    select
        count(*)
        from items i
        left join object_properties p on i.node_id = p.object_id
        where p.name is null


  • 3.3 timescale upgrade procedure
    J jermudgeon
    Support

    Thanks, Victor.

    [jaustin@jaustin ~]$ nxdbmgr background-upgrade
    NetXMS Database Manager Version 3.3.285 Build 3.3-285-gfe2e9b646f (UNICODE)

    No pending background upgrades


  • 3.3 does not reconnect to postgres
    J jermudgeon
    Support

    Postgres backend is functioning, but netxms reports 'Server has lost connection with backend database'.

    sh dbcp
    netxmsd: sh dbcp
    0x7f8745e44780 04.May.2020 17:42:14 dbwrite.cpp:457
    0x7f873cbd5d80 04.May.2020 17:42:15 dcitem.cpp:1309
    0x7f873cbd5960 04.May.2020 17:42:05 syncer.cpp:238
    3 database connections in use

    Stuck since yesterday.

    sh q

    netxmsd: sh q
    Data collector                  : 0
    DCI cache loader                : 46673
    Template updates                : 0
    Database writer                  : 5
    Database writer (IData)          : 3354870
    Database writer (raw DCI values) : 28133
    Event processor                  : 1334
    Event log writer                : 0
    Poller                          : 1319
    Node discovery poller            : 1187
    Syslog processing                : 0
    Syslog writer                    : 0
    Scheduler                        : 0

    dbcp reset doesn't do much:

    netxmsd: dbcp reset
    Resetting database connection pool
    Database connection pool reset completed
    netxmsd: sh dbcp
    0x7f8745e44780 04.May.2020 17:42:14 dbwrite.cpp:457
    0x7f873cbd5d80 04.May.2020 17:42:15 dcitem.cpp:1309
    0x7f873cbd5960 04.May.2020 17:42:05 syncer.cpp:238
    3 database connections in use


  • 3.3 timescale upgrade procedure
    J jermudgeon
    Support

                   
    WARNING: Background upgrades pending. Please run nxdbmgr background-upgrade when possible.
    [jaustin@jaustin systems]$ nxdbmgr background-upgrade                                   
    NetXMS Database Manager Version 3.3.285 Build 3.3-285-gfe2e9b646f (UNICODE)
                                                                             
    Running background upgrade procedure for version 33.6
    Converting table idata_sc_default                   
    Converting table idata_sc_7     
    Converting table idata_sc_30                                                   
    Converting table idata_sc_90                                             
    Converting table idata_sc_180                                 
    Converting table idata_sc_other                                                                                                                                           
    WARNING:  terminating connection because of crash of another server process
    DETAIL:  The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corru
    pted shared memory.                                                                     
    HINT:  In a moment you should be able to reconnect to the database and repeat your command.

    ----

    I restarted the background-upgrade process and got this:

    RNING: Background upgrades pending. Please run nxdbmgr background-upgrade when possible.
    [jaustin@jaustin systems]$ nxdbmgr background-upgrade
    NetXMS Database Manager Version 3.3.285 Build 3.3-285-gfe2e9b646f (UNICODE)

    Running background upgrade procedure for version 33.6
    Converting table idata_sc_default
    SQL query failed (42P01 ERROR:  relation "v33_5_idata_sc_default" does not exist
    LINE 1: ...stamp(idata_timestamp),idata_value,raw_value FROM v33_5_idat...
                                                                ^):
    INSERT INTO idata_sc_default (item_id,idata_timestamp,idata_value,raw_value) SELECT item_id,to_timestamp(idata_timestamp),idata_value,raw_value FROM v33_5_idata_sc_default
    Background upgrade procedure for version 33.6 failed

    ----

    So apparently the upgrade process can't handle a resume, as it breaks on the tables that have already been migrated. (It had already dropped successful tables.)

    I manually completed the inserts from the remaining tables using ON CONFLICT DO NOTHING, and dropped the remaining v33_5 tables.

    However, the same problem exists -- I can't complete the upgrade because the v33_5 tables no longer exist.


  • NetXMS 3.3 released
    J jermudgeon
    Announcements

     🙂


  • Rate of deleted objects
    J jermudgeon
    Support

    Is there a way to speed up deletion of objects? syncer.cpp appears to be deleting objects one at a time.

    In this particular case, we're removing many individual interfaces prior to deletion of the parent node. The time to delete each interface is approximately 1 second, and then the next interface is queued for deletion.

    Is there no way to batch the deletions so they happen faster?


  • Large-scale NetXMS deployments?
    J jermudgeon
    Support

    Thanks again, Filipp. That's quite interesting; I'm seeing an average of 10x more objects per node than in your examples. This could be due to device types, of course. I will see if I can determine relative counts for different types of objects.


  • Large-scale NetXMS deployments?
    J jermudgeon
    Support

    Thanks Filipp — that's very helpful. Do you have object counts for the three deployments? I'm having more issues with high object counts than with high DCI counts.

    I am currently testing in the ~100k DCI range, and that's gone well for a number of months — working with TimeScaleDB.

    However, I began adding nodes (without adding significant DCIs) with many interfaces, and as my object count rose over 1 million (1,000,000) I began seeing escalating CPU usage that didn't seem to scale linearly, even with topology and route table scanning turned off.

    In addition, I'm having fairly pesky performance deleting objects, but not yet clear enough behavior to engage support.


  • Large-scale NetXMS deployments?
    J jermudgeon
    Support

    Given the lack of a comprehensive NetXMS scaling guide, I'm interested in talking with people who have NetXMS deployed in

    1. Deployments with horizontal load balancing of polling, discovery, etc.
    2. Deployments with large devices — hundreds of interfaces, thousands of MAC addresses
    3. Deployments with at least 5000 nodes, scaling up to 20k-30k nodes

    In particular, I'm looking for solid scaling values for:

    A) netxmsd RAM usage per node
    B) average nodes / poller (thread pool POLLERS) (in the context of avg DCI per node)

    I'm having issues around the 100k DCI mark, but it doesn't apear to be DCIs themselves that are the bottleneck.

    TIA
    Jeremy


  • Radwin discovery failing
    J jermudgeon
    Support

    Saw that, Victor -- you rock! Thanks.


  • Radwin discovery failing
    J jermudgeon
    Support

    Here is the promised capture file. (Regular SNMP polling stripped out.) It shows the response to the discovery packet when ping3 is enabled, and the response when ping3 is disabled.


    ping3-radwin.pcapng


  • Netxms 3.1.261 and device discovery
    J jermudgeon
    Support

    Thank you, Filipp. Has anyone written such a script yet that you know of?


  • Netxms 3.1.261 and device discovery
    J jermudgeon
    Support

    I have a large class of devices (perhaps mostly Cisco?) that are failing discovery in an odd way.

    1. Devices are detected with isSNMP=Yes, GENERIC driver, and added to db
    2. Manual inspection shows that devices were added with SNMP 'public' community
    3. Devices respond to a snmpwalk using 'public' with the following:
      iso.3.6.1.2.1 = No more variables left in this MIB View (It is past the end of the MIB tree)
      Note that this is a different response than with an invalid string; with an invalid string, queries just time out. With this (ACLed) string, 'public' simply has no allowed views.
    4. Devices (and discovery) are configured with a *different* SNMP string which does actually work via a walk, but not via discovery.

    Is there a way to change discovery behavior to try 'public' *last*? There doesn't appear to be an order in the SNMP Configuration that's relevant.

    Is there a way to batch change configured SNMP communities on nodes? Batch 'properties' change doesn't seem to exist in the UI. Better yet, can I do this with NXSL? I'm not seeing an attribute that lets me check or set the SNMP community.

    Thanks


  • Valgrind log for 3.1.261-2; server crash
    J jermudgeon
    Support

    I believe we were simply running out of memory overall. In this dev environment it's sharing space with postgresql. In the latest release, my best guess is that netxms behavior changed, resulting in more concurrent database queries. I dramatically lowered the number of database pools in use, and so far netxms has been stable with no reduction in performance. (I am monitoring threads via DCIs.)


  • Valgrind log for 3.1.261-2; server crash
    J jermudgeon
    Support

    Ran with 1000 threads. Exited. Output log contains only six lines, a splash message from Memcheck (as launched by valgrind).


  • Netxms 3.x failing to reconnect to database
    J jermudgeon
    Support

    I'm running netxms 3.x with Postgresql 10 (timescaledb). Occasionally the database crashes and automatically restarts/recovers. However, netxmsd does not reconnect to the database. Are there any settings to tweak this? My understanding (reading old forum messages) is that netxms *should* reconnect, but it does not, and requires a full restart of netxmsd to reconnect to the db.


  • Valgrind log for 3.1.261-2; server crash
    J jermudgeon
    Support

    Netxms server consuming RAM and crashing. Valgrind log attached.

    Options:
    valgrind --log-file=/home/jaustin/vg.log --leak-check=full --undef-value-errors=no netxmsd -D3


    vg.log


  • netxmsd 3.1 crashing on startup
    J jermudgeon
    Support

    2019.12.04 07:52:28.425 *D* [                  ] Started topology poll for node <snip> [12506]

    Thread 495 "$POLLERS/WRK" received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 0x7fff7258a700 (LWP 25764)]
    Node::reconcileWithDuplicateNode (this=this@entry=0x7fffb038a000, node=0x7fffa56ed000) at node.cpp:3512
    3512 node.cpp: No such file or directory.
    (gdb) bt full
    #0  Node::reconcileWithDuplicateNode (this=this@entry=0x7fffb038a000, node=0x7fffa56ed000) at node.cpp:3512
            i = 6
    #1  0x00007ffff79d73c4 in Node::configurationPoll (this=0x7fffb038a000, poller=0x7fff7968bf80, session=0x0, rqId=0) at node.cpp:3230
            duplicateNode = 0x7fffa56ed000
            reason = L"Primary IP address 23.235.105.154 of node js1.northpointe01.mxu.acsalaska.net [43621] found on interface vlan.1997 of node js1.northpointe.cpe.lec.mgt [45588]", '\000' <repeats 152 times>...
            dcr = <optimized out>
            hypervisorType = L'\000' <repeats 31 times>
            hypervisorInfo = L"Primary IP address 23.235.105.154 of node js1.northpointe01.mxu.acsalaska.net [43621] found on interface vlan.1997 of node js1.northpointe.cpe.lec.mgt [45588]", '\000' <repeats 97 times>
            type = <optimized out>
            oldCapabilities = <optimized out>
            szBuffer = L'\000' <repeats 3494 times>...
            modified = 0
            __pollStartTime = 1575478327685
            __pollState = 0x7fffb038a768
    #2  0x00007ffff796e3d2 in DataCollectionTarget::configurationPollWorkerEntry (this=0x7fffb038a000, poller=0x7fff7968bf80, session=0x0, rqId=0)
        at dctarget.cpp:1560
    No locals.
    #3  0x00007ffff793f621 in __ThreadPoolExecute_Wrapper_1<DataCollectionTarget, PollerInfo*> (arg=0x7fff79691420)
        at ../../../include/nms_threads.h:1346
            wd = 0x7fff79691420
    #4  0x00007ffff698d337 in ProcessSerializedRequests (data=0x7fff796913c0) at tp.cpp:466
            rq = 0x7fff79691440
    #5  0x00007ffff698d10e in WorkerThread (arg=0x7fff7a780390) at tp.cpp:186
            rq = 0x7fff796913e0
            waitTime = 256899072
            p = 0x7fff7dc00000
            q = 0x7fff7dc06000
            threadName = "$POLLERS/WRK\000\000\000"
    #6  0x00007ffff4ec04a4 in start_thread (arg=0x7fff7258a700) at pthread_create.c:456
            __res = <optimized out>
            pd = 0x7fff7258a700
            now = <optimized out>
            unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140735111800576, 7851966113022693045, 140736350368030, 140736350368031, 140735111536640, 3,
                    -7851694838165582155, -7851990439467594059}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0,
                  cleanup = 0x0, canceltype = 0}}}
            not_first_call = <optimized out>
    ---Type <return> to continue, or q <return> to quit---
            pagesize_m1 = <optimized out>
            sp = <optimized out>
            freesize = <optimized out>
            _PRETTY_FUNCTION_ = "start_thread"
    #7  0x00007ffff3a15d0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
    No locals.
    (gdb)

  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups