DCI transformation.
-
Im trying to convert a DCI that's in tenths of C under the transformation section.
Its not converting the value when i view object details --> Last Values section. thus far i have tried...
return (($1 * .1) * 1.8 ) + 32;
((int($1) * .1) * 1.8 ) + 32
return $1 * .1 * 1.8 + 32
$1 * .1 * 1. 8 + 32
Can anyone help? the $1 is pulled from SNMP INT value.
-
Hi!
Problem is that NXSL does not understand ".1" notation - you have to give it as "0.1".
Btw, you can check your scripts with nxscript command line tool:C:\Source\NetXMS\x64\debug>nxscript -r test.nxsl NetXMS Scripting Host Version 1.2.8 Copyright (c) 2005-2013 Victor Kirhenshtein syntax error, unexpected '.' C:\Source\NetXMS\x64\debug>Best regards,
Victor -
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login