{"id":29356966,"url":"https://github.com/cesnet/stac_probe","last_synced_at":"2025-09-02T13:06:31.549Z","repository":{"id":278002896,"uuid":"934182640","full_name":"CESNET/stac_probe","owner":"CESNET","description":"STAC probe for Nagios monitoring","archived":false,"fork":false,"pushed_at":"2025-03-24T14:02:33.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-24T14:34:15.096Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CESNET.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":"2025-02-17T12:10:51.000Z","updated_at":"2025-03-24T14:02:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"44812ba9-bc03-4a15-9aaa-aaa00ac1fa40","html_url":"https://github.com/CESNET/stac_probe","commit_stats":null,"previous_names":["cesnet/stac_probe"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CESNET/stac_probe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CESNET%2Fstac_probe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CESNET%2Fstac_probe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CESNET%2Fstac_probe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CESNET%2Fstac_probe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CESNET","download_url":"https://codeload.github.com/CESNET/stac_probe/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CESNET%2Fstac_probe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273287679,"owners_count":25078575,"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","status":"online","status_checked_at":"2025-09-02T02:00:09.530Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-07-09T05:41:11.843Z","updated_at":"2025-09-02T13:06:31.540Z","avatar_url":"https://github.com/CESNET.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# STAC Probe\nReally just a simple STAC probe for Nagios monitoring.\n\n## Usage\nDefault config is specified in `main.py`, variables:\n\n```python\nthresholds = {\n    'ok': 24,\n    'warn': 168\n}\ndefault_stac_server = \"https://stac.cesnet.cz\"\n```\n\nThose can be overriden by CLI args:\n\n- `-s, --server` \n  - STAC server to probe.\n  - Overrides the `default_stac_server` variable\n- `-o, --ok`\n  - How old file (in hours) is considered OK? Anything older will be considered WARN or CRIT.\n  - Overrides the `thresholds['ok']` variable\n- `-w, --warn`\n  - How old file (in hours) is considered WARN? Anything older will be considered CRIT.\n  - Overrides the `thresholds['warn']` variable\n\nUser have to specify STAC collection name to check using the required CLI argument `--collection, -c`\n\nFor example final command probing collection `https://stac.cesnet.cz/collecitons/landsat_ot_c2_l1` \nwith OK threshold of 84 hours will look like this:\n\n```bash\npython main.py -c landsat_ot_c2_l1 -o 84\n```\n\n## Output\n\nScripts prints an informational message to `stdout`. For example for OK status:\n\n```text\nThe last entry in collection landsat_ot_c2_l1 is from 2025-03-24.\n```\n\nReturn values for script are as follows:\n\n```text\n0: OK\n1: WARN\n2: CRIT\n3: OTHER_ERROR (eg. collection not found; HTTP status code != 200)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcesnet%2Fstac_probe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcesnet%2Fstac_probe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcesnet%2Fstac_probe/lists"}