Jiuka
(Marius Rieder)
May 6, 2021, 1:56pm
4
Hi @hemant-cmk
The first rule mentioned will be baked into the agent as the agent needs to know which files to report on. If you use cre you will need to deploy the plugin/configuration yourself to the agent. There is an example configfile to start of with for writing the required config.
# Copyright (C) 2019 tribe29 GmbH - License: GNU General Public License v2
# This file is part of Checkmk (https://checkmk.com). It is subject to the terms and
# conditions defined in the file COPYING, which is part of this source code package.
# This is an example configuration for the mk_filestats plugin.
# To get an extensive elaboration on these values, run "mk_filestats.py --help"
[DEFAULT]
# This section is optional. You can use it to set default options,
# which are applied to all sections. In particular, you can
# override the hard coded default of "output: file_stats"
# and the default value of the subgroups delimiter, in case you
# would like to use "@" in any of the names of your groups
output: count_only
subgroups_delimiter: @
[aix agent files]
# The section name will be used as the item name by Checkmk
# get all files in agent dir
input_patterns: ~/git/check_mk/agents/
# - "~" will be expanded (using os.path.expanduser)
This file has been truncated. show original
Regards Marius