Skip to content

Script quits when url is not accessible #1

Description

@Dragao75

Hi,

Your script is doing things very well. But if an url is not accessible the script quits with an error:
check_http_win.vbs(67, 3) msxml3.dll: A connection with the server could not be established

Would it be possible to catch this and convert it to : HTTP CRITICAL - " & MyUrl & " returns " & http.Status

I am trying to use the script with Nagios/NSClient++ and want to get alarmed when a site is not reachable.

Thanks in advance

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions