Ad Widget

Collapse

Trigger age 17+days

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mdiorio
    Junior Member
    • Mar 2016
    • 27

    #1

    Trigger age 17+days

    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:
    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.
    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!
    Last edited by mdiorio; 06-04-2016, 15:16. Reason: Change relevancy of title
  • mdiorio
    Junior Member
    • Mar 2016
    • 27

    #2
    So I got "lucky" this morning and one of my triggers fired and that trigger is no longer having an issue. I'm guessing that when web.test.error[Scenario].strlen()}>0 is used, the initial value of web.test.error is null and that's why it can't evaluate >0.

    Once the trigger fires, web.test.error actually has a value, and continues to do so after the trigger is cleared.

    So ultimately, it appears that there is no real use for web.test.error at all in this scenario.

    Can someone explain why I'd want to use both web.test.error and web.test.fail in the trigger?

    If web.test.fail > 0, then there should also be an item in web.test.error.

    Comment

    Working...