NetXMS Support Forum

English Support => General Support => Topic started by: lweidig on July 03, 2012, 10:23:51 PM

Title: Threshhold
Post by: lweidig on July 03, 2012, 10:23:51 PM
We have a number of access units that will report back to us the current number of associations that they have and the maximum allowed associations for the unit.  We are trying to setup thresholds such that we get a warning at 75% capacity and critical at 90% capacity.  So I tried setting up an item like the following under the value field:

GetDCIValue($node, FindDCIByName($node, "MaxAssociations")) * 0.90

Function: Last polled value
Samples: 1
Function: > : greater then

It appears either my syntax is incorrect or the system does not perform evaluation for the Value field.  How can this be accomplished?  Thanks!
Title: Re: Threshhold
Post by: Victor Kirhenshtein on July 03, 2012, 11:24:34 PM
Value in thresholds can be only constant. You should create DCI which will use correct values and then use constants in thresholds. You can use transformation script to convert absolute value into percentage, like this:

$1 * 100 / GetDCIValueByDescription($node, "MaxAssociations")

Best regards,
Victor

P.S. It is planned to add scripting support to thresholds, but this functionality most likely will be available in version 1.2.3 only.
Title: Re: Threshhold
Post by: lweidig on July 04, 2012, 12:15:20 AM
Thanks for the reply, that of course gets the desired value as well for monitoring.  However, since we want to track absolute associations we now have to collect two points. 

Looking forward to the planned feature set of 1.2.3.  This is already my favorite monitoring system I have used due to how extensible it is with scripting and such - and I have tried MANY.  Only expect it to get better.  Keep up the good work.