Clustering and High-Availability

Starwind VSAN Health

Description:

Check summary health status of Starwind iSCSI VSAN device via PHP.

Current Version

1.0

Last Release Date

July 10, 2017

Compatible With

  • Nagios 3.x
  • Nagios 4.x

Owner

License

GPL


Project Files
Project Photos
Project Notes
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.
Reviews (0) Add a Review
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
0 (0)
Favorites
0
Views
6,082