Simon icon Simon
Flexible server monitoring

Content Match with Script

Hi, I am trying to create an http monitor with a content match. I created a script Service but I can't seem to figure out how to relate a Failure to a Variable.

The script is a simple curl with a if else clause. If > 0 Success, else Failure. Does anyone have an example of a working content match?

Sorry, I was making it too hard. Working now. :)

David Sinclair's picture

Re: Content Match with Script

The easiest way to do content match on a web page is to use the Web (HTTP) service with the Smart Change Detection feature.

Version 2.6 will add more advanced content analysis filtering. It'll be released in a month or two.