Ad Widget

Collapse

Trigger based on text

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bytesize
    Member
    • Aug 2005
    • 71

    #1

    Trigger based on text

    Hi,

    I have a trigger which looks like this:

    Code:
    {_All_Servers:web.page.regexp[127.0.0.1,apachetest.html,80,apache_running,14].str(apache_running)}=0
    The item is defined as type text. So I want the trigger to go ON when the web.page.regexp item does not find the text "apache_running" on the webpage it is testing.

    .str does not seem to be working (according to the documentation the type has to be string, but I cannot find this option anywhere) but I dont see how else I could run this test.

    Diff would work, but it would reset itself if the text is not found for more than a couple of samples in a row.

    How can I make this trigger work? Thanks!

    John
Working...