Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meetmatt/health-checker
Lightweight health checker written in PHP. Can check health of HTTP services, popular databases (mysql, postgres) and Redis.
https://github.com/meetmatt/health-checker
Last synced: 8 days ago
JSON representation
Lightweight health checker written in PHP. Can check health of HTTP services, popular databases (mysql, postgres) and Redis.
- Host: GitHub
- URL: https://github.com/meetmatt/health-checker
- Owner: meetmatt
- Created: 2014-08-12T14:51:40.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-06-27T10:55:37.000Z (over 5 years ago)
- Last Synced: 2024-03-19T04:50:26.398Z (8 months ago)
- Language: PHP
- Size: 14.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
hc — light and extendable health checker
========================================The **hc** is lightweight health checker written in php. **hc** can check health of http services,
popular databases (mysql, postgres) and redis. Default output format is tab-delimited strings
to allow easily grep and cut results.Quick start
-----------1. Create config file `config.yml` with check rules:
```
---
- name: google
type: http
request: { url: http://google.com/ }
- name: bing
type: http
request:
url: http://bing.com:1234/
timeout: 1
```
2. Run **hc**:```
hc config.yml
```
You should see result (tab-delimited):
```
ok google
fail bing connection refused
```Usage
-----```
hc [-th] [-o format]
```* **-h:** print command help and list of available assertions;
* **-t:** don't run, just test the configuration file;
* **-o format:** set format of output; default is "tsv". Allowed: "tsv", "json".See descriptive examples of configuration file and output in `examples` directory.