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

#1
Hi Filipp.

thanks for your reply.

$1 is current DCI value - this is matched to the "Eingehende Fehlerrate" DCI - but I need the value from the "Port Speed auf x/x/x"
So I can´t use $1 in this script.

DCI Template:



Data Collection in Node:




right?

#2
Hi Filipp,

sorry for the late response. Thanks for the example.

I use it now in Threshold Script.
The Script

1 dciDescription = "Port Speed auf 1/1/3";
2 portSpeed = GetDCIValueByDescription($node, dciDescription);
3
4 if (portSpeed->contains("HD")) return true;
5
6 return false;

is working - but everytime I restart the NetXMS Server I get an Error about the Script:

Script (DCI::xxx - xxx::10165::12568::ThresholdScript) execution error: Error 14 in line 4: Function or operation argument is not an object

Where´s my Misstake?

Thanks for your Help.




#3
Hi all,

I have a Event Processing Policy which send me an Alarm If a Networkinterface has more than 5 Errors / min. 
Now I want to filter that a Alarm is only generated when the Interface is not on halfduplex mode.

For both I have set a DCI.

Unfortunally I have no Idea how I can match the other DCI in the Filterscript...

Some Ideas?

Thanks a lot.

#4
General Support / Grafana - connection impossible
December 16, 2022, 02:16:09 PM
I´ve installed NetXMS 4.2.395, webui 4.2.398, Grafana 9.3.1. and the NetXMS Plugin 1.2.3 on the same Windows Server 2019.
I never used Grafana before.
Now I tried to connect to NetXMS with Grafana but get an error "HTTP error Gone"
The api is shown in the Browser correctly, The User is memebr of NetXMS admin Group
Could someone help me here?

#5
General Support / Re: Java SubAgent and OPC UA
December 16, 2022, 02:02:10 PM
Thanks Alex. 
#6
Quote from: Alex Kirhenshtein on October 25, 2022, 01:27:14 PMHello.

Since 4.2 web UI require servlet API version 4 (but not version 5!), and jetty9 does not support that. Looks like we forgot to update it in windows installer.

Simplest solution is to install either Jetty10 or Tomcat9 as a standalone product and deploy war file there.

Did you update the Windows installer in the next days, or did I have to use the Jetty or Tomcat alternative for the future?
#7
General Support / Re: Java SubAgent and OPC UA
September 20, 2022, 10:45:02 AM
Thanks a lot Alex!
The Agent is loaded now.
Could you please explain me, where I have to define the OPC UA Servers, and how I could connect to them and get data?

Here is my Log:
2022.09.20 09:27:31.565 *D* [                  ] Initializing Java subagent
2022.09.20 09:27:31.565 *D* [                  ] JAVA: Default JVM: C:\Program Files\Eclipse Adoptium\jdk-17.0.4.101-hotspot\\bin\server\jvm.dll
2022.09.20 09:27:31.565 *D* [                  ] JAVA: using JVM C:\Program Files\Eclipse Adoptium\jdk-17.0.4.101-hotspot\\bin\server\jvm.dll
2022.09.20 09:27:32.035 *D* [java.runtime      ] JavaBridge: Java VM created
2022.09.20 09:27:32.136 *D* [                  ] Java SubAgent created
2022.09.20 09:27:32.136 *D* [                  ] SubAgent.loadPlugin(opcua.jar)
2022.09.20 09:27:32.151 *D* [                  ] Loading plugin file "C:\NetXMS\lib\java\opcua.jar"
2022.09.20 09:27:32.220 *D* [                  ] Java plugin OPCUA (com.radensolutions.netxms.agent.opcua.OpcUaPlugin) loaded
2022.09.20 09:27:32.220 *D* [                  ] JAVA: subagent initialization started
2022.09.20 09:27:32.220 *D* [                  ] JAVA: exception in plugin OPCUA initialization handler: org.netxms.agent.PluginInitException: OPCUA servers not defined
2022.09.20 09:27:32.220 *D* [                  ] JAVA: subagent initialization completed
2022.09.20 09:27:32.220 *I* [subagents          ] Subagent "JAVA" (java.nsm) loaded successfully (version 4.1.420)
#8
General Support / Java SubAgent and OPC UA
September 19, 2022, 03:12:33 PM
Could someone explainme how to use Java Subagent to get Informations from OPC UA please?
I have configured my nxagentd.conf on the NetXMS Server, and Oracle Java 1.8 is installed.:

#
# NetXMS agent configuration file
# Created by agent installer at ********
#

MasterServers = *******
ConfigIncludeDir = C:\NetXMS\etc\nxagentd.conf.d
LogFile = C:\NetXMS\log\nxagentd.log
FileStore = C:\NetXMS\var
SubAgent = portcheck.nsm
SubAgent = ssh.nsm
SubAgent = winperf.nsm
SubAgent = wmi.nsm
SubAgent = java.nsm

[JAVA]
Plugin = opcua.jar

Seems that the Java Subagent is not loaded...