Hello,
We need to monitor age of the files in multiple subfolders. Setup and requirements:
-
OS: both Windows and Linux
-
Folder containing multiple subfolders per application/website
-
All subfolders contain number of xml files that should be removed after being processed. Whole process should be completed within seconds, so files should be present in folder for no
longer than ~30-60 s
-
Common problem when processing of the files is blocked and may not clear itself. The best indication is when files stay in directories for longer tham ~15 mins. As a remedy restart of
the service is required.
I was looking at the
fileinfo plugin but as far as I can see it will monitor only files in specific folder but not in subfolders.
Also I would appreciate good example for monitoring e.g.
path = C:\Programs\Foo*.xml
where alarm will fire if age will be 15 mins or higher and than clear when dropped below.
As I understand if file is not present in path plugin reports as UNKNOWN
-
What happens when alarm was fired (threshold reached) and resolution was provided (files disapered in location)? Will I need to clear Vanished Service each time?
-
How to automaticly handle the event (restart specific service)
Any help, examples, pointers to resorces would be greatly appreciated
Regards,
Rafal Bialek
Hi Rafael,
path globbing works in Linux agent fileinfo.cfg like this:
/tmp//.log
…unfortunately the Windows API the cfg lines are forwarded to does not support path globbing so that does not work in Windows agent (yet).
As long as you do not want to monitor each file itself you should add two rules to WATO:
-
“File Grouping Patterns” to group files together
-
“Size, age and count of file groups” for the real service check - beware to use the same file group name you used in 1)
Parameters can be set in 2).
HTH,
Marcel
···
Rafal Bialek bialy_rb@hotmail.com schrieb am So., 25. Sep. 2016 um 11:36 Uhr:
Hello,
We need to monitor age of the files in multiple subfolders. Setup and requirements:
OS: both Windows and Linux
Folder containing multiple subfolders per application/website
All subfolders contain number of xml files that should be removed after being processed. Whole process should be completed within seconds, so files should be present in folder for no
longer than ~30-60 s
Common problem when processing of the files is blocked and may not clear itself. The best indication is when files stay in directories for longer tham ~15 mins. As a remedy restart of
the service is required.
I was looking at the
fileinfo plugin but as far as I can see it will monitor only files in specific folder but not in subfolders.
Also I would appreciate good example for monitoring e.g.
path = C:\Programs\Foo*.xml
where alarm will fire if age will be 15 mins or higher and than clear when dropped below.
As I understand if file is not present in path plugin reports as UNKNOWN
What happens when alarm was fired (threshold reached) and resolution was provided (files disapered in location)? Will I need to clear Vanished Service each time?
How to automaticly handle the event (restart specific service)
Any help, examples, pointers to resorces would be greatly appreciated
Regards,
Rafal Bialek
checkmk-en mailing list
checkmk-en@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en