# sysmon **Repository Path**: wang-yan-y/sysmon ## Basic Information - **Project Name**: sysmon - **Description**: 基于Linux的系统监控软件栈,支持跨平台编译安装,采用静态编译,降低安装难度,同时也导致应用程序相对较大。有一定Linux的C语言开发能力可以对相关静态编译的配置进行修改。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-03-10 - **Last Updated**: 2026-03-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # sysmon #### 介绍 基于Linux的系统监控软件栈,监控系统的内存容量,挂载的硬盘的分区容量,网络状态,CPU的温度等平台的系统信息。 #### 软件架构 ```text +------------------------------------------------------+ | Application Layer | | (Device Manager / Monitor / Agent) | +--------------------------▲---------------------------+ | +------------------------------------------------------+ | Unified Interface Layer | | (统一封装库接口,对外提供 API) | | | | net_api() can_api() uart_api() | | sensor_api() sys_api() proto_api() | +------------▲------------▲------------▲---------------+ | | | +------------------------------------------------------+ | Open Source Libraries | | | | Network: libcurl | | | | CAN: SocketCAN | | | | UART: POSIX termios | | | | System: sysstat | | ▲ | | | | | lm-sensors | | | | Serialization: nanopb | +--------------------------▲---------------------------+ | +------------------------------------------------------+ | Linux Kernel | | | | TCP/IP Stack CAN Stack TTY Subsystem | | │ | | UART Driver | | | | hwmon / proc / sysfs | +--------------------------▲---------------------------+ | +------------------------------------------------------+ | Hardware Platform | | | | CPU / Memory / NIC / CAN Controller / UART | | | | 外设: | | CAN Device | | Serial Device | | Sensors | +------------------------------------------------------+ ``` #### 编译教程 1. 在飞腾D2000麒麟笔记本上编译 cmake -B build .. make 2. 在windows wsl 环境编译 安装交叉编译工具链gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu.tar.xz 修改顶层CMakeLists.txt CROSS_COMPILE 变量 cmake -B build make 3. 编译linux x86版本 同2小节 4. 生成protocol buffer 协议定义 tools 目录下generator-bin protoc --nanopb_out=. device.proto #### 链接库介绍 | 功能 | 库 | | ---------- | -------------------- | | HTTP / FTP | `libcurl` | | CAN | `socketcan (PF_CAN)` | | UART | `termios` | | SENSEOR | `libsensors` | | protobuf | `nanopb` | | 系统状态 | `sysstat`| #### 开发者 Rocks Wang