Hi,
I’ve been trying to get IPMI polling to work on some older Dell DRAC6 BMCs. The servers come equipped with the basic model which don’t support SNMP queries directly, so I was hoping to get some data through IPMI, which it does support. It seems that LibreNMS doesn’t start the polling process for these devices at all.
Basically, I added the host in question through the web UI and disabled SNMP checks (ping only). Afterwards, I added the credentials for IPMI checks in the appropriate tab. Based on the defaults.inc.php file, it sounds to me that this should practically work out of the box, without adding anything else in config.php (which I also tried but didn’t change anything). When I look at the poller output for that device, though, no IPMI query shows up. If I run ipmitool manually against the DRAC6, I can fetch the sensor data.
However, by comparison against an IDRAC8 basic controller (which supports both IPMI and SNMP). LibreNMS kicks off both the SNMPwalk and also the ipmitool queries beautifully.
The abbreviated output of poller.php for IDRAC8: ./poller.php -d -h IDRACIP -m ipmi
LibreNMS Poller
===================================
Version info:
Commit SHA: e814cd8e34a73c2441ca8eaf34cf7025bf26e2b3
Commit Date: 1522115417
DB Schema: 247
PHP: 7.0.27-0+deb9u1
MySQL: 10.1.26-MariaDB-0+deb9u1
RRDTool: 1.6.0
SNMP: NET-SNMP 5.7.3
==================================DEBUG!
Updating os_def.cache... Done
Starting polling run:
... some snmpgets
#### Load poller module ipmi ####
SQL[SELECT * FROM sensors WHERE device_id = '8' AND poller_type='ipmi']
... some arrays
Fetching IPMI sensor data...SNMP[/usr/bin/ipmitool -I lanplus -c -H HOSTNAME -u USER -P PASSWORD -L USER sdr 2>/dev/null]
... IPMI data
... more SQLs
In comparison, on the DRAC6 (full output): ./poller.php -d -h DRACIP -m ipmi
LibreNMS Poller
===================================
Version info:
Commit SHA: e814cd8e34a73c2441ca8eaf34cf7025bf26e2b3
Commit Date: 1522115417
DB Schema: 247
PHP: 7.0.27-0+deb9u1
MySQL: 10.1.26-MariaDB-0+deb9u1
RRDTool: 1.6.0
SNMP: NET-SNMP 5.7.3
==================================DEBUG!
Updating os_def.cache... Done
Starting polling run:
SQL[SELECT * FROM `devices` WHERE `disabled` = 0 AND `hostname` = 'DRACIP' ORDER BY `device_id` ASC]
./poller.php DRACIP 2018-03-28 15:44:47 - 0 devices polled in 0.469 secs
SNMP [0/0.00s]: Get[0/0.00s] Getnext[0/0.00s] Walk[0/0.00s]
MySQL [5/0.01s]: Cell[2/0.00s] Row[0/-0.00s] Rows[3/0.00s] Column[0/0.00s] Update[0/0.00s] Insert[0/0.00s] Delete[0/0.00s]
RRD [0/0.00s]: Update[0/0.00s] Create [0/0.00s] Other[0/0.00s]
Does anybody have a clue why that might be the case? Could it be by design, so that IPMI queries only work if SNMP is enabled?