linux-monitor

2.0.4 • Public • Published

linux-monitor


功能

获取linux系统 [cpu, 内存, 硬盘, 磁盘IO, 网络消耗] 监控数据 
启动需要安装pm2, 以保证进程永远启动
访问地址http://hostname:port/monitor 获取最近一分钟的性能数据
    - hostname: 服务器ip或域名
    - port: 进程监听端口(默认3636), 可以通过启动时-p参数设置
· 暂时只支持ubuntu系统

数据来源

  • cpu: /proc/loadavg
  • 内存: /proc/meminfo
  • 硬盘利用率: df -h
  • I/O负载: iostat
  • 网络流量: /proc/net/dev

安装

npm install -g pm2

npm install -g linux-monitor


使用

启动

monitor start [-p port]

关闭

monitor stop

Package Sidebar

Install

npm i linux-monitor

Weekly Downloads

13

Version

2.0.4

License

ISC

Unpacked Size

29.6 kB

Total Files

11

Last publish

Collaborators

  • lyrstar