Get interface speed in Threshold Script ?
-
I monitor traffic in Data Collection Configuration
Description: {instance-name} - Traffic Out (bits/s)
Parameter : .1.3.6.1.2.1.31.1.1.1.10.{instance}
Origin: SNMP - Unsigned Integer 64bit
Transformation : Average delta per second
Transformation script: $1 * 8
Instance Discovery : SNMP Walk - OIDs
Base SNMP OID: .1.3.6.1.2.1.31.1.1.1.1It's work ok.
I need add event when percent bandwidth reach.
I create Threshold script below but the "{instance}" seem to fail.$ifo = GetInterfaceObject($node, {instance}); $speed = $ifo->speed; if ($1/$speed*100 > $2) return true; else return false;How can i get {instance} value? or get interface speed from variables $dci, $node, $object?
-
In NXSL script you can use $dci->instance (or $dci->instanceData depending on your configuration) to get instance value.
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