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

S

Sorikan

@Sorikan
Unfollow Follow
About
Posts
21
Topics
10
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Sending alarms to N8N?
    S Sorikan
    Support

    I tried doing something like this, but kept hitting various walls, when using hook::alarmstatechange

    function main()
    {
      webhook = "https://my.host.hstgr.cloud/webhook-test/netxms-alarm";

      payload = "{"
          + "\"id\":\""        + ToString($alarm->id) + "\","
          + "\"state\":\""    + ToString($alarm->state) + "\","
          + "\"severity\":\""  + ToString($alarm->severity) + "\","
          + "\"message\":\""  + EscapeString(($alarm->message != null) ? $alarm->message : "") + "\","
          + "\"source\":\""    + (($alarm->sourceObject != null) ? EscapeString($alarm->sourceObject->name) : "") + "\","
          + "\"eventCode\":\"" + ToString($alarm->eventCode) + "\","
          + "\"eventName\":\"" + EscapeString(($alarm->eventName != null) ? $alarm->eventName : "") + "\""
          + "}";

      WriteLog(0, "Alarm JSON: " + payload);

      cmd = "curl -s -X POST -H 'Content-Type: application/json' -d '" + payload + "' " + webhook;
      Execute(cmd);
    }

    function EscapeString(s)
    {
      if (s == null)
          return "";
      s = Replace(s, "\\", "\\\\"); 
      s = Replace(s, "\"", "\\\""); 
      return s;
    }


  • Sending alarms to N8N?
    S Sorikan
    Support

    Thats not really a thing? I am trying to get all of the alarm information I can into N8N. You can see the documentation in the link below. I had attempted to build the JSON in hook::AlarmStateChange, but that appears to be a dead end at this point? I am now trying to just dump the data to a script with a shell notification channel - but I am not getting any actual alarm data in the fields yet.

    Link Preview Image
    Webhook | Nodes | n8n Docs

    Learn how to use the Webhook node in n8n. Follow technical documentation to integrate Webhook node into your workflows.

    favicon

    (docs.n8n.io)

    Thanks.


  • Sending alarms to N8N?
    S Sorikan
    Support

    Has anyone been able to come up with a way to send alarms to an N8N instance? I have tried Hook::AlarmStateChange, and a notification channel and nothing works. I was on 5.2.4 but upgraded to 5.2.6 to see if that opens anything up.

    I have been hitting up Google and all the LLM's, to no avail.

    I am attempting to sedn JSON from netxms to N8N.

    Thanks!


  • Infrastructure Container Auto Binds
    S Sorikan
    Support

    I have to think that others have gotten this to work, but neither myself, CoPilot or Grok have been able to. 

    'All' I want to do is bind nodes that may have, between various sites, an IP that could be in one of three subnets per site, and bind them to that specific container that has IP specific auto bind rules. 

    I cannot find any examples that point me in the right direction from within the past 2-3 years that get me any where.

    Does anyone have any code snippets that show this working like I am attempting to use it?

    Thanks!


  • Treat VLAN changes like port state changes?
    S Sorikan
    Support

    Wow does that look like a prepared response! 

    NetXMS is already displaying the VLAN information, and updating the vlans when they change on a node. How do I connect that polling data coming back from a node to a new event template?

    And if that was a prepared response, that means a lot of people have asked this question......

    Thanks,
    Mark


  • Treat VLAN changes like port state changes?
    S Sorikan
    Support

    For the life of me, I cannot figure out how I can treat VLAN changes like port state changes? Does anyone know by what method this can be done?


  • DCI Display Name not displaying on map?
    S Sorikan
    Support

    Any thoughts?


  • "Dynamic" dashboard?
    S Sorikan
    Support

    Actually it's more like 188 devices...


  • Business Services - wipe data?
    S Sorikan
    Support

    After setting up business services (which is pretty slick BTW) how do I clear out the data from the setup period so that my percentages are correct?


  • "Dynamic" dashboard?
    S Sorikan
    Support

    I am looking for a way to add a hundred nodes to a dashboard with DCI values and have three of them displayed with bar graphs and one dci displayed with a line graph (three temp's and one fan RPM).

    I would prefer not to do it manually. 

    Thanks.


  • "Dynamic" dashboard?
    S Sorikan
    Support

    I thought it was possible to create a dashboard with a DCI template / context and have the dashboard itself populated with nodes that you filter for. 

    Creating a dashboard that is applied to nodes of a specific type when you click on them is fantastic, but I am trying to wrap my head around how to have all of those nodes appear on a single dashboard without me having to manually add them? Or did I miss something in the docs?

    For example, I want all the netonix switch temperature readings on a single dashboard, then filtered by highest temp first.


  • Disable nodes to stay under the license limit
    S Sorikan
    Support

    Apparently I did not think this through. What can I do, now that I see all the unmanaged devices to disable / pause them so they do not count towards the license?


  • DCI Display Name not displaying on map?
    S Sorikan
    Support

    Not a problem!


    pic1-snmp.jpg

    pic2-map.jpg


  • Disable nodes to stay under the license limit
    S Sorikan
    Support

    How do I list all nodes that are unmanaged or past the license limit so that I can disable them and have only the nodes I ABOSLUTELY need up and running until I move off of a windows server?


  • DCI Display Name not displaying on map?
    S Sorikan
    Support

    I have the node being polled with working OID's, I see the values as applied to the node from the DCI template applied to it. The numerical values are displayed on the map, however the text inside the 'display name' filed of the DCI data source, which is SNMP is not displaying the text in the 'Display Name' field. 

    Am I doing something wrong? 

    Running on 5.2.0, currently on Windows as I run housekeeper in the background to delete old data so that I can export the DB and moved to a new Ubuntu install........

    Thanks!


  • Mikrotik OSPF Monitoring & Maps
    S Sorikan
    Support

    We are attempting to monitor our OSPF links with NetXMS, however NetXMS does not appear to be detecting OSPF on V6 or V7 routers? Is there a command or option I need to enable or turn on for this to work?


  • Displaying bandwidth in use - format data?
    S Sorikan
    Support

    Two versions ago I was able to properly display the bandwidth in use on a 10G Siklu 8010-FX link. I can now see and display the modulation of the link, 8.1G VS 10G etc, however I cannot seem to display the bandwidth in use. How can I format it or transform it to get, for example 1,864 G, or 1.8G? or 1864G? Below is what I am getting back from a connection pushing between 1.8G & 2.1G.

    OID: .1.3.6.1.2.1.31.1.1.1.6.2
    Value: 142325432749449
    Type: Counter64

    OID: .1.3.6.1.2.1.31.1.1.1.6.2
    Value: 142325432749449
    Type: Counter64

    OID: .1.3.6.1.2.1.31.1.1.1.6.2
    Value: 142324578443714
    Type: Counter64


  • Format String Byes/sec to mbps/sec
    S Sorikan
    Support

    I am trying to display this on a map, right alongside the radios modulation.


  • Format String Byes/sec to mbps/sec
    S Sorikan
    Support

    Apparently I have totally and utterly missed the boat on this one. I have been googling and experimenting for over an hour for something that should NOT be this hard. 

    I have a number in bits/sec (257402792) that I want to display as mbits/sec (2059.22), via a DCI template to apply to multiple devices. I am pulling the correct number from SNMP, and if I just display the bits/sec number it is correct. 

    However, I cannot, for the life of me figure out how I am supposed to do this with the format string field? All I see are references to %*d or %s. Why? What do they do? How does netxms process them? Where are the variables? How are they applied? All I can find is some oracle doc that just says "makes it a decimal". 

    Is there some part of the manual I am just not comprehending, or seeing? Is there some search term I am not thinking to use to link me to a post already in this forum? How can something this seemingly simple be completely left out of the manual? How am I not finding this documented anywhere?

    How can something this basic be seemingly missing?

    Any pointers would be appreciated.

    Thanks. 😠


  • Port Monitoring No Agent
    S Sorikan
    Support

    I have created a DCI template to pull metrics via snmp from Eth0 on a Siklu radio. I replicated the template OID's from the right click menu option "create data collection items".

    However, the DCI template appears to be unaware that the data is presented as 'packets from time X' and not 'all packets transferred ever on this interface' in order to display the current bandwidth on the link.

    How do I replicate what "create data collection items" does in my DCI template? I have gone through all the options and not found anything different between a radio Eth0 port via the template and creating it manually.

    Thanks!

  • 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