Nagios Exchange Nagios Exchange
  • Home
  • Directory
  • Library
  • Support
  • About

Advanced Search

Build precise queries to find exactly what you need

Search Logic

Select compatible versions

Press ESC to close

Sign In Sign Up
  • Home
  • Directory
  • Library
  • Support
  • About
Plugins4394Themes and Skins11Add-ons744Documentation283Graphics and Logos36View All Categories
LinuxSecuritySNMPFile SystemCloud
New Listings Recently Updated Listings Most Favored Listings Most Popular Listings Most Rated Listings Most Reviewed Listings
Random Project
Other Tutorials And HOWTOs SNMPTT For Trap Monitoring With Nagios
0.0 (0)
69.7K
RSS Feed
Newest Listings Updated Listings
Top Contributors
Yoann LAMY (6)Julien DESMAREST (6)deskwork_itunes142 (4)Davide Lemma (4)Marius (2)
See More
Newest Contributors
zsoltaire (1)RavuAlHemio (1)sowoii (1)Nitatemic (1)cjdepaul (1)
See More

Copyright © 2009-2025 Nagios Enterprises, LLC. All rights reserved.

Privacy PolicyTerms of UseTrademarks
Home > Mike Jackson
MJ

Mike Jackson

@MJ-Lenox

User Stats

Member Since: March 10, 2015

Favorites0

Views

Projects0

No Projects Found
Powershell NRPE NSClient script for HP SmartArray check

new script

I added on to the script felix has created above. This one will return OK with spare drives and return a more specific error to Nagios... --- $array_config_util = 'C:Program Files (x86)CompaqHpacucliBinhpacucli.exe' try { $exec = & $array_config_util 'ctrl all show config' #Write-Output $exec } catch { Write-Host "Problem checking array status (hint: nagioscheck_smartarray.ps1)" exit 3 } # filter results for lines that talk about drives (physicaldrive, logicaldrive) # and do not end with "OK": $not_OK = $exec | Where-Object { $_ -like "*drive*" } | Where-Object { $_ -notlike "*OK)"} | Where-Object { $_ -notlike "*OK, spare)"} if ($not_OK.length -lt 2) { Write-Host "Array status appears OK" Write-Host $not_OK exit 0 } Write-Host "Array status not OK;" $not_OK #write-Host $not_OK exit 2 ---

Reviewed 11 years ago

No Favorites Found

Copyright © 2009-2025 Nagios Enterprises, LLC. All rights reserved.

Privacy PolicyTerms of UseTrademarks
Home Browse Submit Profile