Hello,
We are running Zabbix 2.0.6 at work.
I want to monitor some very specific tables on a Microsoft SQL Server and since the database monitor is not working correctly on 2.0.6 for me I thought I'd do a workaround.
I make a job which fills a .txt file on the server and want to make a trigger based on a vfs.file.regmatch-item.
My file looks like this:
My item looks like this:
So basically I want to check if there is a zero in place. If it shows any other value the item should result in '1'.
This is not working - it's never '1'. It seems to me that the regex is correct, but zabbix can't handle it.
I'm thankful for any help on this!
We are running Zabbix 2.0.6 at work.
I want to monitor some very specific tables on a Microsoft SQL Server and since the database monitor is not working correctly on 2.0.6 for me I thought I'd do a workaround.
I make a job which fills a .txt file on the server and want to make a trigger based on a vfs.file.regmatch-item.
My file looks like this:
Code:
Job 'JOBNAME' : Step 1, 'SQL query' : Began Executing 2013-07-26 18:03:00
-----------
0
(1 rows(s) affected)
vfs.file.regmatch[C:\FOLDER\NAMEOFFILE.txt,/-----------\s0/gm,ASCII]
This is not working - it's never '1'. It seems to me that the regex is correct, but zabbix can't handle it.
I'm thankful for any help on this!
Comment