Hi,
I have an ERRORLOG file from Microsoft SQL Server that I'm trying to monitor it for a specific regex without success. If I open the file in notepad++ it tells me it is 'UCS-2 Little endian' encoded. That maps to Code Page Identifier of 1200 (according to a few Google searches).
I've tried to describe my problem as simply as I can as follows:
1. Create a 'UCS-2 Little endian' encoded file (with Notepad++) with a few lines (from the ERRORLOG file):
2. On the client Windows machine save as C:\test.txt
3. From the server run:
...the first line of the file prefixed with some 'junk'.
4. From server now run :
...it doesn't find anything.
5. Change the encoding (using Notepad++ convert ) to ANSI encoding; the above commands work as expected.
I have the same problem if I use the 'log' or 'logrt' item (which is actually what I really want to use).
I'm using: zabbix_get v2.2.1 running on Linux and the zabbix_agentd is 2.4.0 running on Windows.
Any help or pointers to how I can make this work would be gratefully received.
Many thanks Jim
I have an ERRORLOG file from Microsoft SQL Server that I'm trying to monitor it for a specific regex without success. If I open the file in notepad++ it tells me it is 'UCS-2 Little endian' encoded. That maps to Code Page Identifier of 1200 (according to a few Google searches).
I've tried to describe my problem as simply as I can as follows:
1. Create a 'UCS-2 Little endian' encoded file (with Notepad++) with a few lines (from the ERRORLOG file):
Code:
2014-09-11 19:55:40.03 Server Microsoft SQL Server 2005 - 9.00.3042.00 (Intel X86) Feb 9 2007 22:47:07 Copyright (c) 1988-2005 Microsoft Corporation
3. From the server run:
Code:
$ zabbix_get -s <hostname> -k "vfs.file.regexp[C:\test.txt,Server,1200]" 2014-09-11 19:55:40.03 Server Microsoft SQL Server 2005 - 9.00.3042.00 (Intel X86) $
4. From server now run :
Code:
$ zabbix_get -s <hostname> -k "vfs.file.regexp[C:\test.txt,Feb,1200]" $
5. Change the encoding (using Notepad++ convert ) to ANSI encoding; the above commands work as expected.
I have the same problem if I use the 'log' or 'logrt' item (which is actually what I really want to use).
I'm using: zabbix_get v2.2.1 running on Linux and the zabbix_agentd is 2.4.0 running on Windows.
Any help or pointers to how I can make this work would be gratefully received.
Many thanks Jim
Comment