Home Directory

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
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Directory

rgenergy

Reviews(1)
Got this plugin working on our Windows Server 2008 R2 with 3ware LSI 9750-4i, NSClient++, Strawberry Perl, and tw_cli.exe.
1. Install/save tw_cli.exe to C:\CLI\
2. Save check_3ware-raid.pl to C:\CLI\
3. Open check_3ware-raid.pl with notepad
4. Change:
my $tw_cli_path = '/usr/sbin/tw_cli';
to:
my $tw_cli_path = 'C:\CLI\tw_cli.exe';

5. Install strawberry perl on Windows.
6. Install NSCLient++ on Windows.


7. Go to the NSCLient++ installion directory (C:\\NSCLient++).
On nsclient.ini change/add the following:
CheckExternalScripts = 1

[CheckExternalScripts]
allow arguments=1

[/settings/external scripts/scripts]
check_3ware=C:\\strawberry\\perl\\bin\\perl.exe C:\\CLI\\check_3ware-raid.pl

8. Restart NSClient.

-------------------------------------------------------------------

9. On your nagios server in the command.cfg add the following:
# Ex. /usr/lib64/nagios/plugins/check_nrpe -H 10.0.42.28 -c check_3ware
define command{
command_name check_3ware
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_3ware
}

10. Add the following to your server.cfg file
# Check Windows2k8 3ware RAID
# /usr/lib64/nagios/plugins/check_nrpe -H 10.0.42.28 -c check_3ware
define service{
use generic-service
host_name Windows2k8
service_description 3ware RAID
check_command check_3ware
}