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

Starwind VSAN Health

Rating
0 votes
Favoured:
0
Current Version
1.0
Compatible With
  • Nagios 3.x
  • Nagios 4.x
Owner
License
GPL
Hits
319
Files:
FileDescription
check_stardwind_health.phpRequire PHP 5.3+ with php_sockets module
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Check summary health status of Starwind iSCSI VSAN device via PHP.
I made this PHP-script for check state of my virtual SAN Starwind high-availability iSCSI storage.
Idea was given from http://darklight.pro/how-to-monitor-starwind-virtual-san-status-in-web-browser

Prerequisites:
PHP 5.3+ with php_sockets module (on Centos: yum install php_sockets and restart apache).

Install:
Just upload check_stardwind_health.php to Nagios libexec folder and give access and execute permisions for nagios:nagcmd.

Run:
./check_stardwind_health.php
Please, run with parameters:
Example: ./check_stardwind_health.php 192.168.3.1 3261 root starwind HAImage1

Configure Nagios:
1. Add command:
#./check_stardwind.php 192.168.3.31 3261 root pw HAImage1
define command{
command_name vsan_health
command_line $USER1$/check_stardwind_health.php $HOSTADDRESS$ $ARG1$ $ARG2$ $ARG3$ $ARG4$
}

2. Add service definition for both Starwind iSCSI-servers:
define service{
use generic-service
host_name vsan1srv,vsan2srv
service_description VSAN Health HAImage1;
check_command vsan_health!3261!root!yourstarwindpw!HAImage1
parents PING
notes State VSAN iSCSSI HA-storage HAImage1 in StarWind software.
}

Enjoy. Any suggestions to improve the script will be accepted.