一款高颜值的探针-NekoNekoStatus

发布于 2021-08-07  776 次阅读


今天给大家介绍一款高颜值风格的探针,界面真的很丝滑~~~大家的探针又多了一种风格啦!

作者github https://github.com/nkeonkeo/nekonekostatus

这里我使用的服务器是腾讯云的轻量应用服务器,现在海外区域全部升级城AMD啦,还有无忧计划,很良心了,有木有!

废话不多说,我们开始吧!

作者这里提供docker和一键jio本安装,建议直接docker安装(不用了直接打包跑路

1.现在我们选择腾讯云的docker镜像--直接配置好了docker镜像,并且内置了腾讯云的源

如果没有安装docker的话

yum install docker  #centos
apt install docker #ubuntu,debian
curl -sSL https://get.docker.com/ | sh #官方一键安装脚本
sudo service docker restart   #安装完成重启docker,直接docker run可能报错
docker run --restart=on-failure --name nekonekostatus -p 5555:5555 -d nkeonkeo/nekonekostatus:v1.0  #获取官方镜像

如果想试试官方一键脚本的话
yum install wget /apt intsall wget
wget https://github.com/nkeonkeo/nekonekostatus/raw/main/install.sh && bash install.sh

安装后默认监听5555端口,提前在安全组放行哦!

接下来访问你的ip:5555就可以看见监控主界面咯!

默认的后台密码是nekonekostatus

后台配图

###接下来配置服务端https(可选

这里我们需要用到nginx反向代理,贴一个配置


location / {
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $http_host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_redirect off;
        proxy_pass http://127.0.0.1:5555/;
    }

服务端安装完成,接下来咱们配置agent

2.配置agent

可以使用后台自动配置agent

后台配置解释

sid:服务器id name:想让叫啥 top:优先级(想让小鸡排第几

接下来填入小鸡的ssh密码即可自动安装agent

要是报错的话,咱只能手动安装咯

###agent手动安装

默认的被控下载地址

https://github.com/nkeonkeo/nekonekostatus/releases/download/v0.1/neko-status#是作者的命令


/usr/bin/neko-status -v||(wget https://github.com/nkeonkeo/nekonekostatus/releases/download/v0.1/neko-status  -O /usr/bin/neko-status && chmod +x /usr/bin/neko-status)

#从github拉取agent端
systemctl stop nekonekostatus  
mkdir /etc/neko-status/
echo "key: uid   
port: 通讯端口
debug: false" > /etc/neko-status/config.yaml
systemctl stop nekonekostatus
echo "[Unit]
Description=nekonekostatus

[Service]
Restart=always
RestartSec=5
ExecStart=/usr/bin/neko-status -c /etc/neko-status/config.yaml

[Install]
WantedBy=multi-user.target" > /etc/systemd/system/nekonekostatus.service
systemctl daemon-reload
systemctl start nekonekostatus
systemctl enable nekonekostatus

完成后重启,在服务端重启即可

完成,页面如下