Hi,
I am trying to add a check on a web page to ensure it is up and running.
I tried with the HTTP plugin with the HTTP-Response-Time service template. By default it will fail only if the web server is not responding but it will be OK even with a 404 error for exemple. So I guess I have to use the option --critical-status to check that return code is 200. This gave me the following command
/usr/lib/centreon/plugins//centreon_protocol_http.pl
--plugin=apps::protocols::http::plugin
--mode=response
--hostname=myhostname
--proto='https'
--port='443'
--urlpath=''
--warning=''
--critical=''
--http-peer-addr='my_web_page_url'
--critical-status='%{http_code} != 200'However when the web page URL returns a status different from 200 the test is still OK.
I guess I should use a different syntax for the --critical-status parameter? But all the exemples I found refers to this syntax.
I might have to use a different plugin or template to do what I seek? But I could not find which one then.
Your help or comments are welcome.

