RAID controllers for failed drives

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
informatica
Posts: 99
Joined: Thu Jan 28, 2021 9:55 pm

RAID controllers for failed drives

Post 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
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: RAID controllers for failed drives

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
informatica
Posts: 99
Joined: Thu Jan 28, 2021 9:55 pm

Re: RAID controllers for failed drives

Post 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
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: RAID controllers for failed drives

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
informatica
Posts: 99
Joined: Thu Jan 28, 2021 9:55 pm

Re: RAID controllers for failed drives

Post 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.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: RAID controllers for failed drives

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked