{"id":15777302,"url":"https://github.com/ggiamarchi/http-check","last_synced_at":"2026-04-27T21:31:11.764Z","repository":{"id":144212886,"uuid":"88177200","full_name":"ggiamarchi/http-check","owner":"ggiamarchi","description":"Run system commands through HTTP","archived":false,"fork":false,"pushed_at":"2018-08-30T12:56:42.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-11T18:01:44.664Z","etag":null,"topics":["commands","http","linux","monitoring","monitoring-tool","system-commands"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ggiamarchi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-13T15:03:29.000Z","updated_at":"2018-08-30T12:53:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"6f46d821-b56a-4e02-b917-ca237e58b163","html_url":"https://github.com/ggiamarchi/http-check","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ggiamarchi/http-check","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggiamarchi%2Fhttp-check","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggiamarchi%2Fhttp-check/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggiamarchi%2Fhttp-check/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggiamarchi%2Fhttp-check/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ggiamarchi","download_url":"https://codeload.github.com/ggiamarchi/http-check/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggiamarchi%2Fhttp-check/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32356596,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["commands","http","linux","monitoring","monitoring-tool","system-commands"],"created_at":"2024-10-04T18:00:21.553Z","updated_at":"2026-04-27T21:31:11.748Z","avatar_url":"https://github.com/ggiamarchi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTTP Check\n\n[![Build Status](https://api.travis-ci.org/ggiamarchi/http-check.png?branch=master)](https://travis-ci.org/ggiamarchi/http-check)\n\nHTTP Check is a simple tool that exposes any system command with a single HTTP endpoint. HTTP response code\ndiffers depending command status code.\n\n## Configuration\n\nHere is an sample configuration file :\n\n```yaml\n---\n\nchecks:\n  - name: \"ping-10.1.1.2\"\n    command:\n      executable: \"/sbin/ping %s %d %s\"\n      args: [\"-c\", 2, \"10.100.0.1\"]\n    status:\n      failure: 223\n      success: 200\n  - name: \"ping-google\"\n    command:\n      executable: \"/sbin/ping %s %d %s\"\n      args: [\"-c\", 2, \"8.8.8.8\"]\n    status:\n      failure: 503\n      success: 204\n\nserver:\n  port: 2323\n```\n\n## Installation\n\n1. Download http-check binary from github release\n2. Create configuration file. Default location is `/etc/http-check/http-check.yml`. You can specificy custom location on the command line when running the server\n\n## Run the server\n\nBasically run the binary\n\n```\n$ http-check server\n```\n\nOr, with a custom configuration file location\n\n```\n$ http-check server --config /etc/http-check.yml\n```\n\n## Run checks\n\nClients use a single endpoint to run any check.\n\n__Request__\n\n```\nGET /v1/check/{name}\n```\n\n__Response__\n\n```\nHTTP/1.1 200 OK\nContent-Type: application/json; charset=utf-8\nDate: Wed, 29 Aug 2018 13:18:13 GMT\nContent-Length: 350\n\n{\n    \"error\":\"\",\n    \"stderr\":\"\",\n    \"stdout\":\"PING 8.8.8.8 (8.8.8.8): 56 data bytes\\n64 bytes from 8.8.8.8: icmp_seq=0 ttl=121 time=12.676 ms\\n64 bytes from 8.8.8.8: icmp_seq=1 ttl=121 time=20.267 ms\\n\\n--- 8.8.8.8 ping statistics ---\\n2 packets transmitted, 2 packets received, 0.0% packet loss\\nround-trip min/avg/max/stddev = 12.676/16.471/20.267/3.796 ms\\n\"\n}\n```\n\n__NB.__ Status code depends the YAML check configuration.\n\n# License\n\nEverything in this repository is published under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fggiamarchi%2Fhttp-check","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fggiamarchi%2Fhttp-check","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fggiamarchi%2Fhttp-check/lists"}