Home Directory Addons Active Checks check_storage_pool.ps1

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

check_storage_pool.ps1

Rating
0 votes
Favoured:
0
Current Version
0.1
Last Release Date
2014-08-22
Compatible With
  • Nagios 3.x
  • Nagios 4.x
License
GPL
Hits
14824
Files:
FileDescription
check_storage_pool.ps1check_storage_pool.ps1
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
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
##########################################################################
#
# 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
#
##########################################################################