Das scheint ein Bug im 1.5.0p3 Windows Agent zu sein. - Im 1.4.0p26
funktioniert das einwandfrei.
check_mk.ini
[fileinfo]
# path = C:\Programs\Foo\*.log
# path = M:\Bar Test\*.*
path = C:\check_mk_fileinfo_test\*.txt
path = \\TESTSERVER\TESTSHARE\*.tmp
path = \\192.168.0.7\TESTSHARE\*.tmp
$ check_mk_agent.exe debug > debug.out 2>&1
<<<check_mk>>>
Version: 1.4.0p26
BuildDate: Feb 26 2018
AgentOS: windows
...
<<<fileinfo:sep(124)>>>
1537871224
C:\check_mk_fileinfo_test\file1.txt|7469|1537871203
C:\check_mk_fileinfo_test\file2.txt|19219|1537871198
\\TESTSERVER\TESTSHARE\74887AC8.tmp|106880|1535095501
\\192.168.0.7\TESTSHARE\74887AC8.tmp|106880|1535095501
<<<check_mk>>>
Version: 1.5.0p3
BuildDate: Sep 3 2018
AgentOS: windows
...
2018-09-25 12:30:23.815 [3] Could not find file ''
2018-09-25 12:30:23.815 [3] filesystem error: cannot get file time: No such
file or directory
2018-09-25 12:30:23.815 [3] Could not find file ''
2018-09-25 12:30:23.815 [3] filesystem error: cannot get file time: No such
file or directory
2018-09-25 12:30:23.815 [3] Could not find file ''
2018-09-25 12:30:23.815 [3] filesystem error: cannot get file time: No such
file or directory
2018-09-25 12:30:23.815 [3] Could not find file ''
2018-09-25 12:30:23.830 [3] filesystem error: cannot get file time: No such
file or directory
2018-09-25 12:30:23.846 [3] Could not find file ''
2018-09-25 12:30:23.846 [3] filesystem error: cannot get file time: No such
file or directory
2018-09-25 12:30:23.846 [3] Could not find file ''
2018-09-25 12:30:23.846 [3] filesystem error: cannot get file time: No such
file or directory
2018-09-25 12:30:23.846 [3] Could not find file ''
2018-09-25 12:30:23.846 [3] filesystem error: cannot get file time: No such
file or directory
2018-09-25 12:30:23.846 [3] Could not find file ''
2018-09-25 12:30:23.846 [3] filesystem error: cannot get file time: No such
file or directory
<<<fileinfo:sep(124)>>>
1537871423
C:\check_mk_fileinfo_test\file1.txt|7469|1537871203
C:\check_mk_fileinfo_test\file2.txt|19219|1537871197
|0||0||0||0||0||0||0||0|
Ich hab mir mal die Sourcen angeguckt - das wurde offensichtlich komplett
nach C++17 umgeschrieben.
Dabei ist mir aufgefallen das in der SectionFileinfo.h die
<experimental/filesystem> inkludiert ist.
Die MSDN beschreibt dazu hier:
https://docs.microsoft.com/en-us/cpp/standard-library/filesystem?view=vs-2017
folgendes
#include <experimental/filesystem> // C++-standard header file
name#include <filesystem> // Microsoft-specific implementation header
file name
While most functionality is common to both operating systems, this document
identifies where differences occur. For example:
-
Windows supports multiple root names, such as c: or \\network_name. A
filesystem consists of a forest of trees, each with its own root directory,
such as c:\ or \\network_name\, and each with its own current directory,
for completing a relative pathname (one that is not an absolute pathname).
-
Posix supports a single tree, with no root name, the single root
directory /, and a single current directory.
Vielleicht wÃŒrde die Microsoft Implementierung funktionieren?
Kann das wer von den Devs mal ausprobieren?
Danke und GrÃŒÃe,
JÃŒrgen
Am Di., 25. Sep. 2018 um 10:38 Uhr schrieb JÃŒrgen Albersdorfer <
Post by Jürgen Albersdorfer1.) Wie sieht deine [fileinfo] Sektion in der check_mk.ini aus.
"LOCAL SYSTEM" - Dieser Account darf keine Netzwerkzugriffe ausfÃŒhren.
LÀuft dein Dienst mit einem Account der Netzwerkzugriffe ausfÌhren und auf
den Share zugreifen kann?
3.) Welche Ausgabe produziert `check_mk_agent.exe debug > debug.out 2>&1`
in der `<<<fileinfo:sep(124)>>>` Sektion? - Dabei darauf achten, dass der
test auch mit dem Account ausgefÌhrt wird, mit dem spÀter auch der Dienst
lÀuft. - Ggf. `psexec` aus der Sysinternals oder pstools Suite verwenden
oder `runas` benutzen.
4.) auf welcher Betriebssystem/Version lÀuft der Agent?
5.) welche Betriebssystem/Version stellt den Share bereit?
Vielleicht bekommt deine Frage mit diesen Informationen mehr Gehör ...
GrÃŒÃe,
JÃŒrgen
Am Mo., 24. Sep. 2018 um 12:46 Uhr schrieb Fabian Greger <
Post by Fabian GregerHallo Daniel,
Ja des ist mir auch schon aufgefallen, ich hab ihn ein Benutzerkonto
zugewiesen das zugriff darauf hat. Er lÀuft nicht mehr auf dem Systemkonto
Gruà Fabian
_______________________________________________
checkmk-de mailing list
Verwaltung & Abmeldung unter
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-de