Calculated DCI with Multiple OIDs
-
Hello,
I have a question how can I calculate DCI with Multiple OIDs.
ifInOctets --> .1.3.6.1.2.1.2.2.1.10
ifSpeed --> .1.3.6.1.2.1.2.2.1.5I wnat to calculate the belows;
((ifInOctets) * 8 / ifSpeed) * 100
Could you le me know how can I make the script code?
Best Regards,
-Terry -
Hi!
First, you should create DCI for ifSpeed. Let's assume that it's description will be "Interface speed" (without quotes). After that, create DCI for ifInOctets, and create transformation script for it:
(($1 * 8) / GetDCIValue($node, FindDCIByDescription($node, "Interface speed"))) * 100If you will use different DCI description for ifSpeed parameter, change call to FindDCIByDescription accordingly.
You can also take a look at the following topic:
https://www.netxms.org/forum/index.php/topic,292.msg1495.html#msg1495
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