We are using check_http for monitoring URLs. But getting the Warning alert:
HTTP WARNING: HTTP/1.1 404 Not Found - 492 bytes in 0.029 second response time
Host Definition:
object Host "WEB02" {
import "generic-host"
address = "*.*.*.*"
vars.service100 = "D"
vars.http_vhosts["https://www.****.com/"] = {
http_vhost = "https://www.****.com/"
http_ssl = true
}
vars.http_vhosts["https://www.####.com/"] = {
http_vhost = "https://www.####.com/""
http_ssl = true
}
vars.os = "Windows"
vars.groups = ["Windows Servers"]
}
Service Definition:
apply Service for (http_vhost => config in host.vars.http_vhosts) {
import "service_check"
check_command = "http" vars += config
}