ipmi supermicro

создадим ipmi для серверов supermicro шаблон в zabbix
ipmitool
apt-get install ipmitool
ipmitool -h
ipmitool -H IP_ipmi_SuperMicro -L User -U Login -P PasSwoRd sdr

в итоге будет таблица

CPU1 Temp        | 0x00              | ok
CPU2 Temp        | 0x00              | ok
System Temp      | 18 degrees C      | ok
CPU1 Vcore       | 1.19 Volts        | ok
CPU2 Vcore       | 1.18 Volts        | ok
+1.5V            | 1.51 Volts        | ok
+5V              | 5.22 Volts        | ok
+5VSB            | 5.18 Volts        | ok
+12V             | 12.19 Volts       | ok
-12V             | -12.00 Volts      | ok
+3.3V            | 3.26 Volts        | ok
+3.3VSB          | 3.24 Volts        | ok
VBAT             | 3.19 Volts        | ok
Fan1             | 8370 RPM          | ok
Fan2             | 8370 RPM          | ok
Fan3             | 8370 RPM          | ok
Fan4             | 8370 RPM          | ok
Fan5             | 14040 RPM         | ok
Fan6             | 14040 RPM         | ok
Fan7             | no reading        | ns
Fan8             | no reading        | ns
P1-DIMM1A Temp   | 17 degrees C      | ok
P1-DIMM1B Temp   | no reading        | ns
P1-DIMM2A Temp   | 19 degrees C      | ok
P1-DIMM2B Temp   | no reading        | ns
P1-DIMM3A Temp   | 19 degrees C      | ok
P1-DIMM3B Temp   | no reading        | ns
P2-DIMM1A Temp   | 18 degrees C      | ok
P2-DIMM1B Temp   | no reading        | ns
P2-DIMM2A Temp   | 17 degrees C      | ok
P2-DIMM2B Temp   | no reading        | ns
P2-DIMM3A Temp   | 18 degrees C      | ok
P2-DIMM3B Temp   | no reading        | ns
Intrusion        | 0x00              | ok
PS Status        | 0x00              | ok


их и заводим в заббикс Template IPMI SurepMicro

ipmi + zabbix2

в логах забыли и это явно видим
84769:20121003:224912.723 SNMP monitoring:           YES
 84769:20121003:224912.723 IPMI monitoring:            NO
 84769:20121003:224912.723 WEB monitoring:            YES
.................................
 84794:20121003:224912.855 server #25 started [ipmi poller #1]
.................................
 84794:20121003:224945.195 enabling IPMI checks on host [ipmi.***.ru]: host became available
 84789:20121003:224948.227 item [ipmi.****.ru:baseboard_temp] became not supported: Support for IPMI checks was not compiled in


ставим

cd /usr/ports/sysutils/ipmitool
make install clean


./configure --enable-server ....... \
.................. \
--with-openipmi


сругалось…

checking for OPENIPMI support... no
configure: error: Invalid OPENIPMI directory - unable to find ipmiif.h


идем в
cd /usr/ports/sysutils/openipmi
make install clean
rehash


повторяем сборку заббикса

Enable server:         yes
  Server details:
    With database:         MySQL
    WEB Monitoring via:    cURL
    Native Jabber:         no
    SNMP:                  net-snmp
    IPMI:                  openipmi
    SSH:                   no


zabbix_server.conf
StartIPMIPollers=1


в итоге в логах
45126:20121003:233144.802 Starting Zabbix Server. Zabbix 2.0.0 (revision 27675).
 45126:20121003:233144.802 ****** Enabled features ******
 45126:20121003:233144.802 SNMP monitoring:           YES
 45126:20121003:233144.802 IPMI monitoring:           YES
 45126:20121003:233144.802 WEB monitoring:            YES
 45126:20121003:233144.802 Jabber notifications:       NO
 45126:20121003:233144.802 Ez Texting notifications:  YES
 45126:20121003:233144.802 ODBC:                       NO
 45126:20121003:233144.802 SSH2 support:               NO
 45126:20121003:233144.802 IPv6 support:              YES
 45126:20121003:233144.802 ******************************
.............................
 45151:20121003:233144.984 server #25 started [ipmi poller #1]


ставим новый билд zabbix на ubuntu

checking for net-snmp-config... /usr/bin/net-snmp-config
checking for main in -lnetsnmp... yes
checking for localname in struct snmp_session... yes
checking for SSH2 support... no
configure: error: SSH2 library not found


ставим для убунту
apt-get install libssh2-1-dev libssh2-php

21404:20130320:093530.685 Starting Zabbix Server. Zabbix 2.0.5 (revision 33558).
 21404:20130320:093530.685 ****** Enabled features ******
 21404:20130320:093530.685 SNMP monitoring:           YES
 21404:20130320:093530.685 IPMI monitoring:            NO
 21404:20130320:093530.685 WEB monitoring:            YES
 21404:20130320:093530.685 Jabber notifications:       NO
 21404:20130320:093530.685 Ez Texting notifications:  YES
 21404:20130320:093530.685 ODBC:                       NO
 21404:20130320:093530.685 SSH2 support:              YES
 21404:20130320:093530.685 IPv6 support:              YES
 21404:20130320:093530.685 ******************************


ставим с IPMI monitoring
сругалось
checking for SSH2 support... yes
checking for OPENIPMI support... no
configure: error: Invalid OPENIPMI directory - unable to find ipmiif.h


ставим
apt-get install openipmi libopenipmi-dev


собираем, видим.
Configuration:

  Detected OS:           linux-gnu
  Install path:          /usr/local
  Compilation arch:      linux

  Compiler:              gcc
  Compiler flags:        -g -O2  -I/usr/include/mysql -DBIG_JOINS=1  -fno-strict-aliasing  -g       -I/usr/local/include -I/usr/lib/perl/5.14/CORE -I. -I/usr/include  -I/usr/include -I/usr/include

  Enable server:         yes
  Server details:
    With database:         MySQL
    WEB Monitoring via:    cURL
    Native Jabber:         no
    SNMP:                  net-snmp
    IPMI:                  openipmi
    SSH:                   yes
    ODBC:                  no
    Linker flags:          -rdynamic      -L/usr/lib/x86_64-linux-gnu      -L/usr/lib/x86_64-linux-gnu  -L/usr/lib  -L/usr/lib -L/usr/lib -L/usr/lib
    Libraries:             -lm -lrt  -lresolv    -lmysqlclient       -lcurl  -lnetsnmp -lcrypto  -lnetsnmp -lcrypto -lssh2 -lOpenIPMI -lOpenIPMIposix

  Enable proxy:          no

  Enable agent:          yes
  Agent details:
    Linker flags:          -rdynamic     -L/usr/lib/x86_64-linux-gnu
    Libraries:             -lm -lrt  -lresolv    -lcurl

  Enable Java gateway:   no

  LDAP support:          no
  IPv6 support:          yes

***********************************************************
*            Now run 'make install'                       *
*                                                         *
*            Thank you for using Zabbix!                  *
*              <http://www.zabbix.com>                    *
***********************************************************


все. собираем и радуемся жизни.
в консоли
service zabbix-server restart
zabbix-server stop/waiting
zabbix-server start/running, process 8201

и смотрим лог

cat ./zabbix_server.log
8201:20130320:095130.101 Zabbix Server stopped. Zabbix 2.0.5 (revision 33558).
 16429:20130320:095417.461 Starting Zabbix Server. Zabbix 2.0.5 (revision 33558).
 16429:20130320:095417.461 ****** Enabled features ******
 16429:20130320:095417.461 SNMP monitoring:           YES
 16429:20130320:095417.461 IPMI monitoring:           YES
 16429:20130320:095417.461 WEB monitoring:            YES
 16429:20130320:095417.461 Jabber notifications:       NO
 16429:20130320:095417.461 Ez Texting notifications:  YES
 16429:20130320:095417.461 ODBC:                       NO
 16429:20130320:095417.461 SSH2 support:              YES
 16429:20130320:095417.461 IPv6 support:              YES
 16429:20130320:095417.461 ******************************
 16431:20130320:095417.566 server #1 started [configuration syncer #1]