DCI with Multiple OID
-
Hi,
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 would like to calculate the belows;
((ifInOctets) * 8 / ifSpeed) * 100
((ifOutOctets) * 8 / ifSpeed) * 100Could you le me know how can I make the script code?
Thanks a lot.
Maggio -
You should create two DCIs, and transform one of it using value from another. For example, define DCI for interface speed (.1.3.6.1.2.1.2.2.1.5.1); leave it as is. Then, define DCI for inOctets (.1.3.6.1.2.1.2.2.1.10.1), and set transformation script to
sub main() { ifSpeed = GetDCIValue($node, FindDCIByName($node, ".1.3.6.1.2.1.2.2.1.5.1")); return ($1 * 8 / ifSpeed) * 100; }See also this topic: https://www.netxms.org/forum/index.php/topic,289.0.html
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