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

Starwind VSAN Health

Rating
0 votes
Favoured:
0
Current Version
1.0
Compatible With
  • Nagios 3.x
  • Nagios 4.x
Owner
License
GPL
Hits
6031
Files:
FileDescription
check_stardwind_health.phpRequire PHP 5.3+ with php_sockets module
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
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.