Active Checks

check_storage_pool.ps1

Description:

Check Windows Storage Spaces and Status of all local disks through NSClient / NRPE

Sample Output: OK: (POOL:Primordial Health:OK Operational:OK) (DISK:PhysicalDisk0 Health:OK Operational:OK) (DISK:PhysicalDisk1 Health:
OK Operational:OK) (DISK:PhysicalDisk2 Health:OK Operational:OK) (DISK:PhysicalDisk3 Health:OK Operational:OK)

NSClient Integration:

copy check_storage_pool.ps1 in the nsclient/script folder

add to nsclient.ini:

[/settings/external scripts/wrappings]
ps1=cmd /c echo scripts%SCRIPT% %ARGS%; exit($lastexitcode) | powershell.exe -command –

[/settings/external scripts/wrapped scripts]
alias_storage_pool = check_storage_pool.ps1

Current Version

0.1

Last Release Date

2014-08-22

Compatible With

  • Nagios 3.x
  • Nagios 4.x

Owner

License

GPL


Project Files
Project Notes
########################################################################## # # NAME: check_storage_pool.ps1 # # AUTHOR: Martin Weber, and GmbH # EMAIL: martin.weber aaaaaaaat atnd.de # # COMMENT: Check status of local disk and all windows storage pools # for NSClient # # CREDITS: To Nadeschda, my lovely dog ;-) # # Return Values for NRPE: # Everything OK - OK (0) # Failed - FAILED (2) # # CHANGELOG: # 0.1 2014-08-22 - initial version # ##########################################################################
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
19,670