# ssh-vmstat **Repository Path**: billy119/ssh-vmstat ## Basic Information - **Project Name**: ssh-vmstat - **Description**: 批量采集主机的cpu、内存、磁盘IO性能指标,并生成图表 特点: 轻便、使用简单 - **Primary Language**: Python - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 6 - **Forks**: 0 - **Created**: 2017-12-29 - **Last Updated**: 2023-12-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # vmstat性能采集工具 ### 版本0.1 测试版本 ### 使用方法 1. 首先将脚本拷贝到不需要采集的主机上,需要保证该节点与被采集的节点网络连通 2. 目前阶段只能执行python ssh.py [指令] 来进行操作: SSH to remote server and execute mkdir|upload|download|run|kill|chtime|passwd|rm. use: python ssh.py mkdir|upload|download|run|kill|chtime|passwd|rm mkdir mkdir /home/OTS-TEST upload upload vmstat.py download download result file run start run vmstat.py kill end process vmstat chtime time synchronization passwd change passwd rm remove /home/OTS-TEST 3. 比初始版本增加了分组和阈值功能,从hosts文件的命名上来体现: 以下为2个分组:核心组和测试组 - hosts-core.txt - hosts-test.txt 结果会在本地创建分组的文件夹,性能文件会放在各组文件夹里 以下为每组的阈值设置: - hosts-core(70).txt - hosts-test(85).txt 阈值设置会在生成图片操作时发生效果,会在图片中画出阈值线,并在总结文件(summary.csv)中标记出哪组的哪个主机超过了阈值 The info of remote server should be saved in hosts*.txt and the formtat is as follows: [ip],[username],[passwd]