Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1


Remember Me


3 votes
Compatible With
  • Nagios 2.x
  • Nagios 3.x

Help Support Ethan Galstad's New Project:

Help Support Ethan

A Message From The Founder...

As the founder of Nagios, I'm asking for your help in a cause that's dear to my heart.

I'm launching a new project to help better the world by providing the information, ideas, and inspiration that I believe can improve the lives of people everywhere.

I know you're busy managing networks, but I would appreciate it if you would consider liking my Facebook page and showing your support for the content and messages I produce by sharing them with your friends and family.

You can learn more about my project by visiting Thank you for your time. I wish you all the best in your endeavors, whatever they may be.

- Ethan

Checks LSI SAS2 RAID controllers RAID status via sas2ircu program
Reviews (3)
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
bydrochecfri, November 17, 2016
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 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 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?