Ad Widget

Collapse

Extracting a simple value from a .txt file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ivooo
    Junior Member
    • Nov 2015
    • 1

    #1

    Extracting a simple value from a .txt file

    ...........
    Last edited by Ivooo; 11-11-2015, 11:49.
  • Joenieburg
    Junior Member
    • Jan 2015
    • 5

    #2
    Extracting a simple value from a .txt file Reply to Thread

    Hello Ivo,

    Togehter we figured this one out.
    The file was created by powershell were we read out the admin groups and write the info to a script file with the statement
    $users.count > c:\temp\domainadmin.txt
    Then Windows write the file in UTF-16LE (met BOM) (found through geany file properties)
    Zabbix can not read this.
    No we exported the file from powershell with this line instead
    [System.IO.File]::WriteAllLines('c:\temp\domainadmin.txt', $users.count);

    and the file was saved as UTF-8 (zonder BOM)

    After that zabbix could read the file in normal ways

    Comment

    Working...