mtakaki / cachet-url-monitor

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

Is there a way to customize the message set? #116

Open kamah82 opened 3 years ago

kamah82 commented 3 years ago

Quick question. Is there a way to customize the error message generated? I.e. "The URL is unreachable: GET https://some.url".

Thanks.

InFerYes commented 3 years ago

You can change the code in configuration.py

https://github.com/mtakaki/cachet-url-monitor/blob/b339334b2c5e912403c0956b59e189e3629b5919/cachet_url_monitor/configuration.py#L170

martabal commented 3 years ago

I use the docker version of cachet-url-monitor, i can't edit configuration.py. It would be nice to customize the error message with the config.yml file!

InFerYes commented 3 years ago

Are you not able to access the contents of the container?

martabal commented 3 years ago

Yes i can edit with the docker exec -it, but still have the "The URL is unreachable: GET https://some.url" message

JeremiePlam commented 1 year ago

I also am running docker and I have edited both /cachet_url_monitor/configuration.py and /build/lib/cachet_url_monitor/configuration.py in the container to no avail. It still displays a partial outage rather than a major outage both in the log and the Cachet status page.

Any help would be appreciated.

image