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

#16
Brief update: Looking at the netxms-client sources it seems that there is no setThreshods() method for DataCollectionItem. I think something like this needs to be added to org/netxms/client/datacollection/DataCollectionItem.java:

/**
* @param thresholds the thresholds to set
*/
public void setThresholds(ArrayList<Threshold> thresholds)
{
this.thresholds = thresholds;
}

Is that correct?
#17
General Support / java API: create threshold for DCI
January 28, 2021, 09:59:30 PM
Hi,

I'm using the java API to create DCIs. This works fine for the basic stuff like name, description, polling interval, etc. But how can I attach a Threshold object to the DataCollectionItem?

Thanks a lot,

Hendrik
#18
Hi,

I've got a router with a /64 IPv6 prefix and a Linux host connected to it. The linux kernel obtains an address using SLAAC and says it's a /64 (e.g. fd11:1111:1111:1111:abcd:abff:fecd:abcd/64). If I try to add both machines as nodes to NetXMS, the first works fine, but for the second I get an "ip conflict with node xxx" error.

What's the best solution for this setup?

Thanks,

   Hendrik
#19
Good idea, works fine! Thanks a lot!
#20
Ah, that works! Thanks!

But this triggers another question: My plan was to have a DCI that is updated every hour through SNMP polls and additionally through SNMP traps triggering PushDCIData() (whenever the value changes on the client). Is there a clever way of doing this? Maybe always use traps? Or can I update DCIs through SNMP traps using a different mechanism than PushDCIData()?
#21
Hi,

I'm trying to use PushDCIData() on NetXMS 3.2.400 to update DCIs based on SNMP traps, but even a simple test script doesn't do anything for me. This is what I do for testing:

PushDCIData($node,38620,1);

I've tried running this script manually ("node -> execute server script") or triggered by a trap. I've tried entering the DCI id manually (as shown above) or by using FindDCIByName(). I've verified that FindDCIByName() gives the correct output (print(FindDCIByName()). Whatever I do, the DCI remains unchanged.

Any ideas what I'm doing wrong?

Thanks,

        Hendrik