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 - Alex Kirhenshtein

#46
General Support / Re: Java SubAgent and OPC UA
October 11, 2022, 02:57:57 PM
Fixed in ee84926388, will be included in upcoming 4.2 release
#47
General Support / Re: Java SubAgent and OPC UA
September 22, 2022, 11:37:58 PM
I just realised that we do not support Variant in the responce - we'll add support in future releases
#48
General Support / Re: Java SubAgent and OPC UA
September 22, 2022, 08:11:46 PM
You need to define section "OPCUA" and add one or more "Server" parameters. Format for server record is "name:[login[/password]@]url" (parts in square brackets are optional)
You can also change timeout from defaul 5 seconds (parameter "Timeout", in ms).

Example:

[OPCUA]
Timeout=5000 # timeout for network operations
Server=s1:opc.tcp://milo.digitalpetri.com:62541/milo # anonymous connection
Server=s2:[email protected]://milo.digitalpetri.com:62541/milo # login "user1", empty password
Server=s3:user1/[email protected]://milo.digitalpetri.com:62541/milo # login "user1", password "password"

Once configured, you can collect metric OPCUA.NodeValue(server name, node id), where "server name" is s1, s2, etc. (values from configuration).

Example:
❯ nxget 127.0.0.1 'OPCUA.NodeValue(s1,ns=0;i=2257)'
Variant{value=DateTime{utcTime=133058236247170000, javaDate=Wed Aug 24 17:07:04 EEST 2022}}
#49
What kind of error?
#50
General Support / Re: NetXMS update 2.2.10 to newest
September 22, 2022, 07:49:05 PM
Hi

Yes, it's supported. You need to install new packages, then run "nxdbmgr upgrade". Don't forget to backup first.

Error is quite unexpected, but to be honest - we never tried such jump with packages. Which distro and version you are running?

You can upgrade this way:
mkdir ~/nx-backup
cp -R /etc/netxmsd.conf /etc/nxagentd.conf /var/lib/netxms ~/nx-backup
systemctl stop netxms-server
nxdbmgr check
apt-get --purge netxms\*
apt-get install netxms-server netxms-dbdrv-pgsql # select correct DB driver, additional packages if needed
systemctl stop netxms-server
cp ~/nx-backup/nxagentd.conf ~/nx-backup/netxmsd.conf /etc/
nxdbmgr upgrade
nxdbmgr check
systemctl enable --now netxms-server
#51
General Support / Re: Java SubAgent and OPC UA
September 19, 2022, 05:29:38 PM
Also I found an issue with plugin packaging, so bundled jar might not work.
Replace $NETXMS_HOME/lib/netxms/java/opcua.jar with this version: https://cloud.radensolutions.com/s/WazFQAC3KrnJpTM.
#52
General Support / Re: Java SubAgent and OPC UA
September 19, 2022, 03:49:58 PM
Check agent's log on debug level 1 or higher, there should be lines like
2022.09.19 15:47:54.074 *D* [                  ] Initializing Java subagent
2022.09.19 15:47:54.074 *D* [                  ] JAVA: Default JVM: /Users/alk/.asdf/installs/java/zulu-17.32.13/zulu-17.jdk/Contents/Home/lib//server/libjvm.dylib
2022.09.19 15:47:54.074 *D* [                  ] JAVA: using JVM /Users/alk/.asdf/installs/java/zulu-17.32.13/zulu-17.jdk/Contents/Home/lib//server/libjvm.dylib
2022.09.19 15:47:54.095 *D* [                  ] Java SubAgent created

If JVM is not found, you can set it with parameter "JVM=..." in "JAVA" section.
#53
General Support / Re: Scheduled Task: Execute.Action?
September 19, 2022, 02:09:54 PM
You can execute any action which is provided by the ageng (e.g. System.Restart). Also you need to select target object (where action will be executed).

List of actions can be queried from the agent, either with "nxget -l AGENT_IP Agent.ActionList" or in the GUI - right click on the node, then select Tools -> Info->Agent->Supported actions
#54
Hi.

"pass" should be "password" in your config. Also debug tag "nc.*" should be "nc".

Correct confiration:

host=10.0.0.1
secondaryHost=10.0.0.2
login=user1
password=password1
mode=TEXT

mode can be either "TEXT" or "PDU". Secondary host is optional.

Sample session attached (added new notification channel and tried to send message to non-existing device):

Screenshot 2022-09-19 at 13.59.25.png
#55
I've build nddload which should be compatible with 4.1.420 packages. Please download it here: https://cloud.radensolutions.com/s/Y8AS9HWgXNb6BfY.
#56
It's missing from packages, I'll add it to next release.
#57
General Support / Re: Tip: Proxmox zpool status
August 25, 2022, 10:14:41 AM
thanks
#58
General Support / test
August 19, 2022, 11:26:26 AM
test
#59
General Support / Re: Report server - Windows
August 13, 2022, 11:22:33 PM
Jasper Reports is a 3rd-party product. All custom extensions (parameter types for GUI, etc.) are described the repository i've shared earlier.

Report designer is unrelated to the NetXMS and you should see TIBCO's guides.
Check section "Resources" at https://www.jaspersoft.com/products/jaspersoft-studio, specifically this video: https://www.youtube.com/watch?v=yRLvJgz9Dxk.

Alternatively, we can offer you custom development or training on both NetXMS and reporting. Plese contact [email protected] for offer.

Quote from: blairmc96 on August 12, 2022, 06:23:49 PM
Can I please get some help with this?
#60
General Support / Re: Report server - Windows
August 01, 2022, 09:26:18 PM
Simplest way is to copy any sample report, change name in file .project, then import into jaspersoft studio. Another way - copy, import, then rename project in the studio.
Once done, edit pom.xml and change "buildUuid" to any other UUID (it's used to distinguish between deployed reports).

Then open main.jrxml and start designing.

DB connection is provided by the reporting server or jaspersoft studio during development phase.
Fields are either defined manually, or you can click "read" in query editor.