Error in Transformation Script
-
Hello Victor,
I have configured netxms 1.2.2 with OID .1.3.6.1.2.1.67.2.1.1.1.5.0
when I am shutting down my radius server the OID value showing too high tps in the value columnwhen I am using following transformation script
if ($1 > 5000)
return 0;it is not working in transformation script
Thanks & Regards,
Dushyant Dave
-
-
Hello Dave,
I've tried out
if ($1 > 5000)
return 0;on a test DCI (on v1.2.3, though), and it seems to work as expected.
Are you sure the script is applied to radiusAccServTotalResponses, and not just only to the Requests DCI?
Also keep in mind that the script does not work retroactively; it will only change the results of the DCI after the change was made.If you can post some screenshots of the General and Transformation tabs of the DCI, maybe we can find something out of the ordinary there.
-
please find the script:
sub main()
{
if ($1 > 5000)
return 0;
} -
Please find attached screenshots version 1.2.2
-
you mean to say, I have to user version 1.2.3?
I can't see the history after putting this script. -
-
also you can debug with this trace function
sub main() { trace(1, "Raw value=".$1); if ($1 > 5000) return 0; }and if you start netxmsd with debug level 1 option you see raw value=xx in netxms logfile.
and set data type to integer because original data type is Counter 32bits
-
Hello SKYnv,
I have tried following script and it is running successfully.
if ($1 > 5000)
return 0;
else
return $1;thank you very much.

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