Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
Check summary health status of Starwind iSCSI VSAN device via PHP.
Current Version
1.0
Last Release Date
July 10, 2017
Owner
Yury
License
GPL
Compatible With
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: <IPStarwindServer1> <ISCSI port> <Starwind user> <Starwind password> <Starwind HA device name> 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.
You must be logged in to submit a review.
To:
From: