...
Info |
---|
Please be aware that paths and files are case-sensitive, even in the Windows agent. |
2. Monitoring of single files
...
for example like this with a threshold for the maximum age
2. Monitoring of file groups
Sometimes it is desired not to monitor the individual files but a file group instead. To do this you need to create a rule oh the type "File Grouping Patterns"
(Setup → Services → Service monitoring rules → File Grouping Patterns)
There you have to specify a name for the group, "Include Patterns" and optionally "Exclude Patterns"
Info |
---|
Please be aware that paths and files are case-sensitive, even in the Windows agent. |
After a Re-Discovery the single file services will vanish and the file group will appear
and you can add the new service to the monitoring.
After that you can create a rule by clicking on the "hamburger menu" / Parameters for this service
and click on "Size, age and count of file groups" to create a rule as desired,
for example like this:
3. Special case: file(s) does not exist during discovery
Sometimes you have the special use case, where the single files or files that are part of file groups do not exist (during discovery). E.g. you want to monitor the quarantine directory of an antivirus software, which should be normally empty.
As the Checkmk Discovery can only discover things that exist during the discovery process, we have a logical problem here.
To circumvent this issue you have to create the "Size and age of single files" and "Size, age and count of file groups" rules from above not in the "Discovery rule" section of the setup menu, but in the "Enforced services" part of the setup. So the rules can be found here:
- SetupServices → Enforced services → Size and age of single files
- SetupServices → Enforced services → Size, age and count of file groups
By creating such an enforced rule you can force Checkmk to create a service check, and you are able to monitor files which are not present during discovery.
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...