ServerStatus 云探针、多服务器探针、云监控、多服务器云监控

Overview

ServerStatus

云探针、多服务器探针、云监控、多服务器云监控

基于ServerStatus-Hotaru膜改版的套娃膜改版(实际上本README也是抄它的)。

主要将client改为通过http提交数据,以及将服务端换成了php以便减小部署成本(PHP is the best!)

默认图片素材来源: Pixiv: 86597206 默认背景来源:nisekoi.jp

如需用做商业用途请更换主题图片。

For commercial use, please replace the images.

若本仓库用到的一些素材侵犯了您的版权,请联系我处理,谢谢。

If some of the assets used in this repo infringe your copyright, please contact me, thanks.

特性

前端基于Vue 3.0和SemanticUI制作,如需修改前端建议自行修改打包(也可以尝试直接格式化打包后的js/css文件后修改,但是不建议):

前端开源地址:https://github.com/CokeMine/Hotaru_theme

客户端支持Python版本:Python2.7 - Python3.7

客户端可以选择使用vnStat按月计算流量,会自动编译安装最新版本vnStat。如不使用vnStat,则默认计算流量方式为重启后流量清零。

服务端支持php版本:7.x - 8.x

服务端需要composer 2.x

安装方法

Composer:

请查看官网文档:https://getcomposer.org/doc/00-intro.md

服务端:

git clone https://github.com/shirakun/ServerStatus.git
cd ServerStatus
composer install
cp node.php.template node.php

然后将网站目录设置为ServerStatus/public即可

客户端:

Debian/Ubuntu

apt update && apt install python-pip -y && pip install requests
mkdir -p /usr/local/ServerStatus
wget https://github.com/shirakun/ServerStatus/raw/master/client/status-client.py -O /usr/local/ServerStatus/status-client.py
wget --no-check-certificate "https://github.com/shirakun/ServerStatus/raw/master/service/status-client.debian" -O /etc/init.d/status-client
chmod +x /etc/init.d/status-client
update-rc.d -f status-client defaults

然后编辑客户端文件设置好配置信息后启动

vi /usr/local/ServerStatus/status-client.py
service status-client restart

Alpine Linux

apk update
apk add python3 py3-requests py3-psutil

mkdir -p /usr/local/ServerStatus
wget https://github.com/shirakun/ServerStatus/raw/master/client/status-psutil.py -O /usr/local/ServerStatus/status-psutil.py

wget https://github.com/shirakun/ServerStatus/raw/master/service/status-client.alpine -O /etc/init.d/status-client
chmod +x /etc/init.d/status-client
rc-update add status-client boot

然后编辑客户端文件设置好配置信息后启动

vi /usr/local/ServerStatus/status-psutil.py
service status-client restart

装好后修改配置文件,SERVER的值写完整的服务端api路径(http://xxx.com/api.php)

服务端配置修改方法

配置文件:node.php

"user" => [
        "name"     => "server name",
        "password" => "passwd",
        "location" => "self home",
        "type"     => "VDS",
        "host"     => "No",
        "disabled" => false,
        "region"   => "jp",
    ],

这里的key("user")对应客户端中USER的值相当于原版的username的作用

效果演示

RktuH.png

相关开源项目 :

Owner
shirakun
shirakun
Cado Response Integration with Amazon GuardDuty using AWS Lambda

Cado Response Integration with Amazon GuardDuty using AWS Lambda This repository contains a simple example where: An alert is triggered by GuardDuty T

Cado Security 4 Mar 02, 2022
A system for managing CI data for Mozilla projects

Treeherder Description Treeherder is a reporting dashboard for Mozilla checkins. It allows users to see the results of automatic builds and their resp

Mozilla 235 Dec 22, 2022
CDK Template of Table Definition AWS Lambda for RDB

CDK Template of Table Definition AWS Lambda for RDB Overview This sample deploys Amazon Aurora of PostgreSQL or MySQL with AWS Lambda that can define

AWS Samples 5 May 16, 2022
SSH to WebSockets Bridge

wssh wssh is a SSH to WebSockets Bridge that lets you invoke a remote shell using nothing but HTTP. The client connecting to wssh doesn't need to spea

Andrea Luzzardi 1.3k Dec 25, 2022
Lima is an alternative to using Docker Desktop on your Mac.

lima-xbar-plugin Table of Contents Description Installation Dependencies Lima is an alternative to using Docker Desktop on your Mac. Description This

Joe Block 68 Dec 22, 2022
Bitnami Docker Image for Python using snapshots for the system packages repositories

Python Snapshot packaged by Bitnami What is Python Snapshot? Python is a programming language that lets you work quickly and integrate systems more ef

Bitnami 1 Jan 13, 2022
Create pinned requirements.txt inside a Docker image using pip-tools

Pin your Python dependencies! pin-requirements.py is a script that lets you pin your Python dependencies inside a Docker container. Pinning your depen

4 Aug 18, 2022
Helperpod - A CLI tool to run a Kubernetes utility pod with pre-installed tools that can be used for debugging/testing purposes inside a Kubernetes cluster

Helperpod is a CLI tool to run a Kubernetes utility pod with pre-installed tools that can be used for debugging/testing purposes inside a Kubernetes cluster.

Atakan Tatlı 2 Feb 05, 2022
MagTape is a Policy-as-Code tool for Kubernetes that allows for evaluating Kubernetes resources against a set of defined policies to inform and enforce best practice configurations.

MagTape is a Policy-as-Code tool for Kubernetes that allows for evaluating Kubernetes resources against a set of defined policies to inform and enforce best practice configurations. MagTape includes

T-Mobile 143 Dec 27, 2022
A Python library for the Docker Engine API

Docker SDK for Python A Python library for the Docker Engine API. It lets you do anything the docker command does, but from within Python apps – run c

Docker 6.1k Dec 31, 2022
Changelog CI is a GitHub Action that enables a project to automatically generate changelogs

What is Changelog CI? Changelog CI is a GitHub Action that enables a project to automatically generate changelogs. Changelog CI can be triggered on pu

Maksudul Haque 106 Dec 25, 2022
DataOps framework for Machine Learning projects.

Noronha DataOps Noronha is a Python framework designed to help you orchestrate and manage ML projects life-cycle. It hosts Machine Learning models ins

52 Oct 30, 2022
Run Oracle on Kubernetes with El Carro

El Carro is a new project that offers a way to run Oracle databases in Kubernetes as a portable, open source, community driven, no vendor lock-in container orchestration system. El Carro provides a p

Google Cloud Platform 205 Dec 30, 2022
The leading native Python SSHv2 protocol library.

Paramiko Paramiko: Python SSH module Copyright: Copyright (c) 2009 Robey Pointer 8.1k Jan 04, 2023

Convenient tool to manage multiple VMs at once using libvirt

Convenient tool to manage multiple VMs at once using libvirt Installing To install the tool and its dependencies: pip install -e . Getting completion

Cedric Bosdonnat 13 Nov 11, 2022
Python IMDB Docker - A docker tutorial to containerize a python script.

Python_IMDB_Docker A docker tutorial to containerize a python script. Build the docker in the current directory: docker build -t python-imdb . Run the

Sarthak Babbar 1 Dec 30, 2021
This project shows how to serve an TF based image classification model as a web service with TFServing, Docker, and Kubernetes(GKE).

Deploying ML models with CPU based TFServing, Docker, and Kubernetes By: Chansung Park and Sayak Paul This project shows how to serve a TensorFlow ima

Chansung Park 104 Dec 28, 2022
Self-hosted, easily-deployable monitoring and alerts service - like a lightweight PagerDuty

Cabot Maintainers wanted Cabot is stable and used by hundreds of companies and individuals in production, but it is not actively maintained. We would

Arachnys 5.4k Dec 23, 2022
Docker Container wallstreetbets-sentiment-analysis

Docker Container wallstreetbets-sentiment-analysis A docker container using restful endpoints exposed on port 5000 "/analyze" to gather sentiment anal

145 Nov 22, 2022
Pulumi - Developer-First Infrastructure as Code. Your Cloud, Your Language, Your Way 🚀

Pulumi's Infrastructure as Code SDK is the easiest way to create and deploy cloud software that use containers, serverless functions, hosted services,

Pulumi 14.7k Jan 08, 2023