{"id":26745410,"url":"https://github.com/boolka/probe","last_synced_at":"2025-07-03T15:05:47.870Z","repository":{"id":81857330,"uuid":"589945375","full_name":"boolka/probe","owner":"boolka","description":"Simplest possible solution to check service availability","archived":false,"fork":false,"pushed_at":"2023-01-17T10:13:24.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T08:17:04.121Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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/boolka.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2023-01-17T10:06:29.000Z","updated_at":"2023-07-17T15:36:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"8fcc6816-ae00-4924-9b78-d64c4c54ce5f","html_url":"https://github.com/boolka/probe","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/boolka/probe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boolka%2Fprobe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boolka%2Fprobe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boolka%2Fprobe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boolka%2Fprobe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boolka","download_url":"https://codeload.github.com/boolka/probe/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boolka%2Fprobe/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263348206,"owners_count":23452870,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2025-03-28T08:17:07.192Z","updated_at":"2025-07-03T15:05:47.860Z","avatar_url":"https://github.com/boolka.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Probe\n\n## Purpose\n\nSimplest possible solution to check service availability.\nCan be used in docker `HEALTHCHECK` instruction (check `docker/Dockerfile.test` folder for example).\n\n## Usage\n\nUsage: probe [...OPTIONS] [HOST]\n\nOptions:\n  - -s, --service - service to connect to\n  - -p, --port - port to connect to\n  - -r, --retry - retry count\n  - -t, --timeout - timeout between retryings\n  - -h, --help - this help message\n  - -v, --version - current application version\n\nExamples:\n  - `probe --port=80 1.2.3.4`\n  - `probe --service=http localhost`\n  - `probe --port=8080 localhost`\n  - `probe --timeout=3 --retry=5 --service=https example.com`\n\n## Description\n\nThis program uses GNU Name Service Switch (NSS) mechanics to determine the `HOST` to resolve.\n\nThe first thing probe is doing is trying to determine the host. When it is unavailable then it failures.\nAfter this probe will try to connect to host that many times that `retry` \u0026 `timeout` tells.\nOn success probe will return `0` and `1` on failure.\n\nDon't use the `0.0.0.0` address.\n\n## Requirements\n\n- libc\n\n## TODO\n\n- Check all addresses in `struct hostent`.\n- Only `tcp` protocol for now is available.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboolka%2Fprobe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboolka%2Fprobe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboolka%2Fprobe/lists"}