mtakaki / cachet-url-monitor

URL monitor plugin for cachethq.io
MIT License
124 stars 48 forks source link

Url unreachable issue - question #110

Open Project-neuron opened 3 years ago

Project-neuron commented 3 years ago

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 commented 3 years ago

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.

mtakaki commented 3 years ago

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