Home Directory Plugins Operating Systems Windows NRPE check_windows_volume_mount_point_freespace

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

Directory Tree

check_windows_volume_mount_point_freespace

Current Version
1.0
Last Release Date
2013-08-14
Compatible With
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI
License
GPL
Hits
36168
Files:
FileDescription
CheckWindowsVolumeMountPointFreeSpace.ps1Original version 1.0
Nagios CSP

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!
This script will execute checks against volume mount points using WMI via powershell and nsclient++.

Can be used to check available free space, and return OK, WARNING or CRITICAL status to Nagios.
Reviews (1)
Modified slightly for dynamic variables, so that you can input a volumename instead, and specific a warning / critical -
Comment out the previous Critical / Warning variables or replace them with below -

#Modified for dynamic variables
#use as script.ps1 volumename warningvalue critcalvalue
$Volumename = $args[0]
$Critical = $args[2]
$Warning = $args[1]

Replace this line -
$volumes = Get-WmiObject -computer $server win32_volume | Where-object {$_.Label -eq $Volumename} | ForEach-Object {

Add args to your nsclient.ini -
check_windows_volume_mount_point_freespace_custom=cmd /c echo scriptsCheckWindowsVolumeMountPointFreeSpaceCustom.ps1 $ARG1$ $ARG2$ $ARG3$; exit($lastexitcode) | PowerShell.exe -Command -