Web Monitor - Windows Authntication

I am trying to create a http monitor for the site hosted internally using check_http command but it is failing with error “401 Unauthorized”. The web site is configured with windows authentication.

I have tested that the site is prompting for user credentials when I try to open it from ICINGA 2 server.

Could someone please advise how to resolve this issue?

Hi,

you can pass basic auth credentials into the http CheckCommand via http_auth_pair.

apply Service "http" {
  check_command = "http"

  //...

  vars.http_auth_pair = "user:pass"
} 

Cheers,
Michael

1 Like