Ad Widget

Collapse

false positives on web page tests

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zabbix_admin12
    Junior Member
    • Nov 2006
    • 4

    #1

    false positives on web page tests

    I am try to setup a test for web pages that stops false positives by testing multiple times on zabbix 1.1.6

    I have the following for a single test but it creates a false positive a couple times a day.
    {foo.foo_domain.com:web.page.regexp[10.47.100.60,/page,80,Location,8].str(Location)}=0

    From my reading adding .min(#3) should require 3 tests before running the action but is not accepted as a valid trigger expression.

    IE
    {foo.foo_domain.com:web.page.regexp[10.47.100.60,/page,80,Location,8].str(Location).min(#3)}=0

    Is my syntax incorrect or is just not supported with web.page.regexp.

    Is there another solution or do I have to go back to zabbix_sender and use a perl script?

    Thanks a lot
  • Calimero
    Senior Member
    • Nov 2006
    • 481

    #2
    Maybe you could use the "change()" function.

    1st condition: .str(what I'im looking for)
    2nd condition: .change(0) = 0

    So that both the current value and the previous one are the same:

    {your_host:web.page.regexp[localhost,/path.php,80,KO].str(KO)}=1&{your_host:web.page.regexp[localhost,/path.php,80,KO].change(0)}=0

    There's also the count() function that could be useful.

    Hope it helps.

    Comment

    Working...