Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_storage_pool.ps1
0.1
2014-08-22
- Nagios 3.x
- Nagios 4.x
GPL
19666
File | Description |
---|---|
check_storage_pool.ps1 | check_storage_pool.ps1 |
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
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
#
##########################################################################
#
# 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)
Be the first to review this listing!