Windows

check_csv_freespace.ps1 for MS HyperV

Description:

checks your mounted CSV for free disk space

2014-07-15: fixed missing exitcode

Current Version

0.9a

Last Release Date

2014-07-15

Compatible With

  • Nagios 3.x

Project Files
Project Notes
as your Cluster Shared Volume (CSV) is mounted as c:ClusterStorage 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 -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
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
4 (1)
Favorites
0
Views
44,080