Windows - File locked?

Hi @gera83,

built something that is still a work in progress - or rather, I’m not sure how/what would make it work in all kinds of situations but maybe it helps?
win_openfiles-0.8.mkp (4.9 KB)
Extract of mkp info:

List open files using the windows “openfiles” command
let’s you define a list of regex patterns, if any file matches the list of patterns, an alert is created
the duration of the file lock is not available, so use checkmk delay/max check attempts to regulate
incl. Bakery and Plugin :slight_smile:
TODO:

  • maybe built a discovery rule to split this check by paths? currently all paths are treated within one service
  • use the value_store of check to somehow keep track of lock duration?

Attention: absolutely no warranty or guaranty of when/if possible bugs can be fixed :slight_smile: