Ad Widget

Collapse

Exposing my ignorance of SNMP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zab_monkey
    Member
    • Mar 2010
    • 37

    #1

    Exposing my ignorance of SNMP

    Hi All,

    This is, well, going to be very ignorant of my and I apologise if I cause "Eyerolls" But I am wondering if someone can answer a couple of questions about SNMP trapping in Zabbix.

    I have got SNMP 'gets' working fine and monitor a number of devices and hosts using SNMP, however traps throw me a bit.

    I have a Cisco HA Firewall setup (Active/Passive for arguments sake) that I wont to know when it fails over in Zabbix.

    I have configured the device to send traps to the zabbix host, and can confirm that they are rx'd by using the snmptrapd running on the host (ie, I can see the firewall traps appear in the log file) so I have that all ok, but its getting Zabbix to recieve and understand them that I am having trouble with.

    Do I send traps to Zabbix directly? or does Zabbix use the snmptrapd on the host?

    I have read a couple of the cookbook/wiki items and have always come away slightly more enlightened but still not 100% sure. So I assume according to those wiki entries that I send traps directly to Zabbix (and not the local snmptrapd on the Zabbix server), and set up an item with a corresponding OID?

    Also, does Zabbix need to know about the MIB for the device I am monitoring? Or do I just need to really knwo the OID?

    Sorry if this has all be covered before, have had a search and people seem to ask how to get general SNMP working, but Traps seem less common.

    Any assistance would be great.

    Thanks!!

    JC
  • Rudd
    Member
    • Mar 2011
    • 69

    #2
    Have a look here: http://www.zabbix.com/wiki/howto/mon...a_new_solution

    Comment

    • zab_monkey
      Member
      • Mar 2010
      • 37

      #3
      Hmm...

      Thanks for pointing that one out, not sure how I missed it. (Eyes are painted on, surely)

      A question tho, the script that is proposed. Is that to run on the device/host SENDING the trap, or on the Zabbix Server recieving the trap?

      Cheers,

      JC

      Comment

      • Rudd
        Member
        • Mar 2011
        • 69

        #4
        My understanding, without actually having it set up yet, is that the script runs on the Zabbix server as an extension to the OS default trap handler. Basically an interface between snmptrapd and Zabbix

        Comment

        • zab_monkey
          Member
          • Mar 2010
          • 37

          #5
          Yea cool, I shall give it a try.

          Thanks man!

          JC

          Comment

          • zab_monkey
            Member
            • Mar 2010
            • 37

            #6
            Rudd,

            Many thanks, that Wiki Cookbook was perfect, worked like a treat. I am trying to streamline the data I get back and need to figure out the place/usefulness of the MIB's, but I am able to get traps in Zabbix, so thank you for the assist!

            Cheers,

            JC

            Comment

            • Rudd
              Member
              • Mar 2011
              • 69

              #7
              Sweet, nice to hear that worked for you. Kudos to the author of the script and wiki who so generously contributed the work.

              Comment

              • zab_monkey
                Member
                • Mar 2010
                • 37

                #8
                Yea, true. Props to the author!

                Comment

                • zab_monkey
                  Member
                  • Mar 2010
                  • 37

                  #9
                  Hi All,

                  As much as this was resolved by Rudd pointing out the great Wiki article, I did struggle a little getting my MIB modules read properly.

                  Just for completeness sake, I am linking the NET-SNMP doc that stepped me through it. It was so easy even I could do it! Just in case anyone else should have a similar query:

                  http://www.net-snmp.org/wiki/index.p...d_loading_MIBS

                  Thats all folks!!

                  Comment

                  Working...