Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. SNMP Traps

SNMP Traps

Scheduled Pinned Locked Moved Support
3 Posts 2 Posters 26.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F
    F
    fj89j
    wrote on last edited by
    #1

    Hi all

    I am trying to trap on BPDU protection on Procurve switches and the issue I am coming across is that the trap OID .1.3.6.1.4.1.11.2.3.7.11.79.0.2 seems to be used for a few other things, do I need to match by part of the string in the varbinds, specifically: .1.3.6.1.2.1.16.9.1.1.2.839

    Now, when I set this up, I get events firing for the OID only, not taking .1.3.6.1.2.1.16.9.1.1.2.839 into consideration.

    I am stating .1.3.6.1.2.1.16.9.1.1.2.839 under the parameters under Edit SNMP Trap Mapping.

    Here is an excerpt of the trap from a CSV export:

    "05.11.2013 13:33:50","10.1.1.1","switch",".1.3.6.1.4.1.11.2.3.7.11.79.0.2",".1.3.6.1.2.1.16.9.1.1.2.839 == 'I 11/05/13 13:34:25 stp: port 12 disabled for 1200 seconds - BPDU received on protected port.'"

    Also, it'd be really good to be able to get the trap information, like port number passed, so I could email the event.

    Any ideas where I am going wrong?

    Thanks

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      Events will be generated based on trap OID only. However, you can filter them later in event processing policy. For example, if you have .1.3.6.1.2.1.16.9.1.1.2.839 varbind mapped to event parameter, you can check if it is empty or not. Filtering script for event processing policy will be like

      return (($2 != null) && ($2 != ""));
      

      For notifications, you can just use %2 in e-mail action - it will be replaced by full varbind value. Alternatively, you can parse it in filtering script using regular expressions and pass required parts to the email.

      Best regards,
      Victor

      1 Reply Last reply
      0
      • F
        F
        fj89j
        wrote on last edited by
        #3

        Victor,

        Thank you.

        I'd like to say that although I've posted a few questions that are probably newbie questions, the responses from you have always been fast and spot on.

        I believe that the issue with most queries is user education on NetXMS. From using products (that shall rename nameless) in the past, it's refreshing to use a product that can pretty much do anything.

        If you need any labs equipment (mainly Cisco) for use on testing, let me know, happy to help.

        If you guys can get NetFlow into this beast so you can report on it, it'll truly be the only thing I'll ever need to use for monitoring.

        Thank you, again.

        1 Reply Last reply
        0

        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
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        Powered by NodeBB Contributors
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups