https://github.com/walkr/critikl
A little website monitoring script with Pushover notifications
https://github.com/walkr/critikl
Last synced: 3 months ago
JSON representation
A little website monitoring script with Pushover notifications
- Host: GitHub
- URL: https://github.com/walkr/critikl
- Owner: walkr
- License: mit
- Created: 2014-06-20T20:19:11.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-06-27T05:49:37.000Z (almost 11 years ago)
- Last Synced: 2023-08-03T21:23:00.283Z (almost 2 years ago)
- Language: Python
- Size: 152 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
critikl
=======
Basic site monitoring in a single Python script,
with no dependencies.### Features:
* Python 2 and Python 3 compatible
* No external deps
* Pushover notifications### Usage:
* Edit the `config` in `critikl.py`
```python
config = {
'interval': 60, # How often to perform checks (in seconds)
'pushover': {
'app_token': 'your-pushover-app-token',
'user_key': 'your-user-key',
},
'sites': {
'example.com', # Just the domain
'https://example.com/api', # OR a full url
}
}
```* Start the script
```bash
$ python critikl.py
```* (Optional) Use a process manager (e.g. circus)
A. Install circus
```bash
$ sudo pip install circus
```B. Create the circus config file
Edit `circus.ini` and modify the path
where you put the `critikl.py` script```bash
$ nano circus.ini
```Create circus configuration file
```bash
$ sudo cp circus.ini /etc/circus.ini
```Start circus (circus will start `critikl.py`)
```bash
circusd /etc/circus.ini
```
For more about circus, read [this](https://circus.readthedocs.org/en/0.11.1/)C. Start circus on system startup using upstart
```bash
$ sudo cp circus.conf /etc/init/circus.conf
$ sudo service circus start
```That's it. You will now receive Pushover notifications
when one of your sites is down.