News:

We really need your input in this questionnaire

Main Menu
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: PDU SNMP Parsing
March 19, 2024, 04:56:04 PM
This works beautifully. Thanks so much, Filipp!
#2
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.
#3
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.





#4
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?
#5
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?

#6
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?

#7
General Support / Alarms based on Topology
May 22, 2023, 11:40:25 PM
Hello all,

I am attempting to limit alarms for nodes based on topology so I only receive alerts for the first node down in a chain. Would someone be able to point me in the right direction for this?

Thanks!
#8
Yes, that is exactly what I am using. If that is the case, are there other options for mass device imports for newer versions of NetXMS? I have about 1500 devices that I am currently tracking with the Dude that I need to migrate.
#9
General Support / Difficulty using the CSV Importer
April 27, 2023, 10:17:50 PM
Hello all,

I am very new to netXMS (using ver 4.3.5) so please be patient.  Currently working on migrating network monitoring for a WISP off of the Dude to netXMS. I figured the best way to go about this would be to import a csv from the Dude device list. I got the list to pass all the checks, but I am getting the following error -

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Error: NXCException - Access denied.

I verified that my credentials and IP address for the netxms server are correct. I appreciate any suggestions.