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 - twparker

#1
General Support / Re: Port Negotiation Template
August 29, 2025, 04:31:24 PM
Thanks tolimanjo. That limited it, but it seems that I can't call the variable interface.name for the display name.
#2
General Support / Port Negotiation Template
August 26, 2025, 10:40:28 PM
Hello,

I'm trying to setup a template that collects port negotiation rates on Mikrotik devices. I get the info that I want on physical ports, but I get 0 results on virtual interfaces. I would like to filter out virtual interfaces so DCIs are not being created.

transport = CreateSNMPTransport($node);
if (transport == null)
 return false;
// get the interface name to return as instance-name
vb = SNMPGet(transport, ".1.3.6.1.2.1.31.1.1.1.1." .. $1);
if (vb == null) or (vb == 0)
 return false;
// filter out loopback
if (vb.value == "lo")
 return false;
return %(true, $1, vb.value);


I've tried using contains(vb.value, "vlan") on the bottom statement, but that just breaks the script.
#3
Quite a few of these cameras were added to NetXMS when they were already offline. They then all polled down as they were checking for SNMP. I terminated the first alarms as I knew they didn't have SNMP functionality, but I have been unable to get them to change status based on ICMP either. They have also been offline since addition so I figure that would be why their status is not changing. 
#4
It is indeed.
#5
 
IDTimeOrigin timeOriginSourceZoneDCIEventSeverityMessageEvent tagsRoot ID
4805606211.05.2025 06:03:4711.05.2025 06:03:47System4th Fl Stair 2Default0SYS_ICMP_UNREACHABLEMajorNode is unreachable by ICMP48056060
4805606111.05.2025 06:03:4611.05.2025 06:03:46System4th Fl Stair 2Default0SYS_NODE_CRITICALCriticalNode status changed to CRITICALNodeStatus0
4805606011.05.2025 06:03:4611.05.2025 06:03:46System4th Fl Stair 2Default0SYS_NODE_DOWNCriticalSite:Vicina Main 4th Fl Stair 2 is unresponsive - 10.1.102.1710

So it looks like ICMP status check updates for cameras that were added when they were online.
#6
Offline Camera:
[12.05.2025 09:24:38] **** Poll request sent to server ****
[12.05.2025 09:24:38] Poll request accepted, waiting for outstanding polling requests to complete...
[12.05.2025 09:24:38] Starting status poll of node Tara Kitchen - 3
[12.05.2025 09:24:38]    Starting status poll on interface unknown
[12.05.2025 09:24:38]      Current interface status is NORMAL
[12.05.2025 09:24:38]      Starting ICMP ping
[12.05.2025 09:24:41]      Interface is NORMAL for 3659 polls (3 polls required for status change)
[12.05.2025 09:24:41]      Interface status after poll is NORMAL
[12.05.2025 09:24:41]    Finished status poll on interface unknown
[12.05.2025 09:24:41] Checking primary IP address with ICMP ping
[12.05.2025 09:24:45]   Primary IP address is not responding to ICMP ping
[12.05.2025 09:24:45] Node is still unreachable
[12.05.2025 09:24:45] Finished status poll of node Tara Kitchen - 3
[12.05.2025 09:24:45] Node status after poll is NORMAL
[12.05.2025 09:24:45] **** Poll completed successfully ****


Online Camera:
[12.05.2025 09:30:20] **** Poll request sent to server ****
[12.05.2025 09:30:20] Poll request accepted, waiting for outstanding polling requests to complete...
[12.05.2025 09:30:20] Starting status poll of node Tara Kitchen - 4
[12.05.2025 09:30:20]    Starting status poll on interface unknown
[12.05.2025 09:30:20]      Current interface status is NORMAL
[12.05.2025 09:30:20]      Starting ICMP ping
[12.05.2025 09:30:20]      Interface is NORMAL for 3813 polls (3 polls required for status change)
[12.05.2025 09:30:20]      Interface status after poll is NORMAL
[12.05.2025 09:30:20]    Finished status poll on interface unknown
[12.05.2025 09:30:20] Node is connected
[12.05.2025 09:30:24] Finished status poll of node Tara Kitchen - 4
[12.05.2025 09:30:24] Node status after poll is NORMAL
[12.05.2025 09:30:24] **** Poll completed successfully ****



I suspect that this is due to certain cameras being down when they were first added, but I would like for them to show down even if they never polled up when first added.
#7
Hello,

I am trying to monitor network security cameras that have no SNMP functionality. I set the objects to use ICMP to determine node status, but the objects don't generate alarms even though they are offline. I tried resetting the alarms using the link below:


https://wiki.netxms.org/wiki/Reseting_state_of_all_alarms_and_node_statuses

Cameras showing 100% ICMP packet loss show as normal and don't have any alarms even after alarm status reset. Any suggestions?

#8
It works beautifully now. Thank you so much, Filipp!
#9
Thanks, Filipp. That got me farther.


Traceback (most recent call last):
  File "create_nodes.py", line 17, in <module>
    node_name = data.strip()
AttributeError: 'list' object has no attribute 'strip'
#10
  Hey Filipp,

I didn't notice your response to this nearly 2 years ago. I don't know if this table structure is still useful, but it is what is exported from the Dude device list.


FlagNameAddressesMACTypeMapsServices DownNotes

I was revisiting this thread as I was trying to bulk import older devices we weren't previously monitoring into our NetXMS deployment. I figured that I could re-use this script, but I am running into errors now when I try to use it.

SyntaxError: no viable alternative at input 'admin'
#11
Thanks Victor - that did it!
#12
Thanks, Amay. I tried using the Script Library method, but the message is not displaying anything before the node macro.

%[GetContainerName]%n is unresponsive - %a

UVC G3Ext 2 is unresponsive - 10.1.110.166
#13
Hello all,

I would like to add the container name of a node to an alarm message, but I am not quite sure how to go about it. Any suggestions?
#14
General Support / Re: Mikrotik SFP Signal Monitoring
April 07, 2025, 07:45:02 PM
Thanks Amay!

My problem was that I didn't realize that the last digit was the index for the interface that I wanted to monitor. I can pull proper results for the individual DCI. I just need to figure out how to setup a template to automatically pull these values.
#15
General Support / Mikrotik SFP Signal Monitoring
March 28, 2025, 04:20:25 PM
Hello,

I am trying to setup DCIs to collect SFP transmit and receive power values for Mikrotik switches and routers and am running into some trouble. I used the SNMP Walk tool to search for the right OID, but didn't see the right OID listed. I then googled the correct OID and tried creating a DCI with that OID, but my DCI isn't collecting proper values - just zeroes. 

Quote1st / sfp1:
.3.6.1.4.1.14988.1.1.19.1.1.9.1
iso.org.dod.internet.private.enterprises.mikrotik.mikrotikExperimentalModule.mtXRouterOs.mtxrOptical.mtxrOpticalTable.mtxrOpticalTableEntry.mtxrOpticalTxPower.1

I would really appreciate any direction anyone could provide. Thanks!