alerta-contrib/integrations/urlmon
skob 63dfadc071 urlmon: 2to3 + ssl checker (#221)
* fix

* comments

* forward plugin: [fix] ability to configure via env + refactor via @satterly comment

* forward: [fix] some bugs with forwarding

* urlmon: [impr] Ability to set differents endpoints for checkers

* urlmon: [impr] 2to3 + ssl expire check

Ability to run urlmon on py3 env.
Ability to check ssl expiration dates for monitored urls

* urlmon: [fix] typo

* urlmon: [fix] typo

* urlmon: [fix] remove urllib.__version__ from user-agent

* urlmon: [fix] typo error in connect

* urlmon: [fix] many fixes for ssl-checker

* urlmon: [fix] close old events
2018-10-08 23:43:38 +02:00
..
README.md Ability to set up differents api-endpoints for differents check in urlmon (#196) 2018-06-12 23:34:07 +02:00
settings.py urlmon: 2to3 + ssl checker (#221) 2018-10-08 23:43:38 +02:00
setup.py Make everything MIT license 2017-05-10 10:09:13 +01:00
urlmon.py urlmon: 2to3 + ssl checker (#221) 2018-10-08 23:43:38 +02:00

URL Monitoring Integration

Monitor any web URL and generate alerts for slow, unresponsive or error responses.

For help, join Gitter chat

Installation

Clone the GitHub repo and run:

$ python setup.py install

Or, to install remotely from GitHub run:

$ pip install git+https://github.com/alerta/alerta-contrib.git#subdirectory=integrations/urlmon

Configuration

Add URLs to check to settings.py in the following format:

checks = [
    {
        "resource": "www.google.com",
        "url": "http://www.google.com?q=foo#q=foo",
        "environment": "Production",
        "service": ["Google", "Search"],
        "api_endpoint": "http://localhost:8080",
        "api_key": "<APIKEY>"
    },
    {
        "resource": "guardian-football",
        "url": "http://www.guardian.co.uk/football",
        "environment": "Production",
        "service": ["theguardian.com", "Sport"],
        "tags": ["football"]
    },
]

Regex Matches

Add the search setting and URLmon will search the response body for the text and generate a HttpContentError if it is not found.

You can set up differents api andpoints for differents checkers (see example above).

References

License

Copyright (c) 2014-2016 Nick Satterly. Available under the MIT License.