Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Sorikan

#1
General Support / Re: Sending alarms to N8N?
October 21, 2025, 10:03:11 PM
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;
}


#2
General Support / Re: Sending alarms to N8N?
October 20, 2025, 09:23:44 PM
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.

https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.webhook/#webhook-urls

Thanks.
#3
General Support / Sending alarms to N8N?
October 20, 2025, 05:58:32 PM
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!
#4
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!
#5
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
#6
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?
#7
Any thoughts?
#8
General Support / Re: "Dynamic" dashboard?
April 10, 2025, 09:11:50 PM
Actually it's more like 188 devices...
#9
General Support / Business Services - wipe data?
April 10, 2025, 09:11:27 PM
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?
#10
General Support / Re: "Dynamic" dashboard?
April 08, 2025, 11:47:42 PM
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.
#11
General Support / "Dynamic" dashboard?
April 08, 2025, 09:46:08 PM
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.
#12
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?
#13
Not a problem!
#14
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?
#15
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!