Hi,
I don’t know if it changed recently or if it has always be like that, but I noticed the following: if --expected-content has a value, then --critical-content is ignored. It means, if one want to check both a return code and the presence of a string in the page content, one should not use --critical-content=’ %{code} != 200 and %{code} != 401’ --expected-string=foo (because then only the presence of “foo” would be checked!), but what must be used is --critical-content=’ %{code} != 200 and %{code} != 401 or %{content} !~ /foo/mi’.
Is it something that changed recently? Is this something reliable (ie: it won’t change in the futur) ?
Question
Behavior of centreon_protocol_http.pl
Login to the community
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
