Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
checks your mounted CSV for free disk space 2014-07-15: fixed missing exitcode
Current Version
0.9a
Last Release Date
2014-07-15
Owner
nomoresecrets
Compatible With
as your Cluster Shared Volume (CSV) is mounted as c:ClusterStorage<CSV-Name> there's no easy way to check if your Storage is running out of diskspace
the script returns status as well as perf-data
running the script on the hyperv-host:
.check_csv_freespace.ps1 -n <CSV-Name> -w 80 -c 90 e.g.: .check_csv_freespace.ps1 -n csv1-scsi -w 80 -c 90
how to use with nagios:
* copy the script to your nsclient++ directory * add command alias to nsc.ini * command[check_csv_freespace]=cmd /c echo .check_csv_freespace.ps1 -n $ARG1$ -w $ARG2$ -c $ARG3$ | powershell.exe -command - * set allow_arguments=1 * restart nsclient++ service * add nagios command
define command { command_name check_hyperv_csv_freespace command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_csv_freespace -a $ARG1$ }
* add nagios service check
define service{ use remote-service hostgroup_name hyperv-hosts servicegroups hyperv-services service_description Cluster: CSV1-SCSI free disk space check_command check_hyperv_csv_freespace!csv1-scsi 80 90 }
License: no license
Changes: 2014-07-15: fixed missing exitcode
You must be logged in to submit a review.
To:
From: