NetXMS Support Forum

English Support => General Support => Topic started by: rostyslav on December 05, 2012, 11:46:30 AM

Title: Threshold issue
Post by: rostyslav on December 05, 2012, 11:46:30 AM
Hello!

I have configured CPU temperature monitoring with ExternalParameter = CPU.Temperature(*):/usr/bin/sensors|egrep 'Core\s*$1' | cut -d+ -f2 | cut -d. -f1
It gives me the integer part of the core temperature. I've added return int32($1) to the transformation
I can build graphs based on this values, but when I try to generate alarm based on threshold "> : greater then" it is not working.
I suppose, despite the transformation, it processes the value as string, because "like/not like" thresholds seems to be working.
What can be done about this issue?

Any help appreciated!
Title: Re: Threshold issue
Post by: Victor Kirhenshtein on December 05, 2012, 02:15:20 PM
Hi!

You have to change DCI data type to "Integer".

Best regards,
Victor
Title: Re: Threshold issue
Post by: rostyslav on December 07, 2012, 11:15:10 AM
Thank you. It worked.