Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
Checks LSI SAS2 RAID controllers RAID status via sas2ircu program
Current Version
Last Release Date
May 18, 2011
Owner
Emmanuel Lacour
Website
http://git.home-dn.net/?p=manu/check_sas2ircu.git;a=summary
Download URL
http://git.home-dn.net/?p=manu/check_sas2ircu.git;a=blob_plain;f=check_sas2ircu;hb=HEAD
License
GPL
Compatible With
Copy the file over chmod u+x /usr/lib64/nagios/plugins/check_sas2ircu run "visudo" Add the following lines at the bottom: ## Allow nrpe to check SAS arrays nrpe ALL=(ALL) NOPASSWD:/usr/lib64/nagios/plugins/check_sas2ircu Hash out this line in the same: #Defaults requiretty Copy the file or vi contents to /usr/lib64/nagios/plugins/check_sas2ircu Add the following line to /etc/nrpe.d/nrpe.cfg command[check_sas2ircu]=/usr/bin/sudo /usr/lib64/nagios/plugins/check_sas2ircu
LSI got bought out by Avago, and now you can't easily find a copy of the sas2ircu utility that this script relies on. I found a link to version 20.0.0.0 that's hosted by Supermicro after reviewing an example RPM spec file that I found online. This utility can also monitor Dell PERC H200i adapters which is nice. It requires being run as root, so you'll need to ensure you add a sudoers exception or selinux hash to allow passwordless running of the script by whatever user is running your nrpe process. You may need to modify the following lines in the script to point to your sas2ircu path and utils.pm path. The lines to change are as follows and include changes I made for my own os CentOS7. use lib qw(/usr/local/lib/nagios/plugins /usr/lib/nagios/plugins /usr/lib64/nagios/plugins); my $sas2ircu = '/usr/sbin/sas2ircu';
when I start the script I get as output This program must be run as root. You may use wrappers like sudo to do this. how can I do to solve this puzzle?
You must be logged in to submit a review.
To:
From: