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

johnnyva

@johnnyva
Unfollow Follow
About
Posts
18
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Repeated updates of the software inventory since version 6.0.0 of Win Agent
    J johnnyva
    Support

    We have upgraded to netxms server 6.2.5 and netxms windows x64 agent to 6.2.5 and still seeing duplicate packages and also the warnings in the netxms server logs.


  • Repeated updates of the software inventory since version 6.0.0 of Win Agent
    J johnnyva
    Support

    Is there a fix for this?  I think this is happening to me on Windows Agent v6.0.5.


  • NetXMS 6.0 released
    J johnnyva
    Announcements

    @victor Also, the timestamp conversion will be a background task after netxms server/db upgrade?  If so, how will nxsl/rest api present the timestamps when not all timestamps have been converted?  Will we have a mix of seconds and millisecond timestamps or will netxms server convert seconds to milliseconds even if the db entry has not been updated by the background task yet?


  • NetXMS 6.0 released
    J johnnyva
    Announcements

    Could you please update docs pages (NXSL and admin guide) for where unix timestamps are in milliseconds vs seconds.  It feels like this could get confusing if there is a mix of unit when unix timestamp is referred to.

    I'm expecting that this (https://www.netxms.org/documentation/nxsl-latest/#class-datapoint) would be the only place that would have changed from seconds to milliseconds because this is the only place to get list of DCI datapoints including timestamp right?


  • Upgrade to 6.0.2 - Database upgrade fails
    J johnnyva
    Support

    When do you expect the next patch release to be available for this fix?


  • NetXMS 6.0 released
    J johnnyva
    Announcements

    Hey Victor will the change in idata/tdata timestamp to millisecond impact the REST API or NXSL dci values? i.e. will we see millisecond timestamp there as well or will we only see change in db?


  • NetXMS 5.2 patch release 5
    J johnnyva
    Announcements

    Hey Alex, I'd imagine we should also be checking for dupes on the tdata tables too right?

    @alk said in NetXMS 5.2 patch release 5:

    @spheron said in NetXMS 5.2 patch release 5:

    The script is running about 1h bevor i canceld it.


  • Unknown Object Attribute and Method
    J johnnyva
    Support

    Hey jp,

    I was thinking that maybe node was null, but then I think that would give a different error.

    What comes back if you print classof(node)?  I'm expecting it to be Node, but maybe its actually coming back as something else and not returning a node like the docs say.

    What server version are you running?


  • Discard Erroneous Values
    J johnnyva
    Support

    You might be using a DCI with integer data type and doing a delta transform?  If that's the case, you could change this DCI to be a counter data type which I believe handles overflows for you.


  • Disable route table polling globally
    J johnnyva
    Support

    As mentioned here https://www.netxms.org/forum/general-support/script-execution-error/ you may also need to add in check for object being processed in Hook::ConfigurationPoll script.

    if (classof($object) == "Node") $node->enableRoutingTablePolling(false);
    

  • DORMANT interface operational state
    J johnnyva
    Support

    Sweet sounds good!  Thanks for clarifying.


  • DORMANT interface operational state
    J johnnyva
    Support

    Should there be a new expected state to handle the DORMANT state?  It's not necessarily DOWN and its not UP.  Or is it considered DOWN?

    This is on a Cisco C1121-8PLTEP WAN Router.

    Its currently on what looks like a cellular interface (so 4G failover?).


  • Manage/Unmanage Node via nxshell
    J johnnyva
    Support

    Hey charly,

    You can use setObjectManaged which is a method on the session object https://www.netxms.org/documentation/javadoc/latest/org/netxms/client/NXCSession.html#setObjectManaged-long-boolean-

    You can do the following:

    Manage a node

    node = s.findObjectByName('testnode')
    s.setObjectManaged(node.getObjectId(), True)
    

    Unmanage a node

    node = s.findObjectByName('testnode')
    s.setObjectManaged(node.getObjectId(), False)
    

  • Millisecond resolution in NXSL
    J johnnyva
    Support

    Awesome! Thanks so much!


  • Debug console missing from NXMC after upgrade to 3.7
    J johnnyva
    Support

    In v3.8.166 they have java bundled in for windows nxmc which I thought was super handy https://netxms.org/download/releases/3.8/nxmc-3.8.166-win32-x64-bundled-jre.zip

    Or you can try OpenJDK 11 from here https://adoptopenjdk.net/ if you haven't already.


  • Millisecond resolution in NXSL
    J johnnyva
    Support

    If I wanted to capture the duration between two points in time within NetXMS using NXSL, is it possible to capture millisecond resolution?

    Currently I'm just using time() method at start and end time then calculating diff, but this only gives second resolution.


  • No output from AgentExecuteActionWithOutput
    J johnnyva
    Support

    Server environments:

    • Instance 1 = v3.8.166 on Ubuntu Bionic (AgentExecuteActionWithOutput doesn't work)
    • Instance 2 = v3.4.313 on Ubuntu Xenial (AgentExecuteActionWithOutput works)

    When executing nxsl script against Instance 1 environment, and running the following command, I get no output.  This has been a thing for a while (going off my poor memory, I'm sure it used to work, but I don't think it has since 3.6ish? but I could be wrong and maybe it's never worked...)

    println(AgentExecuteActionWithOutput($node, "echo test"));
    

    This should print out "test".
    When running this against our Instance 2 environment, I get the expected result (i.e. it prints out "test").

    This could be a agent config or setting somewhere but struggling to find it.

    Both servers have almost the same nxagentd.conf execpt for the MasterServers settings.

    Both have the following nxagentd.conf

    # Log File
    LogFile=/var/log/nxagentd
    
    # IP white list, can contain multiple records separated by comma.
    # CIDR notation supported for subnets.
    MasterServers=<redacted>,127.0.0.0/8
    
    SubAgent = filemgr.nsm
    
    [filemgr]
    RootFolder = /
    

    And when running the nxagentd -C on the working server instance, it does not contain any extra agent settings that might have been applied by agent policies.

    Any ideas?


  • Auto-bind script for new node
    J johnnyva
    Support

    Hey sNsReal,

    You could probably use the newly available creationTime attribute on the NetObj class (added sometime in v3) which is epoch of when the object was created.

    So on the container that you want nodes to autobind to, you could enable "Automatically bind nodes selected by filter to this container", and disable the unbind option.
    And your filtering script would be something like this:

    HOURS_IN_SECONDS = 3600;
    if($node->creationTime != 0 && (time() - $node->creationTime) < HOURS_IN_SECONDS) return true;
    

    This will bind nodes that have been created within the last hour.  So long as the node performs a config poll within that time, then it should bind.
    If it does not return true, then it will implicitly return null, and null means that it won't bind or unbind the node being processed.
    If the object was created prior to the CreationTime being added to NetXMS, then CreationTime will be 0.

  • 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