Ad Widget

Collapse

HP servers monitoring via iLO

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • guest55
    Junior Member
    • Feb 2015
    • 10

    #31
    Hi all!

    I have a problem which was announced above - Zabbiks not display monitoring information. When using versions of the first post - only displays the firmware version ILO, using more recent versions of the script from the topic - nothing shows up. I installed Zabbix 2.4.4 on Ubuntu Server 14.04, freeipmi from repository. Tested on ProLiant ML110 G6.

    Tell me what could be the problem ?

    Update:

    I spent my own tests - if Ubuntu Server(12 and 14) is installed from the repository freeipmi, Zabbix does not have the data, if you are installing from source freeipmi - I have an error: "/usr/sbin/ipmi-sensors: error while loading shared libraries: libipmidetect.so.0: cannot open shared object file: No such file or directory". In CentOS system software(freeipmi 1.4.8) is installed from source and runs without errors and displays the data in Zabbix.


    What may be possible solutions to the Ubuntu?
    Last edited by guest55; 10-03-2015, 10:03.

    Comment

    • guest55
      Junior Member
      • Feb 2015
      • 10

      #32
      Originally posted by dkmudrechenko
      Had a problem when Zabbix ran script but never got any data, the problem was with ilo_discovery.pl. Perl produced "experimental feature" warnings that broke JSON format of the output (since zabbix uses stderr + stdout). So I had to include the following line to stop perl acting funky and make it working -
      "no if ($] >= 5.01, 'warnings' => 'experimental';"

      Hope it will help someone!

      Thanks
      Where in the file to insert your code?

      Comment

      • pzabortsev
        Senior Member
        • Dec 2012
        • 338

        #33
        Originally posted by Vengant
        Hi all,

        I attached archive with scripts and template for auto-discovery and monitor hardware status parameters and more other information on HP Proliant servers via iLO IPMI interface.
        Great work! Thank you very much!

        FYI: It works for me on ubuntu 14.04, but don't on ubuntu 12.04. The cause is old freeipmi-tools package: on ubuntu 12.04 it is version 0.8.12

        Comment

        • vvlucian
          Junior Member
          • Apr 2015
          • 4

          #34
          insert into temlate with triggers?so many issue.

          why so many issues.so many too high items.
          Attached Files

          Comment

          • vvlucian
            Junior Member
            • Apr 2015
            • 4

            #35
            why so many "*** is too high" items,i can't edit the triggers in configure.these trigger is inserted automatically?if i need custom the trigger,i should not import triggers when i import the template?

            Thank u very much.

            Comment

            • KorP
              Junior Member
              • May 2015
              • 2

              #36
              Hello. Help me please with the setting. All set, I tried both scripts - everything works, but the data are not in zabbix

              The log server such messages:
              Code:
               11043:20150515:110222.440 item "iLO:ipmi_proliant.pl['System Board 7 Power Meter',sensor,{$ILO},numeric]" became not supported: Received value [] is not suitable for value type [Numeric (float)]
               11043:20150515:110638.142 item "iLO:ipmi_proliant.pl['Memory Module 10 Temp 17',sensor,'{$ILO}',numeric]" became not supported: Received value [] is not suitable for value type [Numeric (float)]
               11043:20150515:110638.142 item "iLO:ipmi_proliant.pl['Processor 5 Temp 18',sensor,'{$ILO}',numeric]" became not supported: Received value [] is not suitable for value type [Numeric (float)]
               11043:20150515:110638.142 item "iLO:ipmi_proliant.pl['Peripheral Bay 1 Temp 19',sensor,'{$ILO}',numeric]" became not supported: Received value [] is not suitable for value type [Numeric (float)]
               11043:20150515:110643.152 item "iLO:ipmi_proliant.pl['Peripheral Bay 2 Temp 20',sensor,'{$ILO}',numeric]" became not supported: Received value [] is not suitable for value type [Numeric (float)]
              ....
              /usr/sbin/ipmi-sensors and ilo_discovery.pl works fine
              Code:
              # /usr/sbin/ipmi-sensors -D LAN2_0 -h ilo.korphome.ru -u zabbix -p 3bLi6g7EJGdQpyJXE36E -l USER -W discretereading --no-header-output --quiet-cache --sdr-cache-recreate --comma-separated-output --entity-sensor-names
              1,Processor Module 1 VRM 1,Power Unit,N/A,N/A,'Device Inserted/Device Present'
              2,Processor Module 2 VRM 2,Power Unit,N/A,N/A,'Device Inserted/Device Present'
              3,System Chassis 1 UID Light,OEM Reserved,N/A,N/A,'OEM Event = 0000h'
              4,System Chassis 2 Int. Health LED,OEM Reserved,N/A,N/A,'OEM Event = 0000h'
              5,System Chassis 3 Ext. Health LED,OEM Reserved,N/A,N/A,'OEM Event = 0000h'
              ...
              
              # /usr/lib/zabbix/externalscripts/ilo_discovery.pl 84.23.46.156 sensor temp numeric
              {
                      "data":[
                              {
                                      "{#CLASS}":"sensor",
                                      "{#KEY}":"External Environment Temp 1",
                                      "{#SECTION}":"Temperature",
                                      "{#TYPE}":"numeric",
                                      "{#MEASURE}":"C"},
              ...
              What could be wrong?

              Comment


              • kolele
                kolele commented
                Editing a comment
                I have the same situation... anybody ?
            • Erikih
              Junior Member
              • Nov 2013
              • 2

              #37
              Couldn't get libipmi to work.

              Followed the installation. But when i test, i get the following error message: /usr/sbin/ipmi-sensors: error while loading shared libraries: libfreeipmi.so.16: cannot open shared object file: No such file or directory

              Should i manually download that library file and where should i copy that file?

              Thanks in advance.

              Comment

              • IvanBayan
                Junior Member
                • Dec 2014
                • 21

                #38
                I faced with next problem, sometimes when you upgrade IPMI firmware, SDR is changing, but ipmi-sensors does not notice it, as result you will got incorrect readings.
                I have ipmi-sensors - 1.1.5, may be it fixed in newer versions, my solution is to flush SDR cache when you execute ilo_discovery script:
                Code:
                --- ilo_discovery.pl~   2015-09-17 16:03:24.545727187 +0300
                +++ ilo_discovery.pl    2015-09-17 16:03:07.221909869 +0300
                @@ -32,6 +32,7 @@
                 my $number = int(rand(10000));
                 
                 if($class eq 'sensor') {
                +        system("/usr/sbin/ipmi-sensors  -h ".$server." -f  --quiet-cache 2>&1 >/dev/null");
                         $cache_file = '/var/tmp/ipmi_sensors_'.$server.'-'.$number;
                         $ipmi_cmd = '/usr/sbin/ipmi-sensors -D LAN2_0 -h '.$server.' -u '.$user.' -p '.$pass.' -l USER -W discretereading --no-header-output --quiet-cache --sdr-cache-recreate --comma-separated-output --entity-sensor-names 2>/dev/null';
                 } elsif($class eq 'chassis') {

                Comment

                • seyyed
                  Junior Member
                  • Oct 2015
                  • 2

                  #39
                  Originally posted by Erikih
                  Followed the installation. But when i test, i get the following error message: /usr/sbin/ipmi-sensors: error while loading shared libraries: libfreeipmi.so.16: cannot open shared object file: No such file or directory

                  Should i manually download that library file and where should i copy that file?

                  Thanks in advance.
                  I had the same problem. solving it by compiling for 64-bit systems!:
                  Code:
                  ./configure --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --localstatedir=/var --mandir=/usr/share/man --libdir=/usr/lib64

                  Comment

                  • gnarsch
                    Junior Member
                    • Oct 2015
                    • 2

                    #40
                    Originally posted by seyyed
                    I had the same problem. solving it by compiling for 64-bit systems!:
                    Code:
                    ./configure --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --localstatedir=/var --mandir=/usr/share/man --libdir=/usr/lib64
                    Hello,

                    i got the same problem her. I have compilit it for 64-bit systems but got the same error:

                    "/usr/sbin/ipmi-sensors: error while loading shared libraries: libfreeipmi.so.16: cannot open shared object file: No such file or directory"

                    any idea?

                    Thanks in advance.

                    Edit: i solved the problem with "apt-get install freeipmi" on my ubuntu server. sorry for the trouble...
                    Last edited by gnarsch; 27-10-2015, 17:05.

                    Comment

                    • necvga
                      Junior Member
                      • Feb 2015
                      • 4

                      #41
                      I using Zabbix VM appliance
                      and install freeipmi by
                      zypper install freeipmi

                      after then i can get result by following command.
                      ilo_discovery.pl 192.168.0.1 sensor temp numeric

                      Next , i try add host from zabbix
                      the Zabbix only colloect
                      SN . iLO Firmware, Server Model ....

                      but can't Discovery any result e.g. Fan , Drives ...
                      Who can help me ?
                      Thx

                      Comment

                      • gnarsch
                        Junior Member
                        • Oct 2015
                        • 2

                        #42
                        Originally posted by guest55
                        Where in the file to insert your code?
                        I put it the code after line 75 and it works for me.....

                        no if $] >= 5.018, warnings => "experimental::smartmatch";
                        Last edited by gnarsch; 29-10-2015, 13:26.

                        Comment

                        • vvlucian
                          Junior Member
                          • Apr 2015
                          • 4

                          #43
                          Use of uninitialized value $results in print at /usr/local/zabbix/share/zabbix/extern

                          Use of uninitialized value $results in print at /usr/local/zabbix/share/zabbix/externalscripts/ilo_discovery.pl line 56.

                          what's wrong with this?

                          Comment

                          • vvlucian
                            Junior Member
                            • Apr 2015
                            • 4

                            #44
                            HP DL580 gen7,if i use "/usr/sbin/ipmi-sensors -D LAN2_0 -h 'ip' -u 'username' -p 'password' -l USER -W discretereading --no-header-output --quiet-cache --sdr-cache-recreate --comma-separated-output --entity-sensor-names",i get this error "ipmi_ctx_open_outofband_2_0: bad rmcpplus status code",check too often?

                            Comment

                            • michael.weber
                              Senior Member
                              • Nov 2015
                              • 121

                              #45
                              i get error in zabbix:
                              error: value should be a json.

                              But command line Output seems to be fine:

                              root@ste-s-zab01:/usr/local/share/zabbix/externalscripts# ./ilo_discovery.pl 10.10.110.51 sensor disk discrete given is experimental at ./ilo_discovery.pl line 77.
                              when is experimental at ./ilo_discovery.pl line 78.
                              when is experimental at ./ilo_discovery.pl line 81.
                              when is experimental at ./ilo_discovery.pl line 84.
                              when is experimental at ./ilo_discovery.pl line 87.
                              when is experimental at ./ilo_discovery.pl line 90.
                              when is experimental at ./ilo_discovery.pl line 93.
                              when is experimental at ./ilo_discovery.pl line 97.
                              {
                              "data":[
                              {
                              "{#CLASS}":"sensor",
                              "{#KEY}":"Disk 1 Cntlr 1 Bay 1",
                              "{#SECTION}":"Drive Slot",
                              "{#TYPE}":"discrete",
                              "{#MEASURE}":"N/A"},
                              {
                              "{#CLASS}":"sensor",
                              "{#KEY}":"Disk 2 Cntlr 1 Bay 2",
                              "{#SECTION}":"Drive Slot",
                              "{#TYPE}":"discrete",
                              "{#MEASURE}":"N/A"},
                              {
                              "{#CLASS}":"sensor",
                              "{#KEY}":"Disk 3 Cntlr 1 Bay 3",
                              "{#SECTION}":"Drive Slot",
                              "{#TYPE}":"discrete",
                              "{#MEASURE}":"N/A"},
                              {
                              "{#CLASS}":"sensor",
                              "{#KEY}":"Disk 4 Cntlr 1 Bay 4",
                              "{#SECTION}":"Drive Slot",
                              "{#TYPE}":"discrete",
                              "{#MEASURE}":"N/A"},
                              {
                              "{#CLASS}":"sensor",
                              "{#KEY}":"Disk 5 Cntlr 2 Bay 5",
                              "{#SECTION}":"Drive Slot",
                              "{#TYPE}":"discrete",
                              "{#MEASURE}":"N/A"},
                              {
                              "{#CLASS}":"sensor",
                              "{#KEY}":"Disk 6 Cntlr 2 Bay 6",
                              "{#SECTION}":"Drive Slot",
                              "{#TYPE}":"discrete",
                              "{#MEASURE}":"N/A"},
                              {
                              "{#CLASS}":"sensor",
                              "{#KEY}":"Disk 7 Cntlr 2 Bay 7",
                              "{#SECTION}":"Drive Slot",
                              "{#TYPE}":"discrete",
                              "{#MEASURE}":"N/A"},
                              {
                              "{#CLASS}":"sensor",
                              "{#KEY}":"Disk 8 Cntlr 2 Bay 8",
                              "{#SECTION}":"Drive Slot",
                              "{#TYPE}":"discrete",
                              "{#MEASURE}":"N/A"}]}

                              Comment

                              Working...