nagios-plugin-check_raid icon indicating copy to clipboard operation
nagios-plugin-check_raid copied to clipboard

Error with P440AR RAID controller. How to solve, what to change? Please advice.

Open HHawk opened this issue 1 year ago • 1 comments

Hi,

Probably a very dumb question, but it's been a while since I have (re)configured Nagios and your very useful plugin script to check RAID functions and health.

So far we only had HP servers with the older RAID controller like P400 and P400i. Recentely we have purchased several newer HP servers which have the following RAID controller: P440AR.

Now Nagios reports the disks to be fine, but does report an error. The error we are getting on these newer HP server (with the P440AR RAID controller) is: UNKNOWN: hpacucli:[[ERROR, The controller must be identified by slot, chassisname, wwn,]]: ssacli:[Smart Array P440ar[OK]: Array A(OK)[LUN1:OK]]

I am guessing that I should disable "hpacucli" with these newer HP RAID controllers or should I change something? Again sorry if I am asking a dumb question, but I have no clue on how to get rid of this message, as the RAID array is fine (as reported by ssacli).

Maybe I should de-install hpacucli for these servers?

Thank you in advance.

Regards

HHawk avatar Aug 04 '22 07:08 HHawk

Sorry for the bump, but it would be great if someone could provide some help with this. Thanks in advance!

HHawk avatar Aug 08 '22 17:08 HHawk

Please see https://github.com/glensc/nagios-plugin-check_raid/blob/master/CONTRIBUTING.md on how to properly report issues.

csware avatar Jan 11 '23 13:01 csware

and perhaps read the usage, specify only plugins you want to use:

  • https://github.com/glensc/nagios-plugin-check_raid#usage

-p --plugin <name(s)> Force the use of selected plugins, comma separated

check_raid -p ssacli

for hpacucli if you want to fix, you should create a proper bug report as pointed out by @csware

glensc avatar Jan 11 '23 15:01 glensc

I forgot about this thread. The error is not the script btw. It's working fine, because on a different server with the same setup it's not giving an error.

No clue why. But I think it's related to "hpssacli" as "ssacli" is working fine, as seen in the front-end: (see last part with ssacli): UNKNOWN: hpssacli:[Slot 0 (Embedded) [ERROR, The controller must be identified by slot, serialnumber, index, first,]]: ssacli:[Smart Array P440ar[OK]: Array A(OK)[LUN1:OK]] 

I already uninstalled hpssacli from the server for testing. The error is shorter now, but still there. Other server (with same specs): OK: ssacli:[Smart Array P440ar[OK]: Array A(OK)[LUN1:OK]] 

Output 1: /usr/lib64/nagios/plugins/check_raid.pl -p ssacli OK: ssacli:[Smart Array P440ar[OK]: Array A(OK)[LUN1:OK]]

Output 2 (after uninstalling hpacucli): /usr/lib64/nagios/plugins/check_raid.pl -p hpacucli check_raid UNKNOWN - No active plugins (No RAID found)

Will re-check if I can see the cause for that.

Regards

HHawk avatar Jan 12 '23 08:01 HHawk

A small update. Now this is the strange part. Both servers have the same RAID controller. But when I test it like below, I get different output.

SERVER 1 [root@server1~]# /usr/lib64/nagios/plugins/check_raid.pl -p hpacucli check_raid UNKNOWN - No active plugins (No RAID found) [root@server1~]# vi /etc/nagios/nrpe.cfg [root@server1~]# /usr/lib64/nagios/plugins/check_raid Unhandled: [ or IPF information.] Use of uninitialized value in string ne at /usr/lib64/nagios/plugins/check_raid.pl line 3149. UNKNOWN: hpssacli:[Slot 0 (Embedded) [ERROR, The controller must be identified by slot, serialnumber, index, first,]]; ssacli:[Smart Array P440ar[OK]: Array A(OK)[LUN1:OK]]

(this also translates into the error as I am seeing in the front-end)

But on the other server: SERVER 2 [root@server2~]# /usr/lib64/nagios/plugins/check_raid OK: ssacli:[Smart Array P440ar[OK]: Array A(OK)[LUN1:OK]]

Strange. Must be some older reference related to hpssacli, right?

HHawk avatar Jan 12 '23 08:01 HHawk

Okay added fot the "problem" server the part: -p ssacli No more errors.

Sorry for your time.

HHawk avatar Jan 12 '23 08:01 HHawk