Hello, I am new to Zabbix and trying to configure what I consider to be a fairly simple trigger: It should activate if a particular string is found in a log file on the server.
In this particular case, I am testing using a test file called C:\Temp\testlog.txt which contains, among other things, the text "test".
I have created triggers to find the text "test", and also other triggers to find the text "asdfgh", which does NOT occur in the text file.
As I understand it, the find() function returns either a 1 or a 0, depending on whether it found the string or not. However, in my testing, everything just evaluates to "OK", as seen in this screenshot:

I am not sure what "OK" means. The documentation just says "This is a normal trigger status", but what does that mean here? Does that mean that it found the string, or it didn't find the string?
Clearly, the result of find() cannot be 0, 1, and 2 all at the same time. Yet regardless of what I check for, the trigger just says "OK" for everything.
So, my questions are...
1. What does "OK" mean? Does that mean that the find() function found the string, or it didn't find the string?
2. Is there any way to see what the find() function is actually outputting? "OK" is nice, but I thought it is supposed to output a 1 or a 0.
3. Have I made a mistake in the configuration of my triggers?
Thanks in advance for the help...
In this particular case, I am testing using a test file called C:\Temp\testlog.txt which contains, among other things, the text "test".
I have created triggers to find the text "test", and also other triggers to find the text "asdfgh", which does NOT occur in the text file.
As I understand it, the find() function returns either a 1 or a 0, depending on whether it found the string or not. However, in my testing, everything just evaluates to "OK", as seen in this screenshot:
I am not sure what "OK" means. The documentation just says "This is a normal trigger status", but what does that mean here? Does that mean that it found the string, or it didn't find the string?
Clearly, the result of find() cannot be 0, 1, and 2 all at the same time. Yet regardless of what I check for, the trigger just says "OK" for everything.
So, my questions are...
1. What does "OK" mean? Does that mean that the find() function found the string, or it didn't find the string?
2. Is there any way to see what the find() function is actually outputting? "OK" is nice, but I thought it is supposed to output a 1 or a 0.
3. Have I made a mistake in the configuration of my triggers?
Thanks in advance for the help...
Comment