Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Starwind VSAN Health
1.0
- Nagios 3.x
- Nagios 4.x
GPL
6031
File | Description |
---|---|
check_stardwind_health.php | Require PHP 5.3+ with php_sockets module |
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!
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.
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.
Reviews (0)
Be the first to review this listing!