Home Directory Plugins Operating Systems Windows Powershell Disk Check & Automated Cleanup script

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

Powershell Disk Check & Automated Cleanup script

Rating
0 votes
Favoured:
1
Current Version
0.1
Last Release Date
2013-08-06
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios XI
  • Nagios Fusion
Hits
41761
Files:
FileDescription
diskcheck.ps1diskcheck.ps1
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
You'll need a proxy host to run your Powershell commands (or they can be run directly from the server(s)). More info here: http://www.nsclient.org/nscp/discussion/topic/637

This script will detect and monitor any fixed disks, the three variables you need to pass to it are hostname, warn & crit thresholds (in free %s). It won't alert unless those thresholds are met AND the total free space is less than 10GB for warning, 5GB for critical.

When a warning condition occurs, it will automatically remove anything older than 7 days it finds in:
All user profiles temp and temporary internet files
C:windowstemp
C:temp
C:inetpublogslogfiles (IIS)
c:$recycle.bin