Hi team,
I would like to understand how can i do the http checks with different codes & When any http says unauthorized it says the warning notification with 401 unauthorized. I want this to be ok instead of unauthorized warning. is there anyway i can do this?
Services.conf
apply Service for (http_vhost => config in host.vars.http_vhosts) {
import “generic-service”
display_name = "HTTP: " + http_vhost
check_command = “http”
notes = http_vhost
vars += config
}
In host i have mentioned these custom attributes:
vars.http_vhosts["ReportServer_SSRS"] = {
http_uri = "/applicationA"
}
vars.http_vhosts[“Reports_SSRS”] = {
http_uri = “/applicaitonB”
}
with this metric, I am getting the below warning. I want this to be okay.