21 lines
454 B
Plaintext
21 lines
454 B
Plaintext
前置依赖安装
|
|
bash
|
|
运行
|
|
# 安装paramiko SSH库
|
|
pip3 install paramiko
|
|
使用方法
|
|
新建ip.txt,每行一个 IP,支持 Windows 导出的带 \r 换行文件,脚本自动清洗
|
|
执行脚本,参数为要查询的进程名
|
|
bash
|
|
运行
|
|
# 查询trap杀毒进程
|
|
python3 check_proc.py trap
|
|
|
|
# 查询node_exporter监控进程
|
|
python3 check_proc.py node_exporter
|
|
|
|
# 查询nginx
|
|
python3 check_proc.py nginx
|
|
|
|
# 查询redis
|
|
python3 check_proc.py redis |