#linux #monitor #monitoring #centos #docker #tool #api-server

app linux-monitor

A lightweight Linux monitoring tool, need to be used with api-server

9 releases

Uses new Rust 2021

0.2.7 Sep 13, 2022
0.2.6 Sep 13, 2022
0.2.4 Aug 28, 2022
0.1.0 Aug 18, 2022

#183 in Unix APIs

Download history 87/week @ 2022-08-16 48/week @ 2022-08-23 23/week @ 2022-08-30 25/week @ 2022-09-06 58/week @ 2022-09-13 1/week @ 2022-09-20

128 downloads per month

MIT license

23KB
568 lines

Linux Monitor

1.start api-server

docker run -d --name monitor-api-server -p 8080:8080 seekerman/monitor-api-server:latest

2.install linux-monitor

cargo install linux-monitor

or

# CentOS
wget https://gitee.com/seeker_rs/linux-monitor/releases/download/release-0.2.7/linux-monitor-CentOS.zip
# Ubuntu
wget https://gitee.com/seeker_rs/linux-monitor/releases/download/release-0.2.7/linux-monitor-Ubuntu.zip

3.run

# show help
linux-monitor -h
# output
linux-monitor 0.2.0
Seeker <womeng209@qq.com>
A lightweight Linux monitoring tool, need to be used with api-server

USAGE:
    linux-monitor [OPTIONS] --server <SERVER>

OPTIONS:
    -g, --group <GROUP>      The group name of the current node, used for grouping all monitored
                             nodes [default: dev]
    -h, --help               Print help information
    -p, --port <PORT>        Api server port [default: 8080]
    -s, --server <SERVER>    Api server IP address
    -V, --version            Print version information
    
# run
# -s: server-api ip
linux-monitor -s 192.168.1.1 -g dev-server

4.view monitor

replace api-server-ip to your real ip

http://api-server-ip:8080

Dependencies

~9–19MB
~382K SLoC