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

#16
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'
#17
  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'
#18
Thanks Victor - that did it!
#19
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
#20
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?
#21
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.
#22
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!
#23
General Support / Re: Web Service Monitoring
July 10, 2024, 06:29:15 PM
I installed the agent on the server and enabled netsvc subagent. I then specified the server itself as "Source node Override" but it still appears to not be pulling any status codes.
#24
General Support / Web Service Monitoring
July 01, 2024, 09:23:05 PM
Hello all,

I am trying to monitor the status of a door access controller by using a DCI that monitors the status of its web UI as ICMP is blocked. I used the NetworkService.Status and relevant URL, but my DCI goes inactive and does not pull a status code. I have verified that the web page loads on the NetXMS server itself.

Any suggestions?



#25
General Support / Re: PDU SNMP Parsing
March 19, 2024, 04:56:04 PM
This works beautifully. Thanks so much, Filipp!
#26
General Support / Re: PDU SNMP Parsing
March 18, 2024, 09:07:29 PM
V returns a valid result namely the full OID value "type=Master,,voltage=121.0,current=0.000,activePower=0.000,powerFactor=1.000,energy=3.446,temperature=-1,humidity=-1

I thought the next function was stuck on the second comma because the only result I get for b is "type=Master" That led me to try this

function main(oid, name) {
  transport = $node->createSNMPTransport();
  if (transport == null) return null;
  v = transport->getValue(oid);
  z = string(v);
  x = substr(z, 13);


  h = %{};
  for (a : x->split(",")) {
    b = a->split("=");
 println(b);
    if (b->size == 2) h = b[1];
  }
    return h[name];
}


Apparently I can't change the value to a string before passing it to h.
#27
General Support / Re: PDU SNMP Parsing
March 15, 2024, 04:34:48 PM
So the error I got when I tried executing it was "Error 35 in line 10: Hash map key is not a string"

I thought I could just turn it into a string with

string(b);

However, I still get the above error.





#28
General Support / Re: PDU SNMP Parsing
March 11, 2024, 08:45:05 PM
Thanks for the help, Filipp.

I tried to make a DCI with this script as the origin and I noticed that it keeps on disappearing from my Data Collection list a moment after hitting Apply and Close. Any suggestions?
#29
General Support / PDU SNMP Parsing
March 08, 2024, 04:21:30 PM
Hello all,

I have a PDU that I am trying to monitor power usage and temperature for, but the oid that I utilize for this purpose reports data in one long string string like this -

type=Master,,voltage=121.7,current=0.136,activePower=0.007,powerFactor=0.422,energy=2.893,temperature=23.3,humidity=30.7

What would be the best way to separate all of these data points into different DCIs?

#30
General Support / Monitoring Mikrotik Temperatures
July 11, 2023, 09:44:36 PM
Hey all,

I'm trying to monitor temperature on my Mikrotik devices using the attached template configuration, but not having much success. Does anyone have any suggestions?