ServerStatus with node management and monitor

Overview

介绍

项目基于cppla版本ServerStatus, 增加如下功能:

  • 更方便的节点管理, 支持增删改查
  • 上下线通知(telegram)
  • Agent机器安装脚本改为systemd, 支持开机自启

由于未改动cppla版的任何代码,所以,我愿意把这个项目称为ServerStatus的小插件, 理论上它可以为任何版本的ServerStatus服务

安装

服务端复制以下命令,一键到底。请记得替换成你自己的YOUR_TG_CHAT_ID和YOUR_TG_BOT_TOKEN。

其中,Bot token可以通过@BotFather创建机器人获取, Chat id可以通过@getuserID获取。

mkdir sss && cd sss && wget --no-check-certificate https://raw.githubusercontent.com/lidalao/ServerStatus/master/sss.sh && chmod +x ./sss.sh && sudo ./sss.sh YOUR_TG_CHAT_ID YOUR_TG_BOT_TOKEN

安装成功后,web服务地址:http://ip:8081

更多信息请移步 https://lidalao.com/archives/87 +1ip

参考

Comments
  • 现在这个一键脚本用不了了吗?

    现在这个一键脚本用不了了吗?

    换了三个机器都失败显示这个

    Traceback (most recent call last): File "_sss.py", line 249, in cmd() File "_sss.py", line 213, in cmd print('- - - \u6b22\u8fce\u4f7f\u7528\u6700\u7b80\u6d01\u7684\u63a2\u9488: Server Status - - -') UnicodeEncodeError: 'latin-1' codec can't encode characters in position 6-15: ordinal not in range(256)

    opened by ghost 1
  • 执行sss.sh报错

    执行sss.sh报错

    Traceback (most recent call last): File "_sss.py", line 249, in cmd() File "_sss.py", line 213, in cmd print('- - - \u6b22\u8fce\u4f7f\u7528\u6700\u7b80\u6d01\u7684\u63a2\u9488: Server Status - - -') UnicodeEncodeError: 'latin-1' codec can't encode characters in position 6-15: ordinal not in range(256)

    opened by rayle2 1
  • _sss.py utf-8编码报错无法启动

    _sss.py utf-8编码报错无法启动

    问题出现在启动./sss.sh 报错 root@debian11:~/data/docker_data/sss# ./sss.sh

    Traceback (most recent call last): File "/root/data/docker_data/sss/_sss.py", line 249, in cmd() File "/root/data/docker_data/sss/_sss.py", line 213, in cmd print('- - - \u6b22\u8fce\u4f7f\u7528\u6700\u7b80\u6d01\u7684\u63a2\u9488: Server Status - - -') UnicodeEncodeError: 'latin-1' codec can't encode characters in position 6-15: ordinal not in range(256)

    opened by Meilinhost 0
  • Oracle arm VPS 服務端 docker 容器一直 restarting - exec format error

    Oracle arm VPS 服務端 docker 容器一直 restarting - exec format error

    Attaching to bot4sss, sss bot4sss | exec /usr/bin/python: exec format error sss | exec /docker-entrypoint.sh: exec format error bot4sss exited with code 0 sss exited with code 0 bot4sss exited with code 1 sss exited with code 1 bot4sss exited with code 1 sss exited with code 1

    opened by gmuskie 0
  • 访问ip:8081,提示502页面

    访问ip:8081,提示502页面

    谷歌云debian11,docker的日志: standard_init_linux.go:219: exec user process caused: exec format error standard_init_linux.go:219: exec user process caused: exec format error standard_init_linux.go:219: exec user process caused: exec format error standard_init_linux.go:219: exec user process caused: exec format error standard_init_linux.go:219: exec user process caused: exec format error standard_init_linux.go:219: exec user process caused: exec format error standard_init_linux.go:219: exec user process caused: exec format error

    访问ip:8081提示 502页面

    opened by Enkiant 0
  • 容器一直重启

    容器一直重启

    在oracle ubuntu搭建后容器一直重启, 容器sss日志: exec /docker-entrypoint.sh: exec format error exec /docker-entrypoint.sh: exec format error exec /docker-entrypoint.sh: exec format error exec /docker-entrypoint.sh: exec format error exec /docker-entrypoint.sh: exec format error

    容器bot4sss日志: exec /usr/bin/python: exec format error exec /usr/bin/python: exec format error exec /usr/bin/python: exec format error exec /usr/bin/python: exec format error exec /usr/bin/python: exec format error exec /usr/bin/python: exec format error

    opened by zhengzaixiazai 1
  • 请问如何调整tg推送关于主机下线的报警频率

    请问如何调整tg推送关于主机下线的报警频率

    现在一天至少有二十多条tg消息是关于主机掉线的,几乎全部都是在下线后10秒左右就上线了。感觉现有的下线检测敏感程度太高了,请问如何改成下线60秒左右再发送下线消息? 之前我试着修改过一次bot.py文件中第46行的if counterOff[srv] < 10:,但似乎没有生效,不太清楚是bot.py修改的参数不对,还是修改完成后没有重启导致的(试过修改后kill掉含有bot.py的进程,但是kill后瞬间就又出现了) 望赐教,谢谢!

    enhancement 
    opened by Nigel-NI 3
  • ascii报错该怎么处理?

    ascii报错该怎么处理?

    Traceback (most recent call last): File "_sss.py", line 249, in cmd() File "_sss.py", line 213, in cmd print('- - - \u6b22\u8fce\u4f7f\u7528\u6700\u7b80\u6d01\u7684\u63a2\u9488: Server Status - - -') UnicodeEncodeError: 'ascii' codec can't encode characters in position 6-15: ordinal not in range(128) CentOS 7,小鸡是日本的,可能和这个有关

    bug 
    opened by jwstaceyOvO 2
Owner
lidalao
lidalao
A lightweight python script that can monitor the T-Mobile Home Internet Nokia 5G Gateway for band and connectivity and reboot as needed.

tmo-monitor A lightweight Python 3 script that can monitor the T-Mobile Home Internet Nokia 5G Gateway for band and connectivity and reboot as needed.

null 61 Dec 17, 2022
High capacity, high availability, well connected, fast lightning node.

LND ⚡ Routing High capacity, high availability, well connected, fast lightning node. We aim to become a top liquidity provider for the lightning netwo

null 18 Dec 16, 2022
Use Raspberry Pi and CircuitSetup's power monitor hardware to publish electrical usage to MQTT

This repo has code and notes for whole home electrical power monitoring using a Raspberry Pi and CircuitSetup modules. Beyond just collecting data, it

Eric Tsai 10 Jul 25, 2022
A simple, configurable application and set of services to monitor multiple raspberry pi's on a network.

rpi-info-monitor A simple, configurable application and set of services to monitor multiple raspberry pi's on a network. It can be used in a terminal

Kevin Kirchhoff 11 May 22, 2022
Port Traffic/Bandwidth Monitor Script

python-switch-port-traffic-alarm Port Traffic/Bandwidth Monitor Script That's an Switch Port Traffic monitor program is checking the switch uplink por

goksinenki 4 Sep 2, 2021
Ipscanner - A simple threaded IP-Scanner written in python3 that can monitor local IP's in your network

IPScanner ?? A simple threaded IP-Scanner written in python3 that can monitor lo

null 4 Dec 12, 2022
Fast and configurable script to get and check free HTTP, SOCKS4 and SOCKS5 proxy lists from different sources and save them to files

Fast and configurable script to get and check free HTTP, SOCKS4 and SOCKS5 proxy lists from different sources and save them to files. It can also get geolocation for each proxy and check if proxies are anonymous.

Almaz 385 Dec 31, 2022
A TCP Chatroom built with python and TCP/IP sockets, consisting of a server and multiple clients which can connect with the server and chat with each other.

A TCP Chatroom built with python and TCP/IP sockets, consisting of a server and multiple clients which can connect with the server and chat with each other. It also provides an Admin role with features including kicking and baning of users.

null 3 May 22, 2022
List of ngrok alternatives and other ngrok-like tunneling software and services. Focus on self-hosting.

List of ngrok alternatives and other ngrok-like tunneling software and services. Focus on self-hosting.

Anders Pitman 7.3k Jan 3, 2023
NetworkX is a Python package for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks.

NetworkX is a Python package for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks.

NetworkX 12k Jan 2, 2023
Start a simple TCP Listener on a specified IP Address and Port Number and receive incoming connections.

About Start a simple TCP Listener on a specified IP Address and Port Number and receive incoming connections. Download Clone using git in terminal(git

AgentGeneric 5 Feb 24, 2022
An advanced real time threat intelligence framework to identify threats and malicious web traffic on the basis of IP reputation and historical data.

ARTIF is a new advanced real time threat intelligence framework built that adds another abstraction layer on the top of MISP to identify threats and malicious web traffic on the basis of IP reputation and historical data. It also performs automatic enrichment and threat scoring by collecting, processing and correlating observables based on different factors.

CRED 225 Dec 31, 2022
🥑 A Python ARP and DNS Spoofer CLI and INTERFACE 🥓

NEXTGEN SPOOFER ?? A Python ARP and DNS Spoofer CLI and INTERFACE ?? CLI -> advanced pentesters INTERFACE -> beginners SetUp Make sure you installed P

null 9 Dec 25, 2022
This script helps us to add IP, host name entry in hosts file and create directory run nmap scan and directory scan with your favourite tools

A python script to automate your set-up for Hack The Box, It sets up Workspace, Opens TMUX session, connects to OpenVPN, Runs Nmap and many more...

Cognizance 7 Mar 25, 2022
Take a list of domains and probe for working HTTP and HTTPS servers

httprobe Take a list of domains and probe for working http and https servers. Install ▶ go get -u github.com/tomnomnom/httprobe Basic Usage httprobe

Tom Hudson 2.3k Dec 28, 2022
A simple and lightweight server that allows clients to connect and launch a shell remotely through a browser.

carrotsh A simple and lightweight server that allows clients to connect and launch a shell remotely through a browser. Uses xterm.js for the frontend

V9 31 Dec 27, 2022
This Tool can help enginners and biggener in network, the tool help you to find of any ip with subnet mask that can calucate them and show you ( Availble IP's , Subnet Mask, Network-ID, Broadcast-ID )

This Tool can help enginners and biggener in network, the tool help you to find of any ip with subnet mask that can calucate them and show you ( Availble IP's , Subnet Mask, Network-ID, Broadcast-ID )

null 12 Dec 13, 2022
This application aims to read all wifi passwords and visualizes the complexity in graph formation by taking into account several criteria and help you generate new random passwords.

This application aims to read all wifi passwords and visualizes the complexity in graph formation by taking into account several criteria and help you generate new random passwords.

Njomza Rexhepi 0 May 29, 2022
A tool which is capable of scanning ports as TCP & UDP and detecting open and closed ones.

PortScanner Scan All Open Ports Of The Target IP. A tool which is capable of scanning ports as TCP & UDP and detecting open and closed ones. Clone fro

Msf Nmt 17 Nov 26, 2022