How best to implement monitoring Integrated Lights Out Manager (ILOM): ipmi_ctx_open_outofband_2_0: internal error?


The desire to customize the data collection with the Integrated Lights Out Manager (ILOM) in Zabbix.

I found an article the Monitoring of HP servers via iLO Zabbix

I have
Linux zabbixapp01 4.1.12-103.3.8.el7uek.x86_64 #2 SMP Mon Aug 21 17:27:54 PDT 2017 x86_64 x86_64 x86_64 GNU/Linux

if you try to run

./configure --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --localstatedir=/var --mandir=/usr/share/man --libdir=/usr/lib64

get the error

statedir=/var --mandir=/usr/share/man --libdir=/usr/lib64
checking for a BSD-compatible install... /bin/install-c
checking whether build environment is sane... yes
/home/zabbix/freeipmi-1.5.7/config/missing: Unknown `--is-lightweight' option
Try `/home/zabbix/freeipmi-1.5.7/config/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '0' is supported by ustar format... yes
checking whether GID '0' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... no
checking for cc... no
checking for cl.exe no... 
configure: error: in `/home/zabbix/freeipmi-1.5.7':
configure: error: no acceptable C compiler found in $PATH

install the package

yum install gcc

then stumble on this

checking for gcry_md_open in-lgcrypt... no
configure: error: libgcrypt required to build libfreeipmi

I had to solve by disabling --without-encryption

./configure --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --localstatedir=/var --mandir=/usr/share/man --libdir=/usr/lib64 --without-encryption

further fulfilled

make install

finished without errors

/bin/install-c-m 644 pet/README pet/pet check_rmcpping/ipminodes.cfg pet/ '/usr/share/doc/freeipmi/contrib/pet'
make[2]: Leaving directory `/home/zabbix/freeipmi-1.5.7/contrib'
make[1]: Leaving directory `/home/zabbix/freeipmi-1.5.7/contrib'
make[1]: Entering directory `/home/zabbix/freeipmi-1.5.7'
make[2]: Entering directory `/home/zabbix/freeipmi-1.5.7'
make[2]: Nothing to be done for `install-exec-am'.
 /bin/mkdir -p '/usr/share/doc/freeipmi'
 /bin/install-c-m 644 ChangeLog ChangeLog.0 AUTHORS COPYING INSTALL NEWS README README.argp README.openipmi TODO COPYING.bmc-watchdog COPYING.ipmipower COPYING.ipmiping COPYING.ipmiconsole COPYING.ipmimonitoring COPYING.pstdout COPYING.ipmidetect COPYING.ipmi-fru COPYING.ipmi-dcmi COPYING.ipmiseld COPYING.sunbmc COPYING.ZRESEARCH DISCLAIMER.bmc-watchdog DISCLAIMER.ipmipower DISCLAIMER.ipmiping DISCLAIMER.ipmiconsole DISCLAIMER.ipmimonitoring DISCLAIMER.pstdout DISCLAIMER.ipmidetect DISCLAIMER.ipmi-fru DISCLAIMER.ipmi-dcmi DISCLAIMER.ipmiseld DISCLAIMER.bmc-watchdog.UC DISCLAIMER.ipmipower.UC DISCLAIMER.ipmiping.UC DISCLAIMER.ipmiconsole.UC DISCLAIMER.ipmimonitoring.UC DISCLAIMER.pstdout.UC DISCLAIMER.ipmidetect.UC '/usr/share/doc/freeipmi'
 /bin/install-c-m 644 DISCLAIMER.ipmi-fru.UC '/usr/share/doc/freeipmi'
make[2]: Leaving directory `/home/zabbix/freeipmi-1.5.7'
make[1]: Leaving directory `/home/zabbix/freeipmi-1.5.7'

try to run a test query to the ILOM

/usr/sbin/ipmi-sensors -D LAN2_0 -h -u user_name -p user_password -l USER-W discretereading --no-header-output --quiet-cache --sdr-cache-recreate --comma-separated-output --entity-sensor-names

get the error

ipmi_ctx_open_outofband_2_0: internal error

How to solve this problem and what options there are better than monitoring through SNMP?
June 14th 19 at 20:44
1 answer
June 14th 19 at 20:46
Configure data collection for IPMI
yum install OpenIPMI OpenIPMI-tools
sensor ipmitool-H -I lanplus -U username-P password-L ADMINISTRATOR

in the configuration file of the zabbix server to include the collection of IPMI polling
nano /etc/zabbix/zabbix_server.conf
activate this option
Create a template for IPMI
for example
It groups data items: Temperature, Voltage, etc.
further data Elements example
example of Power
• Name - PS0/P_IN
• Type - IPMI agent
• Key - PS0_P_IN
• IPMI sensor PS0/P_IN

the details are here

Find more questions by tags iLOMonitoringZabbix