Polling Definitions
-
-
-
-
-
Could you please post exact script code and actual SNMP OID value? Script posted earlier looks correct, so I suppose some typo or similar error when defining OID.
Best regards,
Victor -
@lindeamon said in Polling Definitions:
how can i disable the agent polling for all the switches instead of checking it 1 by 1 ?
Unfortunately it's not possible.
Best regards,
Victor -
here is the exact script:
sub main()
{
return ($node->snmpOID == ".1.3.6.1.4.1.9.1.516"); //(this is the oid of the cisco 3750 switch)
}now it bind all of the nodes having this oid but it also adds nodes whith this oid .1.3.6.1.4.1.789.2.3 (this is the oid of netapp fas270).
-
Hi!
Yes, it's a bug in NXSL interpreter. It erroneously interprets OID as floating point number. As a workaround, you can replace == with like operation:
return ($node->snmpOID like ".1.3.6.1.4.1.9.1.516");Best regards,
Victor -
-
It's definitely a bug so it will be fixed in 1.1.6.
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