Fixed discovery function for fileinfo groups and equalize agent output of fileinfo
agents
Message-ID: <551a9d69.2w4b49gN7ROrf3MZ%sr(a)mathias-kettner.de>
User-Agent: Heirloom mailx 12.5 6/20/10
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Module: check_mk
Branch: master
Commit: 198af74bdf59aff5828385cf63ebbc462c0a16d9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=198af74bdf59af…
Author: Sven Rueß <sr(a)mathias-kettner.de>
Date: Tue Mar 31 15:05:49 2015 +0200
#1954 FIX fileinfo / fileinfo.group: Fixed discovery function for fileinfo groups and
equalize agent output of fileinfo agents
Discovery function now handles the agent output as followed:
<ul>
<li>File Pattern match: For every matching file a new item is returned and a new
service is created.</li>
<li>File Pattern mismatch: This pattern will be ignored. No item is returned and no
service is created.</li>
<li>Group Pattern match or mismatch: For every group a new item is returned and a
new service is created.</li>
</ul>
Supported agents on Windows, Linux, FreeBSD, MacOSX and Solaris now return the same agent
output as followed:
<Searchpattern or Absolute file path>|<Filesize or
"missing">|<Modification time of file>
---
.werks/1954 | 18 +++++
ChangeLog | 4 +-
agents/check_mk_agent.freebsd | 9 ++-
agents/check_mk_agent.linux | 9 ++-
agents/check_mk_agent.macosx | 9 ++-
agents/check_mk_agent.solaris | 22 ++++--
checkman/fileinfo | 118 ++++++++++++++++----------------
checkman/fileinfo.groups | 150 +++++++++++++++++++++--------------------
checks/fileinfo | 4 +-
9 files changed, 195 insertions(+), 148 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=198af74bdf…