Hi,
I am fairly new to Zabbix and love it - just have an issue that's throwing off my availability reports. I created web site monitors for a few of our products.
I created my trigger using the link in the documentation:
Specifically:
I'm using templates for my website monitors. My Scenario looks like:
Scenario Name: Check Now
Step 1 Name: Check Now
URL: http://{HOST.HOST}/content-check/checknow.cfm?mode=all
Required String: OKAY
Required status codes: 200
My Trigger is:
Name: {HOST.NAME} Check Now failed: {ITEM.VALUE}
Expression: {Template GS Check Now:web.test.error[Check Now].strlen()}>0 and {Template GS Check Now:web.test.fail[Check Now].prev()}>0
This is applied to my hosts, with a host name of servername.domain.com
If I look at the trigger for the host:
Name: GS Check Now: {HOST.NAME} Check Now failed: {ITEM.VALUE}
Expression: {servername.domain.com:web.test.error[Check Now].strlen()}>0 and {servername.domain.com:web.test.fail[Check Now].prev()}>0
That looks like it seems.
But the info for the trigger shows:
Cannot evaluate function "v-vwc2pglswb05.ihsglobal.local:web.test.error[Check Now].strlen()".
When I look at the latest data for this host, web.test.error has no entries because there have been no errors.
The response code is returning 200 and the web.test.fail is 0, so I know it's testing OK.
I'm just looking to get more data in my alerts, but it looks like something isn't functioning properly.
If the answer is remove the strlen() function, then so be, it, but then someone should update the manual to reflect this.
Thanks!
I am fairly new to Zabbix and love it - just have an issue that's throwing off my availability reports. I created web site monitors for a few of our products.
I created my trigger using the link in the documentation:
Specifically:
Code:
Example 2
To create a “Web scenario failed” trigger with a useful problem description in the trigger name, you can define a trigger with name:
Web scenario "Scenario" failed: {ITEM.VALUE}
and trigger expression:
{host:web.test.error[Scenario].strlen()}>0 and {host:web.test.fail[Scenario].min()}>0
Make sure to replace 'Scenario' with the real name of your scenario.
Scenario Name: Check Now
Step 1 Name: Check Now
URL: http://{HOST.HOST}/content-check/checknow.cfm?mode=all
Required String: OKAY
Required status codes: 200
My Trigger is:
Name: {HOST.NAME} Check Now failed: {ITEM.VALUE}
Expression: {Template GS Check Now:web.test.error[Check Now].strlen()}>0 and {Template GS Check Now:web.test.fail[Check Now].prev()}>0
This is applied to my hosts, with a host name of servername.domain.com
If I look at the trigger for the host:
Name: GS Check Now: {HOST.NAME} Check Now failed: {ITEM.VALUE}
Expression: {servername.domain.com:web.test.error[Check Now].strlen()}>0 and {servername.domain.com:web.test.fail[Check Now].prev()}>0
That looks like it seems.
But the info for the trigger shows:
Cannot evaluate function "v-vwc2pglswb05.ihsglobal.local:web.test.error[Check Now].strlen()".
When I look at the latest data for this host, web.test.error has no entries because there have been no errors.
The response code is returning 200 and the web.test.fail is 0, so I know it's testing OK.
I'm just looking to get more data in my alerts, but it looks like something isn't functioning properly.
If the answer is remove the strlen() function, then so be, it, but then someone should update the manual to reflect this.
Thanks!
Comment