Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
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.
Current Version
1.0
Last Release Date
2013-08-14
Owner
Barry Mulholland
License
GPL
Compatible With
Original version 1.0
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 -
You must be logged in to submit a review.
To:
From:
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!