Ad Widget

Collapse

Snmp - HP Proliant & Mibs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vadim-bzh
    Junior Member
    • Sep 2012
    • 3

    #1

    Snmp - HP Proliant & Mibs

    Hello everybody,

    I've configured Zabbix with Snmp, I can see all the list of snmps with "snmpwalk" command on the Zabbix server, it's ok for that.

    But now, I've installed HP Proliant Ilo and HP Insight Management on my client (HP proliant DL 360 G7), and I'd like to know if someone can explain me how to configure zabbix to receive HP snmps (Fan, Temp, ...)

    I've read that I need to download HP Insight Management mibs in zabbix server in one of theses folders:
    net-snmp-config --snmpconfpath
    /etc/snmp:/usr/share/snmp:/usr/lib/snmp:/root/.snmp:/var/lib/net-snmp

    But I'me not sure , someone have an experience with monitor hp mibs with zabbix ?

    Thanks for your help !

    Vadim
  • kevind
    Member
    • Sep 2011
    • 40

    #2
    Here's my template for monitoring the HP SNMP agents; it's a Zabbix 2.0 template (if you're using Zabbix 1.8, I don't know if you can use it). The primary template I use is "Template_HP_SNMP_Agent". The other one, "Template_HP_Blade_G7" contains some temperature monitoring items, but you probably won't need them because the "thermal condition" item in the first template will throw an alert if any of the temps get out of bounds.

    The items are defined with numeric OIDs, so they don't require the MIB files to work in Zabbix... but I recommend installing the MIB files anyway, so you can use snmpwalk and make sense out of the results. It's sometimes helpful to do that if an alert condition is set and it's not clear why. On RHEL or CentOS, you copy the mib files to /usr/share/snmp/mibs. The mib files you want are CPQHLTH-MIB, CPQIDA-MIB, CPQSINFO-MIB, CPQNIC-MIB, and I think we also have CPQSM2-MIB CPQRACK-MIB and CPQHOST-MIB.

    Don't bother messing with IPMI talking to iLO, you can get much more info via SNMP with the agents installed.

    -Kevin
    Last edited by kevind; 20-09-2013, 02:06.

    Comment

    • vadim-bzh
      Junior Member
      • Sep 2012
      • 3

      #3
      Hello Kevin, thanks for your help !!

      I've copied all *-MIB in my zabbix and put your template in Zabbix, half of items works.
      What I don't understand is that I receive HP snmp oids on my zabbix server but I can't see theses with snmpwalk command.

      Your item: the "Drive Array Logical Drive Status" works but when I launch:
      snmpwalk -v 1 -c MyCommunity CLIENT-IP | grep -i 1.3.6.1.4.1.232.3.2.3.1.1.4.0.1 (Oid correspond with this item)
      The command return me nothing... and it's the same with the key: cpqDaLogDrvStatus.0.1

      Do you have an idea ?

      Thank you !

      Vadim

      Comment

      • kevind
        Member
        • Sep 2011
        • 40

        #4
        If you just snmpwalk the IP address, it won't return everything; you need to point it to a place to start - usually a MIB and a starting point within the MIB. It can be a pain to find.

        Examples:

        snmpwalk -v 2c -c MyCommunity CLIENT-IP CPQIDA-MIB::cpqDriveArray
        snmpwalk -v 2c -c MyCommunity CLIENT-IP CPQHLTH-MIB::cpqHealth | grep Condition

        FYI some of the items in my template are only sampled once per day, such as firmware revision or memory module size (no need to sample those frequently). They'll return data if you wait (or set them to sample more frequently).

        -Kevin

        Comment

        • vadim-bzh
          Junior Member
          • Sep 2012
          • 3

          #5
          Hello Kevin,

          With "snmpwalk -v 2c -c" it works !!
          Thank for your template, it's ok for me.

          Now I'd like to have more informations like "disk space" but without zabbix agent, I don't want to have snmp+agent, maybe with agent &
          IPMI, I need to see that.

          Thanks for your help ;-)

          Comment

          • kevind
            Member
            • Sep 2011
            • 40

            #6
            We use the Zabbix agent in combination with the HP SNMP agents, they complement each other and work fine together. The HP agents give you info on the underlying hardware (thermal condition, intelligent drive array controller, etc.).

            The Zabbix agent gives you everything else, such as disk space, etc.

            Don't bother with IPMI, it's a real pain, and a waste of time because the HP SNMP agents give you much more and better information.

            Comment

            • exdirtfarmer
              Junior Member
              • Sep 2006
              • 3

              #7
              Error importing templates

              Sorry to dig up an old thread but this is exactly what I have been banging my head on for the last few days. I think I have all the pieces and have been able to snmpwalk the mibs.

              I am on Zabbix v2.0.0

              I get errors when trying to "import" these hp templates. Not sure if I am going about it correctly. I tried to import from Configuration --> Templates --> Import button --> choose import file --> browse to "zbx_export_template_HP_SNMP_Agent.xml". I left all the Rules as default but get ERROR: Import Failed

              below is cut/paste from failed import log info/ trimmed because of too many live links to post.


              Any Ideas??

              ----------------
              Created: Application "Drive Array" on "Template_HP_SNMP_Agent".
              Created: Application "HP SNMP Agent" on "Template_HP_SNMP_Agent".
              ltrim() expects parameter 1 to be string, array given [api/classes/CItemGeneral.php:326]
              mb_strlen() expects parameter 1 to be string, array given [include/func.inc.php:760]
              --------------

              Comment

              • tchjts1
                Senior Member
                • May 2008
                • 1605

                #8
                Originally posted by exdirtfarmer

                I am on Zabbix v2.0.0
                That may be your issue right there. If you look at the release notes for 2.0.1, 2.0.2, 2.0.3 and 2.0.4, they all have some fixes for importing. If you have the opportunity to upgrade to 2.0.4, that may fix your problem.

                If you have a test environment, that would be ideal, first.

                (Edit) - BTW, release notes are here.. http://www.zabbix.com/rn2.0.1.php

                Comment

                • exdirtfarmer
                  Junior Member
                  • Sep 2006
                  • 3

                  #9
                  Originally posted by tchjts1
                  That may be your issue right there. If you look at the release notes for 2.0.1, 2.0.2, 2.0.3 and 2.0.4, they all have some fixes for importing. If you have the opportunity to upgrade to 2.0.4, that may fix your problem.

                  If you have a test environment, that would be ideal, first.

                  (Edit) - BTW, release notes are here.. http://www.zabbix.com/rn2.0.1.php
                  Thanks, good suggestion, I do have a test system running 2.0.4.

                  Comment

                  • exdirtfarmer
                    Junior Member
                    • Sep 2006
                    • 3

                    #10
                    Imported Successfully into 2.0.4. so that was the issue. Thanks. Time to bite the bullet and upgrade.

                    Comment

                    • highbass
                      Junior Member
                      • Oct 2013
                      • 1

                      #11
                      Originally posted by kevind
                      Here's my template for monitoring the HP SNMP agents; it's a Zabbix 2.0 template (if you're using Zabbix 1.8, I don't know if you can use it). The primary template I use is "Template_HP_SNMP_Agent". The other one, "Template_HP_Blade_G7" contains some temperature monitoring items, but you probably won't need them because the "thermal condition" item in the first template will throw an alert if any of the temps get out of bounds.

                      The items are defined with numeric OIDs, so they don't require the MIB files to work in Zabbix... but I recommend installing the MIB files anyway, so you can use snmpwalk and make sense out of the results. It's sometimes helpful to do that if an alert condition is set and it's not clear why. On RHEL or CentOS, you copy the mib files to /usr/share/snmp/mibs. The mib files you want are CPQHLTH-MIB, CPQIDA-MIB, CPQSINFO-MIB, CPQNIC-MIB, and I think we also have CPQSM2-MIB CPQRACK-MIB and CPQHOST-MIB.

                      Don't bother messing with IPMI talking to iLO, you can get much more info via SNMP with the agents installed.

                      -Kevin

                      Hey Kevin,

                      I don't see an attachment for your template... is it possible you can kindly put a link up to it again?

                      Thanks,.

                      Comment

                      • kevind
                        Member
                        • Sep 2011
                        • 40

                        #12
                        I love Zabbix but this forum has a totally lame policy of discouraging the attachment of files to forum posts. My total limit over all posts is around 100K bytes. That's just crazy. I had to delete that template in order to post another one.

                        I'm told that I should post templates on the community wiki; I just tried to do that but I couldn't create an account. I kept getting the error message "There was either an authentication database error or you are not allowed to update your external account."

                        I'll try to upload it again when there's a way that works. Or PM me and I'll email it to you.

                        -Kevin

                        Comment

                        • jmusbach
                          Member
                          • Sep 2013
                          • 37

                          #13
                          Try uploading it to http://goput.it and post the link here.

                          Comment

                          • cosborn
                            Junior Member
                            • Oct 2013
                            • 3

                            #14
                            I am interested in this template as well. I don't have the ability to PM anyone in this forum. Is there another way for you to post this template?

                            Your help is greatly appreciated!

                            Comment

                            • kevind
                              Member
                              • Sep 2011
                              • 40

                              #15
                              OK, can't upload them here, so here are some links:

                              Template_HP_SNMP_Agents (for HP blades & servers):
                              http://goput.it/v/y4f.xml

                              Template_HP_Chassis (for HP Bladecenters):
                              http://goput.it/v/rnv.xml

                              -Kevin

                              Comment

                              Working...