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

Topics - dkoppenhagen

#1
Hi guys,

I wanna call a script from the library inside of another script. Is this possible? And how can I handover some  values?

let's say I have the following two script in my library:
1.) SCRIPT::A which is called from server console with a praram like "exec SCRIPT::A my-param"
2.) SCRIPT::B

Now I want to call SCRIPT::A inside of SCRIPT::B also with a parameter.
Is this possible?

Best regards,
Danny
#2
General Support / Problem with DCI transform script
January 05, 2017, 10:48:34 AM
Hey guys,

I have a problem trying to transform a value which has been calculated from a script.
The script calculates the average CPU load over multiple CPUs.

It returns a float value (e.g. 41.34444444) which is the CPU load in percentage.
For displaying the data I want to transform this value so that it is displayed as "41.34444444 %".

Unfortunately the transformation doen't seem to work properly so in the object overview and in the view of last values I just see "41.34444444" (without "%").

Do you know what I configured wrong?

Thanks in advance.

Best regards,
  Danny

#3
Hey guys,

I am using the following rule automatic rule to add a template if a specific SNMP values has been found:


transport = CreateSNMPTransport($node);
if (transport == null) {
    return false;
}

value = SNMPGetValue(transport, ".1.3.6.1.2.1.25.4.1.0");
if (value == null) {
    return false;
}
else {
    return true;
}


This works so far pretty well.

But now I have some device where I want to check if specific processes are running on it.
I want to check via SNMP thecomplete hrSWRunTable (.1.3.6.1.2.1.25.4.2) if there is a process with a specific name (hrSWRunName has the OID .1.3.6.1.2.1.25.4.2.1.2).

So maybe I have to get all values form the tabel and then iterate over the entries and compare them. But I don't know how.

Do you have an idea how I should adjust my rule to find out if the process is running?
Maybe there is a better solution?

Btw: I am using NetXMS Version 2.0.7.

Thanks in advance guys.

Best regards,
Danny