31Jul/073
check_3ware.sh update
I actually forgot to post this. The check_3ware.sh script has been updated. Right now it will also monitor any BBU it detects. Currently it will not tell you what exactly is wrong with your BBU, but it will return 'critical' when something is wrong. It's more than nothing huh?
Well, you can get it here.
November 26th, 2007 - 18:19
Hey, great work with the check_3ware plugin for nagios.
Just one basic question:
Is it possible to run it using sudo?
I messed around a little in the script, basically replacing the TWCLI=`which tw_cli` with TWCLI=”sudo /usr/bin/tw_cli”, but it won’t run on ubuntu 7.10 (Ubuntu might be fscked up (oh, by the way, I love that term ;-))
November 26th, 2007 - 18:34
Oh, oh great, cancel that, I’m just stupid. Your Script works great with sudo, if you comment the uid 0 and binary exists check out.
I just had an error in my /etc/sudoers file. A stupid mistake, taking all afternoon. Great.
I need a drink!
Sorry to bother you, keep up the good work!
May 1st, 2009 - 01:15
I use NRPE to check, so I put this into the sudoers:
nagios ALL=NOPASSWD: /usr/lib/nagios/plugins/check_3ware.sh
and I put this into the nrpe.cfg
command[check_raid]=/usr/bin/sudo /usr/nagios/libexec/check_3ware.sh
Works great! Thanks!