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 filelock

Rating
0 votes
Favoured:
0
Current Version
1.0
Last Release Date
2017-04-13
Compatible With
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI
Hits
6243
Files:
FileDescription
check_filelock.ps1check_filelock.ps1
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!
check filelock
PowerShell script used to determine if a file is open and locked.
This PowerShell script can be used to determine if a file is open and locked. It returns service state 0(OK) if the file isn't opened, a 1(WARNING) if it is opened but not locked, and a 2(CRITICAL) if it is opened and locked. It will also return the username of the person who currently has it opened if the state is WARNING or CRITICAL.

Usage:

.check_filelock.ps1 [filename]