{"id":18770050,"url":"https://github.com/yaroslaff/sensor","last_synced_at":"2025-09-01T19:32:13.811Z","repository":{"id":50155595,"uuid":"314347775","full_name":"yaroslaff/sensor","owner":"yaroslaff","description":"sensor for all remote checks for okerr monitoring","archived":false,"fork":false,"pushed_at":"2024-12-14T10:20:24.000Z","size":132,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-14T11:22:17.830Z","etag":null,"topics":["check","fault-tolerance","monitoring","network","remote","sensor"],"latest_commit_sha":null,"homepage":"https://okerr.com/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yaroslaff.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-11-19T19:19:41.000Z","updated_at":"2024-12-14T10:20:28.000Z","dependencies_parsed_at":"2023-10-16T04:10:05.982Z","dependency_job_id":"4d300d73-1493-4ff8-bbd8-c5acfb3a8cbf","html_url":"https://github.com/yaroslaff/sensor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaroslaff%2Fsensor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaroslaff%2Fsensor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaroslaff%2Fsensor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaroslaff%2Fsensor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yaroslaff","download_url":"https://codeload.github.com/yaroslaff/sensor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231713166,"owners_count":18415190,"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":["check","fault-tolerance","monitoring","network","remote","sensor"],"created_at":"2024-11-07T19:17:55.591Z","updated_at":"2025-09-01T19:32:13.804Z","avatar_url":"https://github.com/yaroslaff.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Okerr remote network sensor\n\n# Install\n\n~~~shell\nPIPX_HOME=/opt/pipx PIPX_BIN_DIR=/usr/local/bin pipx install git+https://github.com/yaroslaff/sensor/\n\nPIPX_HOME=/opt/pipx PIPX_BIN_DIR=/usr/local/bin pipx reinstall okerrsensor\n\n# or simpler\npipx install git+https://github.com/yaroslaff/sensor/\n~~~\n\nor (old way):\n~~~\npip3 install git+https://github.com/yaroslaff/sensor/\n~~~\n\n\nconfigure `/etc/okerrclient.conf`\n\nPrepare env config file:\n~~~\nroot@deb10:~# cat /etc/okerr/env/sensor  \nSENSOR_NAME=deb10@nsk.ru\nRMQ_USER=okerr-rabbit-user\nRMQ_PASS=okerr-rabbit-secret-password\nRMQ_VHOST=okerr\nRMQ_HOST=rabbitmq.example.com\n\nSENSOR_IP=1.2.3.4\n\n## only for local debugging\n#SENSOR_PEM=.local/ssl/client.pem\n# SENSOR_CAPEM=.local/ssl/ca.pem\nexport SENSOR_NAME RMQ_HOST RMQ_VHOST  RMQ_USER RMQ_PASS SENSOR_PEM SENSOR_CAPEM\n\n~~~\n## Run from shell\n\n~~~shell\n$ cp .env-example .env\n$ vim .env # Adjust settings\n$ . .env\n$ sudo sensor.py \n20191228 01:09:35 started sensor deb10@nsk.ru\n~~~\n\nSpecify check from CLI:\n~~~\nsensor --manual httpstatus url=https://cat.okerr.com/ status=200 options=addr=88.214.35.64\n~~~\n\n## Install as systemd service\n~~~\nmkdir /var/log/okerr\n\ncp /usr/local/okerrsensor/okerr-sensor.service /etc/systemd/system/\nsystemctl daemon-reload\nsystemctl enable okerr-sensor\nsystemctl start okerr-sensor\n~~~\n\n## Run on low-memory machines\nUse `--oneprocess` option, or set env variable `SENSOR_ONEPROCESS` to any non-empty value (e.g. in `/etc/okerr/env/sensor`)\n\n## Build dist from source\n~~~\ngit clone git@github.com:yaroslaff/sensor.git\npython3 setup.py bdist_wheel\n~~~\n\n## Other okerr resources\n- [Okerr main website](https://okerr.com/)\n- [Okerr-server source code repository](https://github.com/yaroslaff/okerr-dev/) \n- [Okerr client (okerrupdate) repositoty](https://github.com/yaroslaff/okerrupdate) and [okerrupdate documentation](https://okerrupdate.readthedocs.io/)\n- [Okerrbench network server benchmark](https://github.com/yaroslaff/okerrbench)\n- [Okerr custom status page](https://github.com/yaroslaff/okerr-status)\n- [Okerr JS-powered static status page](https://github.com/yaroslaff/okerrstatusjs)\n- [Okerr network sensor](https://github.com/yaroslaff/sensor)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaroslaff%2Fsensor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyaroslaff%2Fsensor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaroslaff%2Fsensor/lists"}