cachet-url-monitor icon indicating copy to clipboard operation
cachet-url-monitor copied to clipboard

Url unreachable issue - question

Open Project-neuron opened this issue 5 years ago • 2 comments
trafficstars

Hello

I am running into an issue with the system stating that the url is unreachable

endpoints:
  - name: Apps 
    url: https://apps.ithaca.edu/
    method: GET
    timeout: 10
    expectation:
      - type: HTTP_STATUS
        status_range: 200-300
    allowed_fails: 0
    frequency: 30
    component_id: 1
    action:
      - CREATE_INCIDENT
      - UPDATE_STATUS
    public_incidents: true
    latency_unit: ms
cachet:
  api_url: http://<url>/api/v1
  token:
    - type: TOKEN
      value: "my_token" 

WARNING [2020-10-05 20:13:37,479] cachet_url_monitor.configuration.Configuration.Apps at Ithaca - The URL is unreachable: GET https://apps.ithaca.edu WARNING [2020-10-05 20:13:37,480] cachet_url_monitor.configuration.Configuration.Apps at Ithaca - Failure #1 with threshold set to 0


curls that I run work fine from the box I have the containers in. So I am not sure what I am missing. 

Any assistance would be appreciated. I looked over the last time this issue was brought up and tried the suggestions there but to no avail. 

Best 

Project-neuron avatar Oct 02 '20 21:10 Project-neuron

I managed to get google.com to work, however, I am still having issues with the URL https://apps.ithaca.edu. Every other URL seems to work fine but this one. I have curl'ed from the system to make sure that it is reachable and the curl's work just fine. I have also tried another system with a similar url https://sakai.ithaca.edu/ which works fine as well.

Project-neuron avatar Oct 05 '20 20:10 Project-neuron

So, you're running this through docker? Have you tried running curl from inside the container, instead at the host?

mtakaki avatar Nov 26 '20 07:11 mtakaki