Ad Widget

Collapse

Windows Agent check returns only one character

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • benzer
    Junior Member
    • Aug 2020
    • 3

    #1

    Windows Agent check returns only one character

    Hi guys,

    there is a host which should be monitored trough the windows agent 2. The agent is installed correctly (passive) and the server is showing up the host as online.

    When I am using the item key "vfs.file.contents" or "vfs.file.regexp", it always returns the first character inside the text file.

    For example:

    Textfile a.txt: this;is;a;text

    vfs.file.contents[C:\temp\a.txt] --> this gives me only "t"
    vfs.file.regexp[C:\temp\a.txt,".*"] --> also gives me only "t"

    There no errors in the logs. Is there something missing?
    I am using current release of Zabbix!
  • benzer
    Junior Member
    • Aug 2020
    • 3

    #2
    problem solved. The encoding was the issue. The file encoding was "unicode", after changing it to "utf-8" it worked perfectly.

    Comment

    Working...