Page 1 of 1

RAID controllers for failed drives

Posted: Tue Feb 09, 2021 11:55 pm
by informatica
I am an HP box with a P408i RAID controller. I’d like to monitor the physical drives looking for a drive failure.

Could you please provide the plugin which helps to monitor the same hp box model ?? Let me know if you need more details.


i Found one plugin for this but i am getting the below error.

1) The below is the output for which is executed with first script
[root@qyrl ~]# ./check_smartarray_v1.6.py
UNKNOWN - One of element of these : controller (0), array (2), logicaldrive (3) or physicaldrive (8) is missing !

2) The below is the output for which execute with second script.
root@qyr scrpits]# ./check_cciss -v -p
./check_cciss: line 188: ./utils.sh: No such file or directory

Re: RAID controllers for failed drives

Posted: Wed Feb 10, 2021 4:22 pm
by benjaminsmith
Hi,


Did you install the HP configuration utility (hpacucli) as both those plugins rely on this? Also, are you using NRPE to run these?

For the first case, I believe the path is not right and it cannot locate utils.sh. Try setting the path directly in the plugin, for example:

Code: Select all

PROGPATH= "/usr/local/nagios/libexec"
..and let me know what the results are.

For the second plugin, it's failing since it's not able to retrieve any data back. I would reccomend testing out the following plugin since it's been updated more recently.

https://github.com/glensc/nagios-plugin-check_raid

Let me know how that one works out.

Benjamin

Re: RAID controllers for failed drives

Posted: Fri Feb 12, 2021 9:11 am
by informatica
we have changed the path event though we are getting the same error. Please find the below error, Could you please confirm on which line we have to change. The attached one is the script which we are using.


root@qyr scrpits]# ./check_cciss -v
./check_cciss: line 178: /root/scrpits/: Is a directory
./check_cciss: line 189: /utils.sh: No such file or directory

Re: RAID controllers for failed drives

Posted: Fri Feb 12, 2021 3:47 pm
by benjaminsmith
Hi,

Thanks for uploading the plugin. I tested this on my system and it is working (although I do not have an HP Smart Array to run this against).
[nagios@localhost libexec]$ ./check_cssis.sh
RAID UNKNOWN - HP Smart Array not found
[nagios@localhost libexec]$
Let's make sure you have the utils.sh file installed with the correction permissions. Please post the output to the following command.

Code: Select all

 ls -l utils.sh
Benjamin

Re: RAID controllers for failed drives

Posted: Mon Feb 15, 2021 2:54 am
by informatica
the below command on which directory we have to check ?

ls -l utils.sh

We would like to monitor the physical drive monitor for UCS device. Could you please help us with command how to check and if you have right plugin could you please help with plugin details.

Re: RAID controllers for failed drives

Posted: Mon Feb 15, 2021 4:08 pm
by benjaminsmith
Hi @informatica,
the below command on which directory we have to check ?
Can you post the output to the command, so I can check that it's there with the correct permissions?
We would like to monitor the physical drive monitor for UCS device. Could you please help us with command how to check and if you have right plugin could you please help with plugin details.
If you have a new question, please open a separate forum post so we can best focus our efforts. In the meantime, take a look on the Nagios Exchange for a suitable community plugin.

https://exchange.nagios.org/directory/P ... ware/Cisco

Thanks,
Benjamin