Ad Widget

Collapse

IPMI Agent - cannot read values

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fast.ryder
    Member
    • Apr 2008
    • 46

    #1

    IPMI Agent - cannot read values

    Hello!

    I have upgraded from zabbix 1.4 to Zabbix 1.6, installed the new RPMs for dependencies to use IPMI and LDAP:

    openldap
    openldap-devel
    openIPMI
    openIPMI-devel

    I created a new user, gave it a password, logged on with the new user in the IPMI console and I can read sensor data.

    However, after I have set up a new host to read IPMI data from a server I have with this user and pass, I cannot get back any data from the IPMI device. Zabbix does not report any errors, not even in "debug mode".

    Anyone can help with this problem?

    My IPMI device is configured well, responds and I can connect to it using normal software (IPMI console, etc) and view all the data I need.

    Thanks in advance,

    Ivo Pereira
    IT Consultant
    Portugal
  • fast.ryder
    Member
    • Apr 2008
    • 46

    #2
    IPMI access > follow-up

    Hello, all!!

    I have digged up a little bit more, and found some strange but interesting facts about the IPMI support inside Zabbix.

    You can set, on each host´s page, the user name / password / port but not the "Authentication Type" as set in the source code file checks_ipmi.c.

    Where and what does this parameter do and can be defined?

    I have seen this link, maybe it is related to the subject, anyway I found this interesting and here it is:



    You can see that there are several types of auth (even though this is from FreeIPMI, it might be similar) but in zabbix server there is no way to define this!!

    Thanks in advance,

    Ivo Pereira
    IT Consultant
    Portugal

    Comment

    • Alexei
      Founder, CEO
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2004
      • 5654

      #3
      What authentication type is needed for you? Please can you give us an example of command line use of ipmitool with authentication type of you choice.
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      • fast.ryder
        Member
        • Apr 2008
        • 46

        #4
        IPMI value reading - Cipher type

        Hello, Alexei!

        Thank you for your quick reply.

        I have checked the IPMI v2.0 specification, then cheked the Supermicro IPMI View program and the cipher type I need to use is ID 3.

        (We have several Supermicro servers with different IPMI cards, all of them support KVM-Over-LAN and full IPMI v2.0)

        From the IPMI v2 specification:

        Authentication > RAKP-HMAC-SHA1
        Integrity Algorithm > HMAC-SHA1-96
        Confidentiality Algorithm > AES-CBC-128

        I am trying to use only the OpenIPMI-tools RPM package, I also found another implementation of IPMI called "ipmitool" (stand-alone, available on Sourceforge) but I have not yet tried it; I didn´t want to mix software versions.

        The command I used was this:

        ipmitool -I lanplus -H 10.0.0.248 -L user -U ___ -P ____ sensor

        I think that OpenIPMI is using all default values, I tried specifying the cipher type manually but it did not work: it only worked like this.

        Thanks in advance,

        Ivo Pereira
        IT Consultant
        Portugal

        Comment

        • fast.ryder
          Member
          • Apr 2008
          • 46

          #5
          Follow-up > IPMI Problem

          Hello.

          In my previous post I forgot to mencion some tests results I had.

          When I went low-level on MySQL and updated the "ipmi_authtype" row to 1 I had this error:

          Cannot connect to IPMI host. Error 0x16 Invalid argument

          Then, I changed to level 2 and got this error:

          Cannot connect to IPMI host [10.0.0.248]:443. ipmi_ip_setup_con() returned error 0x16


          And the strangest thing is that I have logging level 3 (errors) and the server log file does NOT show any errors regarding this host, but they show up on the web page and also does the error message...!

          Thanks in advance,

          Ivo Pereira
          IT Consultant
          Portugal

          Comment

          • Alexei
            Founder, CEO
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • Sep 2004
            • 5654

            #6
            I believe we fixed this problem in the latest code, it yet to be confirmed by someone else.
            Alexei Vladishev
            Creator of Zabbix, Product manager
            New York | Tokyo | Riga
            My Twitter

            Comment

            • fast.ryder
              Member
              • Apr 2008
              • 46

              #7
              Code Fix - tryout

              Hello, Alexei!

              Thank you very much for your quick reply.

              I am sorry that I have not had any time whatsoever to download the latest source code and try it out.

              Do I still need to specify the "AuthType" directly in the database or must I only use the default values that the OpenIPMI function provides?

              Kind Regards,

              Ivo Pereira
              IT Consultant
              Portugal

              Comment

              • Alexei
                Founder, CEO
                Zabbix Certified Trainer
                Zabbix Certified SpecialistZabbix Certified Professional
                • Sep 2004
                • 5654

                #8
                Originally posted by fast.ryder
                Do I still need to specify the "AuthType" directly in the database or must I only use the default values that the OpenIPMI function provides?
                Try to use the default value for the AuthType. It should work.
                Alexei Vladishev
                Creator of Zabbix, Product manager
                New York | Tokyo | Riga
                My Twitter

                Comment

                • fast.ryder
                  Member
                  • Apr 2008
                  • 46

                  #9
                  Cannot compile - "typos" show up

                  Hello, Alexei!

                  I am trying (finally... ) to compile in the patch you provided to the checks_ipmi.c file.

                  I got the latest copy of it from SVN, replaced the old file with the new (didn´t see any changes in the header file, checks_ipmi.h so I kept the same one) and when I try to compile the new binaries I get this error:

                  checks_ipmi.c: In function ‘get_value_ipmi’:
                  checks_ipmi.c:882: error: ‘struct zbx_item_type’ has no member named ‘ipmi_ip’
                  make[3]: *** [checks_ipmi.o] Error 1
                  make[3]: Leaving directory `/usr/local/src/zabbix-1.6/src/zabbix_server/poller'
                  make[2]: *** [all-recursive] Error 1
                  make[2]: Leaving directory `/usr/local/src/zabbix-1.6/src/zabbix_server'
                  make[1]: *** [all-recursive] Error 1
                  make[1]: Leaving directory `/usr/local/src/zabbix-1.6/src'
                  make: *** [all-recursive] Error 1

                  As you can see, there are some strange characters in the get_value_ipmi part. I edited the file manually, tried to convert it with dos2unix but no luck.

                  I am a bit of a newb in software compilation, so please forgive any stupid questions.

                  Thanks in advance,

                  Ivo Pereira
                  IT Consultant
                  Portugal

                  Comment

                  • fast.ryder
                    Member
                    • Apr 2008
                    • 46

                    #10
                    IPMI function - still cannot read connect to server

                    Hello, Alexei.

                    I have compiled the latest SVN branch for 1.6 and tried out the modification you made to the checks_ipmi.c file.

                    After not being able to connect to the server once again, I decided to capture some network traffic to try and discover what whent wrong with the client/server communication.

                    It seems that the Zabbix IPMI Poller component tries to connect to the IPMI host using only IPMI 1.5 capabilites and my server only accepts IPMI 2.0 requests.

                    I have tried all levels of privileges, authentication types, etc, and I am starting to think that the IPMI poller that Zabbix provides does not support IPMI 2.0 capabilities.

                    Is this correct? I have read somewhere in the OpenIPMI page that they do support the LanPlus interface (the one I used before with the ipmicmd command, in my previous posts) so I find it strange that I cannot define anywhere what type of IPMI to use...

                    Is there some field in the database I can define manually to enable this ? Or is IPMI 2.0 support still to come?

                    Thanks in advance,

                    Ivo Pereira
                    IT Consultant
                    Portugal

                    Comment

                    • Antras
                      Junior Member
                      • Oct 2007
                      • 12

                      #11
                      Ivo, did you solve this problem? have you found solution?
                      We use Zabbix 1.6.1 with Intel S5000PAL servers and have the same result.
                      ipmitool works great, but zabbix doesn't show anything, even errors

                      Comment

                      • fast.ryder
                        Member
                        • Apr 2008
                        • 46

                        #12
                        IPMI polling - no solution found... yet..

                        Hello there.

                        I am sorry to say that I have never been able to get the IPMI poller working (one of my most wanted features...) no matter what auth option I choose.

                        I own several Supermicro servers and none of them can be polled by the Zabbix native IPMI poller. Just as you said, ipmitool works very well and is fast.

                        Back to shell scripting for IPMI polling, then.. sorry I can´t help..

                        The zabbix devel team posted some patches / auth upgrades some time ago; are you using latest stuff or old stable code?

                        Cheers,

                        Ivo

                        Comment

                        • Antras
                          Junior Member
                          • Oct 2007
                          • 12

                          #13
                          Originally posted by fast.ryder
                          The zabbix devel team posted some patches / auth upgrades some time ago; are you using latest stuff or old stable code?
                          Thanks, Ivo, for quick answer.
                          I'm using latest stable version 1.6.1.
                          Can you tell me, where can i know about last auth patches/upgrades?

                          Comment

                          • richlv
                            Senior Member
                            Zabbix Certified Trainer
                            Zabbix Certified SpecialistZabbix Certified Professional
                            • Oct 2005
                            • 3112

                            #14
                            see http://www.zabbix.org/forum/showthre...2202#post42202 for the solution that helped me
                            Last edited by richlv; 06-02-2009, 13:27. Reason: better url
                            Zabbix 3.0 Network Monitoring book

                            Comment

                            • lukus
                              Junior Member
                              • May 2008
                              • 9

                              #15
                              Is this fixed in Zabbix 1.8.1? I'm using it with OpenIPMI-2.0.14.

                              I have IPMI working well on a Sun Fire X4600, but my Supermicro machines all return the error "Cannot connect to IPMI host. Error 0x16 Invalid argument"

                              I'm able to query them using a straightforward ipmitool command:
                              Code:
                              ipmitool -H node182-lom.cluster -U admin sensor

                              Comment

                              Working...