Skip to main content

I need to monitor harddrive / storage  status. How is it done with “HP Ilo Rest API” plugin?

The new Proliant Gen10 servers have MR Raid instead of Smart Array controller and my old iLO monitoring command “check_ilo2_health.pl” does not show the storage information.

I verified with “HPE iLORest utility” that information is accessible by RestAPI for example by commands

select Drive
get

 

You should use the plugin HP ilo Rest from centreon

 

You have 2 choices for ilo hardware moniting in the centreon plugins

  • hardware::server::hp::ilo::restapi::plugin
  • hardware::server::hp::ilo::xmlapi::plugin

But only the xmlapi can get you the disks (physical drives and logical drives)

I highly suggest you add this option to the command line : --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE"

 

Both this plugins have plugin pack that come with a host template ready to use, if you don’t have plugin pack, you should know how to make a you own check command with the plugin and you own template

 

if you add --verbose here is an example with no component filter, I just screenshoted the part with the disks

 


Thanks for suggestions.

I am afraid I don’t get drives status even with xml plugin.

Here is xml plugin check result (with some lines deleted for memory, temperature, fans, CPU I left only 1st lines in section) But there is no line for any physical or logicel drive. I repeat that is MRRaid equiped server, no SmartArray controller unfortunately, since it was not available this year:

Checking fans
fan 'Fan 1' status is 'OK' 'instance = Fan 1] ]value = 16]
Checking temperatures
temperature '01-Inlet Ambient' status is 'OK' 'instance = 01-Inlet Ambient] ]location = Ambient] ]value = 19]
Checking vrm
Checking power supplies
power supply 'Power Supply 1' status is 'Good, In Use' 'instance = Power Supply 1]
power supply 'Power Supply 2' status is 'Good, In Use' 'instance = Power Supply 2]
Checking cpu
cpu 'Proc 1' status is 'OK' 'instance = Proc 1]
Checking memories
memory 'cpu_1.1' status is 'Good, In Use' 'instance = cpu_1.1]
Checking nic
nic 'Intel Eth Adptr I350T4 OCPv3.Port 1' status is 'OK' 'instance = Intel Eth Adptr I350T4 OCPv3.Port 1]
Checking batteries
battery 'Battery 1' status is 'OK' 'instance = Battery 1]
Checking controllers
Checking drive enclosures
Checking physical drives
Checking logical drives
Checking bios
BIOS status is 'OK'

 

Here is my command line: /usr/lib/centreon/plugins/centreon_hp_ilo_xmlapi.pl --plugin=hardware::server::hp::ilo::xmlapi::plugin --mode=hardware --hostname='10.1.1.83' --username='monitor' --password='***'  --component='.*' --verbose

 


Hello @lhejrovsky ,

can you confirm what version of iLo you have setup on your server? The plugin centreon_hp_ilo_xmlapi.pl is designed to work with iLo v 2/3/4 . Your server might have iLo v5 enabled. iLo v5 seems to use a different API altogether.


i know I use the xmlapi plugin for ilo 3 4 and 5 and all return the disk informations

and I have various ilo firmware, some quite old, some up to date with latest release from hp

 

@lhejrovsky  did you try the plugin hardware::server::hp::ilo::restapi::plugin

beware the username and password are --api-username and --api-password, but you can use

 

can you also tell me : what is your server model, and what type of controller it has, also what ilo version and firmware ?


ProLiant DL380 Gen10 Plus
ROM: U46 v1.60 (06/01/2022)
iLO Firmware Version: 2.71 Jul 04 2022

I beleive in Gen10 servers there is iLO 5

I did try RestAPI plugin, that was how my question started. This command:

/usr/lib/centreon/plugins/centreon_hp_ilo_restapi.pl --plugin=hardware::server::hp::ilo::restapi::plugin --mode hardware --hostname 10.0.0.5 --api-username='monitor' --api-password=passwordhere --component='.*'    --ssl-opt=SSL_verify_mode=SSL_VERIFY_NONE --verbose

It returns folowing sections:

checking chassis

device 'chassis:1/HPE MR416i-a Gen10+' status is 'OK' 'instance: 1.4, state: Enabled]

checking fans

checking power supplies

checking temperatures

No mention of drives, physical nor logical.


well I have this exact model, but my rom is U30, not U46 (probably a different model of motherboard it’s a model from 2019), 

Rom U30 v2.68 (07/14/2022)

ilo firmware 2.72 Sep 04 2022 

I upgraded this server last month, it was running an old 2020 firmware

I have the disk information with xmlapi (before and after upgrade)…

 

I’m checking also a “new” server we bought a few month ago, it’s also a U30 Bios, i can see the disks

 

I’m thinking your ilo is not seeing the drive, when you go in your ilo web interface; System Information/Storage, do you see controllers and Disks?

 

 


It seems your disks are on Smart Array sw RAID ? Even if you have hardware raid from 2019 it is likely to be SmartArray controller.

It is not the case on my server :-(

 

well I have this exact model, but my rom is U30, not U46 (probably a different model of motherboard it’s a model from 2019), 

Rom U30 v2.68 (07/14/2022)

ilo firmware 2.72 Sep 04 2022 

I upgraded this server last month, it was running an old 2020 firmware

I have the disk information with xmlapi (before and after upgrade)…

 

I’m checking also a “new” server we bought a few month ago, it’s also a U30 Bios, i can see the disks

 

I’m thinking your ilo is not seeing the drive, when you go in your ilo web interface; System Information/Storage, do you see controllers and Disks?

 

 

 


well, as I said i have lots of servers and lots of different raid cards, all return the disks information,

and all of them are smartarray or this smaller version sata/software

but I don’t have your specific model  MR416i-a, so I can’t help you more, I see it’s a broadcom MegaRaid chipset, I didn’t know HPe was selling this but I’m out of the loop with new HP server

 

you probably need to open a support ticket with support or post something on the github, the Centreon Dev team will ask for snmpwalk dump, or guide you through some curl request to get to the bottom of this

 

I can confirm though that the “restapi” plugin includes no “Disk” module, only the xmlapi one. (looking in the github)

and the xmlapi plugins works fine with current hp gen10 hardware with smartarray, ilo5 and latest firmware

 


OK, thanks.

Unfortunately I haven’t been able to aquire login to centreon web page and contact support.

The problem is that HP put to servers MRRaid instead of SmartArray this year, due to the problems with SmartArray availability.

And so they have done yet another giant step on path from quality of Compaq Proliant servers to the quality of late HP NetServers :-(


Reply