Skip to main content
Question

Invert critical-content for http plugin

  • December 13, 2024
  • 2 replies
  • 71 views

Forum|alt.badge.img+8

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,

2 replies

ponchoh
Centreonian
Forum|alt.badge.img+14
  • Centreonian
  • December 17, 2024

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


Forum|alt.badge.img+8
  • Author
  • Steward **
  • August 5, 2025

Thanks a lot