Skip to main content

Hi,

I would like to check that a word is not present on my webpage : 

 

/usr/lib/centreon/plugins//centreon_protocol_http.pl --plugin=apps::protocols::http::plugin --mode=expected-content 

I don’t find the good regexp.

Could you help me ?

Thanks,

Hello

 

    --expected-string
Define the expected expression, where
--expected-string='mypattern' is actually a shortcut for
--critical-content='%{content} !~ /mypattern/mi'. It is
recommended to use --critical-content directly.

Something like this?

 

--critical-content='%{content} =~ /mypattern/mi'

critical if there, ok if not


Reply