{"id":19235736,"url":"https://github.com/seaung/istatus","last_synced_at":"2026-05-16T09:32:29.609Z","repository":{"id":125672155,"uuid":"524602241","full_name":"seaung/istatus","owner":"seaung","description":"一个轻量级的系统状态监控工具，用于收集系统资源使用情况并通过MQTT协议进行数据上报。","archived":false,"fork":false,"pushed_at":"2025-02-18T05:27:09.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-18T06:28:45.465Z","etag":null,"topics":["c","clang","mqtt","push-message"],"latest_commit_sha":null,"homepage":"","language":"C","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/seaung.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":"2022-08-14T07:26:18.000Z","updated_at":"2025-02-18T05:28:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"70f0212a-fa45-48b0-aff1-ca8ee773c35c","html_url":"https://github.com/seaung/istatus","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/seaung/istatus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seaung%2Fistatus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seaung%2Fistatus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seaung%2Fistatus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seaung%2Fistatus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seaung","download_url":"https://codeload.github.com/seaung/istatus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seaung%2Fistatus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33096868,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"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":["c","clang","mqtt","push-message"],"created_at":"2024-11-09T16:18:01.830Z","updated_at":"2026-05-16T09:32:29.594Z","avatar_url":"https://github.com/seaung.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# istatus\n\n一个轻量级的系统状态监控工具，用于收集系统资源使用情况并通过MQTT协议进行数据上报。\n\n## 功能特性\n\n- 实时监控系统资源使用情况\n  - CPU使用率（用户态、系统态、空闲）\n  - 磁盘使用情况（总容量、已用、剩余、使用率）\n  - 网络流量统计（发送/接收字节数、数据包数）\n- 支持MQTT协议数据上报\n  - 可配置MQTT服务器连接参数\n  - 支持QoS服务质量控制\n  - 自动重连机制\n- 灵活的配置文件支持\n  - 支持INI格式配置文件\n  - 可自定义监控区域和地址信息\n  - 可配置网络接口\n\n## 安装\n\n### 依赖\n\n- Eclipse Paho MQTT C Client Library\n- GCC编译器\n- Make工具\n\n### 编译安装\n\n```bash\n# 编译\nmake\n\n# 安装到系统\nsudo make install\n\n# 使用debug模式编译\nmake DEBUG=1\n```\n\n## 配置\n\n配置文件示例 (config.ini):\n\n```ini\n[mqtt]\nhost=localhost\nport=1883\nkeepalive=600\ntopic=status\n\n[app]\narea=嵩山\naddress=192.168.101.100\n\n[network]\ninterface=en0\n```\n\n## 使用方法\n\n```bash\n# 使用指定配置文件运行\nistatus -c /path/to/config.ini\n\n# 查看版本信息\nistatus -v\n\n# 查看帮助信息\nistatus -h\n```\n\n## 数据格式\n\n系统状态数据以JSON格式上报，示例：\n\n```json\n{\n  \"timestamp\":\"2024-01-01 12:00:00\",\n  \"area\":\"嵩山\",\n  \"address\":\"192.168.101.100\",\n  \"system_status\":{\n    \"disk\":{\n      \"total\":1000000,\n      \"used\":500000,\n      \"free\":500000,\n      \"percent\":50.00\n    },\n    \"network\":{\n      \"bytes_sent\":1000,\n      \"bytes_recv\":2000,\n      \"packets_sent\":100,\n      \"packets_recv\":200\n    },\n    \"cpu\":{\n      \"user\":10.5,\n      \"system\":5.2,\n      \"idle\":84.3\n    }\n  }\n}\n```\n\n---\nthat's all","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseaung%2Fistatus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseaung%2Fistatus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseaung%2Fistatus/lists"}