Http check - 401 needs to be as critical

Hi Team,

We have few critical http checks… where we wanted to notify every status code except 200 as critical.

But sometimes when this http check says unauthorize, it is giving as warning…

It show as critical for 401 or any other status except 200.

Here, mY http check from hostfile… Can you please advise on this?

vars.aws_http_vhosts["***********************"] = {
http_uri = “***************y”
http_port = 9090
}

Hi,
take a look at the docs: https://www.monitoring-plugins.org/doc/man/check_http.html
There exists the parameter “-e” where you can define which text or state you expect.