REF: https://mathias-kettner.de/checkmk_check_fileinfo.html
Currently Windows, Linux, FREEBSD, MACOSX and Solaris agents supports this type of check.
For windows, the configuration is done in check_mk.ini in the section [fileinfo]. Put one or more entries of the format path = C:\Some Dir\*.log into this section. The agent will send all files that match the pattern. Wildcards are only allowed in the filename part, not in the directory path.
For Linux, FREEBSD, MACOSX and Solaris the configuration is done via fileinfo.cfg located in the $MK_CONFDIR (usually /etc/check_mk/fileinfo.cfg). To add files to the check, simply add one path pattern /tmp/*.log per line. Wildcards or patterns can be used as usual on the console.
沒有留言:
張貼留言