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

G

gdodd

@gdodd
Unfollow Follow
About
Posts
57
Topics
16
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Instance Discovery using Agent Table method
    G gdodd
    Support

    I created a script in the Script Library names ThreeCXServiceFilter (I changed from == "Auto" to like "Auto*" because some are "Auto (Delayed)")

    services = $node->readAgentTable("System.Services");
    if (services == null)
       return null;
    
    instances = %();
    for(r : services->rows)
    {
       name = r->get(0);
       startup = r->get(4);
       if (name like "3CX*" and startup like "Auto*")
          instances->append(name);
    }
    
    return instances;
    

    In my template I added a Data Collection Configuration. See the screenshots for that configuration.

    Let me know if you need anything else.


    dcc_general.png

    dcc_id.png


  • Table / List of Software updates
    G gdodd
    Support

    I have not set it up, but I can get you the link for the latest version (I could find):

    https://netxms.org/download/releases/3.7/netxms-reporting-server-3.7.116.zip


  • 3.9-235 server/agents can't upgrade "file transfer failed"
    G gdodd
    Support

    I asked for clarification on the agent upgrades here

    https://www.netxms.org/forum/announcements/netxms-3-9-version-3-9-298/msg30609/#msg30609

    You will need to update the agent with some other package manager/manually. Going forward, agent upgrades should work as intended.


  • NetXMS 3.9 version 3.9.298
    G gdodd
    Announcements

    OK, thank you for getting that fixed and for the extra details.

    I pushed out 3.9.298 using an alternate method. I was then able to use NetXMS Package Manager to essentially reinstall 3.9.298 without errors. I will take that as a good sign.


  • Table / List of Software updates
    G gdodd
    Support

    Hey, yeah, that makes more sense.

    I don't think there is a way to save log filters and I couldn't figure out any other work around/option.

    The closest I can see would be to use the Grafana integration
    https://www.netxms.org/documentation/adminguide/grafana-integration.html
    or setup the reporting server
    https://www.netxms.org/documentation/adminguide/reporting.html

    I have not used either of those so I don't know the difficulty of getting them setup. It might be more work than it's worth.


  • NetXMS 3.9 version 3.9.298
    G gdodd
    Announcements
    • Fixed bug in centralized agent upgrade on Windows

    Does that mean once server and agent are on 3.9.298, future centralized agent upgrades should work? Or should it work with just server on 3.9.298?

    I am trying to upgrade Windows agents 3.9.280 from Linux server 3.9.298 and get the "Agent's version doesn't match..." error message.


  • Table / List of Software updates
    G gdodd
    Support

    To save it the event listing, you can use the export to csv button in the upper right or use the shortcut key Crtl-Alt-X.


  • Instance Discovery using Agent Table method
    G gdodd
    Support

    I am running 3.8.382. I just tested the script as written in this post and it finished successfully. So I do not think it is a bug.

    Can you post your script and any error messages?

    Gary


  • Instance Discovery using Agent Table method
    G gdodd
    Support

    Works perfectly. Thank you!!


  • Instance Discovery using Agent Table method
    G gdodd
    Support

    I am trying to write a discovery filter script for Windows services that start with a common name and are set to auto startup. I have experimented with different things all day with no luck.

    Here is what I thought would work, but it does not

    name = $1->get(0);
    startup =  $1->get(4);
    if (name like "3CX*" && startup == "Auto")
    {
    	return true;
    }
    return false;
    

    I was hoping $1 would return a row but seems it does not.

    In the manual it says values are returned with ~~~ between them, but I am not sure how to read those in the script.

    Any assistance would be appreciated.

    Gary


  • Windows event log synchronization
    G gdodd
    Support

    Thank you for the detailed response. This is exactly what I needed.


  • Windows event log synchronization
    G gdodd
    Support

    Is there any available information regarding "Windows event log synchronization, server side parsing and agent side filtering" from the 3.6 release notes? It sounds like it is different than the Parser Definition file.


  • Select Object on Object Details
    G gdodd
    Feature Requests

    When looking at the Alarm Browser, Summary Tables, and probably others, you can right click and choose Object Details. It would be helpful if the Object was selected in the Objects tree to easily identify which customer Container the Object is located.


  • ca certificate and server certificate
    G gdodd
    Support

    https://www.netxms.org/forum/installation/agent-lost-contact/msg23736/#msg23736


  • Export to Excel all Nodes with specific SNMP Object OID
    G gdodd
    Support

    I do not see a way to export that list from the console.

    This entry may help to accomplish the export.

    Link Preview Image
    Using nxshell to automate bulk operations - NetXMS Wiki

    favicon

    (wiki.netxms.org)


  • Script for synology NAS
    G gdodd
    Support

    My guess is that raid_Status is NULL or some other value that does not match any of the cases.

    To catch this, add

        default:
          evt = "SYNOLOGY_RAID_STATUS_ERROR";
          details = "NO_STATUS";
    

    Assuming that allows the script to run, check that "raidStatus" is the Parameter and not the Description for the DCI you are getting the value from.
    Possibly the script is not being run on the node where the "raidStatus" DCI is located.


  • Maintenance column in db after upgrade
    G gdodd
    Support

    Seems if maint_event_id is greater than 0 the object is in maintenance mode. Looks like they are keeping track of more than a "yes/no" as just entering maintenance mode gives a value of 6335951 and if the object is scheduled for maintenance the value is 6335955.


  • NetXMS deletes interface and recreates it and sends notifications
    G gdodd
    Support

    Here is the Hook:CreateInterface script in the script library that I use to give you an idea:

    if ($1->name ~= "(?i).*Teredo.*|.*isatap.*|.*Loopback.*|.*Bluetooth.*|Local Area Connection\* 12|Local Area Connection\* 11|Local Area Connection\* 9|Local Area Connection\* 8|Local Area Connection\* 2|6TO4 Adapter|sit0") {
       return false;
    } else {
       return true;
    }
    

    You could add in tun1 to that list or whatever names you do not want to create.


  • Syslog in 2.2.10
    G gdodd
    Support

    I am fairly certain you will need a third party utility to send Windows Event logs to NetXMS in syslog format.

    Here is my understanding of the two parsers.

    On the agent, the parser (which is the *LOGWATCH) will look at the configured log and send a message for the server to create a NetXMS Event (as in, the events configured under Configuration/Event Configuration). You will not see this under Monitor/Syslog as the message is not syslog. You would see this under Monitor/Events. In other words, *LOGWATCH does not generate syslog messages, it generates NetXMS Events.

    On the server, the Syslog Parser will parse incoming syslog messages (which again, are not related to the above parser) and create a NetXMS event based on the criteria.


  • Schedule Maintenance with a script
    G gdodd
    Support

    Is there a way to schedule maintenance on a node from a script (or another automated way to schedule maintenance)?

    I want to automate putting the node into maintenance when a process has finished and closed, reboot the node, and then come out of maintenance an hour later. I can do everything I want except get the node out of maintenance.

    Thank you

    Gary

  • 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