Ordner überwachen (File Count)

Noch ein kleiner Nachtrag zu meinen Tests:

Habe das plugin "mk_filestats.py" abgelegt unter /usr/lib/check_mk_agent/plugins und die Configdatei /filestats.cfg unter /etc/check_mk.

Unten ein Ausschnitt der Configdatei. Es soll der Ordner /etc/test1 überwacht werden.
Wenn ich zum test check_mk_agent | grep filestats ausführe, dann bekomme ich nur
<<filestats:sep(0)>> zurück

[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/

input_patterns: /etc/test1/

- “~” will be expanded (using os.path.expanduser)

- ommiting the last slash and/or adding an asterisk changes nothing

- we process anything that is matched by the above globbing

pattern. If it’s a directory, recursively process all of

its content.