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

F

Benjamin Dill

@flytech-ben
Unfollow Follow
About
Posts
70
Topics
23
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Automatic Bind Rule for MSSQL servers
    F Benjamin Dill
    Support

    Im using this metric (deployed by a template attached to all Windows systems):

    ExternalMetric = MSSQL.InstalledInstancesCount:powershell -NonInteractive -NoProfile -Command "& { (Get-ItemProperty \"HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server\").InstalledInstances.Count }"
    

    Then you can use something like this in automatic bind/auto apply:

    value = $node.readAgentParameter("MSSQL.InstalledInstancesCount");
    return (value != NULL && typeof(value) == "int32" && value > 0);
    

  • Web API for Summary Table of Table DCI?
    F Benjamin Dill
    Support

    Oh nice, thank you. Maybe you can add this to the manual for future reference!


  • Timing issue with ExternalMetricProvider
    F Benjamin Dill
    Support

    Thank you, I did not know about this parameter! I will report back.


  • Timing issue with ExternalMetricProvider
    F Benjamin Dill
    Support

    We have some issues with ExternalMetricProvider:
    As some scripts need more time to run for collecting data, we query them by ExternalMetricProvider instead of ExternalMetric. This works ok, but these metrics switch to "Unsupported" from time to time, if the server queries the metric immediently after a system restart and the scripts from ExternalMetricProvider have not yet finished after NetXMS agent start. If script has finished the first time after agent startup, the metrics can be pulled without error and it works fine. 

    Is there a workaround to prevent this issue? I tried to switch the DCI to "Cached mode", but it looks like this does not make any difference.


  • Web API for Summary Table of Table DCI?
    F Benjamin Dill
    Support

    Are you sure about that there is no concept for DCI summary tables from table DCI? I am talking about this.
    In the meantime I wrote a script to query each DCI one by one and join the results to one table (the same way the summary table for table DCI works), so you can consider my question as answered.


    2025-08-28 08_11_15-Clipboard.png


  • Web API for Summary Table of Table DCI?
    F Benjamin Dill
    Support

    Thank you, I am working with the API already. I am asking about creating an ad-hoc summary table from a table DCI. I suspect this is not yet implemented.


  • Web API for Summary Table of Table DCI?
    F Benjamin Dill
    Support

    Is it possible to use the Web API for requesting an adhoc summary table for a Table DCI?
    https://netxms.org/documentation/adminguide/rest-api.html#adhoc-summary-table

    If yes, how?
    If no, what is the best way to export multiple Table DCI values to a CSV file automatically (meaning, by script)?


  • Server crash 5.1.3
    F Benjamin Dill
    Support

    I can confirm, this metric transform script crashes the server process:

    time = DateTime(253402297200);
    return time.format("%d.%m.%Y");
    

  • Server crash 5.1.3
    F Benjamin Dill
    Support

    I'm not so good at crash dump analysis but I tried it anyway. It look like the server crashes while NXSL tries to process an invalid timestamp?


    Screenshot 2025-01-31 161901.png


  • Server crash 5.1.3
    F Benjamin Dill
    Support

    I experienced some server crashes recently with version 5.1.3 on Windows. At the moment the server is up and running, but can you take a look at the crash dump?
    I suspected it has something to do with user support notifications, as we started using them the day before the crashed started.


  • Correlate events using EPP?
    F Benjamin Dill
    Support

    Thank you, I will experiment with that!


  • Node.js subagent
    F Benjamin Dill
    Feature Requests

    I realized that there is Python-subagent for scripting, but I can't find any examples how to use it or any documentation. Unfortunately I don't know much Python but I'm happy to learn.


  • mariadb.h missing?
    F Benjamin Dill
    Development

    Victor, thank you very much! I should have realized this myself...


  • mariadb.h missing?
    F Benjamin Dill
    Development

    Im talking about this:

    #ifdef _WIN32
    // Include our own wrapper header on Windows to avoid conflict with MySQL client library
    #include <mariadb.h>
    #else
    

    I see mysql.h included MariaDB library, but not mariadb.h?


  • Correlate events using EPP?
    F Benjamin Dill
    Support

    I saw a method "[correlateTo(eventId) ⇒ void" for events in the NXSL documentation.
    Can I use this method in the Event Processing Policy to correlate events "manually" ? I can imagine a few scenarios for which this would be very useful.
    Thanks in advance.


  • mariadb.h missing?
    F Benjamin Dill
    Development

    I'm building from source and I'm failing at the MariaDB database driver, because I can't find "mariadb.h". There is a comment about "your own wrapper header", thus I'm assuming this is not part of the MariaDB library.
    Is this file missing in the repo? 

    Link Preview Image
    netxms/src/db/dbdrv/mariadb/mariadbdrv.h at 1d3c9de01bf9df8a07189aebc4b5973c679dd206 · netxms/netxms

    NetXMS - Open Source network and infrastructure monitoring and management - netxms/src/db/dbdrv/mariadb/mariadbdrv.h at 1d3c9de01bf9df8a07189aebc4b5973c679dd206 · netxms/netxms

    favicon

    GitHub (github.com)


  • Thresholds on table metrics
    F Benjamin Dill
    Support

    I'm using table metrics extensively for collecting data which changes frequently, like running processes or some kind information on user sessions on a terminal server (instead of using instance discovery which I use for metrics which stay unchanged most of the time).

    I have an issue with table thresholds and I'm not sure if this is expected behavior:

    • Let'say, I'm monitoring the expiration date of TLS certificates with a table metric.
    • At some point the expiration date reaches the threshold and an event is generated.
    • On the system, the certificate is replaced with a new one and the old (expired) one is removed. This means, the table metric will drop the row for the expired certificate.
    • The issue is: The table metric still displays that the threshold has been reached, even if this row has disappeared.

    I understand that this is sometimes useful, but in this case the "row" for the expired certificate will never appear again and the threshold on the table metric is reached indefinitely. Even clearing the collected data won't reset this state.

    Is there some workaroud for this situation? If no, I would request a new option for table metrics to trigger the threshold "Deactivation event" for disappearing rows.


  • Source node override in template or with NXSL/custom attribute
    F Benjamin Dill
    Feature Requests

    See here Source node override with templates (netxms.org)

    With the new Collector object class I think this will be even more useful.


  • Bug in WebApi for zone objects?
    F Benjamin Dill
    Support

    We are using the WebApi for creating different objects. Creating new nodes or containers works without problems, but the API returns an error when creating a new zone. We are sending this JSON:

    {
        objectType: 6
        name: "NewZone"
        parentId: 1
    }
    

    We are setting parentId = 1, because the object "Entire Network" has object id 1. This returns an "Internal error" with code 46.

    I did take a look at the code and it seems impossible to create a node with parentId = 1.
    https://github.com/netxms/netxms/blob/62c5f9ec1837c93023a40a71781ea2c73037b4c9/src/client/nxapisrv/java/src/main/java/org/netxms/websvc/handlers/Objects.java#L377

    Can you check this?


  • Server crash on "Supported actions"
    F Benjamin Dill
    Support

    Ok, I did some further testing. As I said, I installed a blank server, but the agent had already some configuration pulled from our production server, and one setting trigged the crash apparently.
    The issue seems to be an "Action" with long command:

    Action = Test:echo abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@$%abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@$%abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@$%abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@$%abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@$%abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@$%
    

    Add this to the agent's configuration and the object tool "Supported actions" will crash the server process.

  • 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