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
A repository containing a short tutorial for Docker (with Python).

Docker Tutorial for IFT 6758 Lab In this repository, we examine the advtanges of virtualization, what Docker is and how we can deploy simple programs

Arka Mukherjee 0 Dec 14, 2021
Blazingly-fast :rocket:, rock-solid, local application development :arrow_right: with Kubernetes.

Gefyra Gefyra gives Kubernetes-("cloud-native")-developers a completely new way of writing and testing their applications. Over are the times of custo

Michael Schilonka 352 Dec 26, 2022
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
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
Play Wordle from any Kubernetes cluster.

wordle-operator 🟩 ⬛ 🟩 🟨 ⬛ Play Wordle from any Kubernetes cluster. Using the power of CustomResourceDefinitions and Kubernetes Operators, now you c

Lucas Melin 1 Jan 15, 2022
A little script and trick to make your heroku app run forever without being concerned about dyno hours.

A little script and trick to make your heroku app run forever without being concerned about dyno hours.

Tiararose Biezetta 152 Dec 25, 2022
A Blazing fast Security Auditing tool for Kubernetes

A Blazing fast Security Auditing tool for kubernetes!! Basic Overview Kubestriker performs numerous in depth checks on kubernetes infra to identify th

Vasant Chinnipilli 934 Jan 04, 2023
Containerize a python web application

containerize a python web application introduction this document is part of GDSC at the university of bahrain you don't need to follow along, fell fre

abdullah mosibah 1 Oct 19, 2021
A Python Implementation for Git for learning

A pure Python implementation for Git based on Buliding Git

shidenggui 42 Jul 13, 2022
Cross-platform lib for process and system monitoring in Python

Home Install Documentation Download Forum Blog Funding What's new Summary psutil (process and system utilities) is a cross-platform library for retrie

Giampaolo Rodola 9k Jan 02, 2023
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
Flexible and scalable monitoring framework

Presentation of the Shinken project Welcome to the Shinken project. Shinken is a modern, Nagios compatible monitoring framework, written in Python. It

Gabès Jean 1.1k Dec 18, 2022
Prometheus exporter for AWS Simple Queue Service (SQS)

Prometheus SQS Exporter Prometheus exporter for AWS Simple Queue Service (SQS) Metrics Metric Description ApproximateNumberOfMessages Returns the appr

Gabriel M. Dutra 0 Jan 31, 2022
Let's Git - Version Control & Open Source Homework

Let's Git - Version Control & Open Source Homework Welcome to this homework for our MOOC: Let's Git! We hope you will learn a lot and have fun working

1 Dec 05, 2021
A Simple script to hunt unused Kubernetes resources.

K8SPurger A Simple script to hunt unused Kubernetes resources. Release History Release 0.3 Added Ingress Added Services Account Adding RoleBindding Re

Yogesh Kunjir 202 Nov 19, 2022
Knock your images before these make you painful.

image-knocker Knock your images before these make you painful. Background One day, I had run my deep learning model training program and got off work

Yonghye Kwon 9 Jul 25, 2022
Linux, Jenkins, AWS, SRE, Prometheus, Docker, Python, Ansible, Git, Kubernetes, Terraform, OpenStack, SQL, NoSQL, Azure, GCP, DNS, Elastic, Network, Virtualization. DevOps Interview Questions

Linux, Jenkins, AWS, SRE, Prometheus, Docker, Python, Ansible, Git, Kubernetes, Terraform, OpenStack, SQL, NoSQL, Azure, GCP, DNS, Elastic, Network, Virtualization. DevOps Interview Questions

Arie Bregman 35.1k Jan 02, 2023
Tools for writing awesome Fabric files

About fabtools includes useful functions to help you write your Fabric files. fabtools makes it easier to manage system users, packages, databases, et

1.3k Dec 30, 2022
strava-offline is a tool to keep a local mirror of Strava activities for further analysis/processing:

strava-offline Overview strava-offline is a tool to keep a local mirror of Strava activities for further analysis/processing: synchronizes metadata ab

Tomáš Janoušek 29 Dec 14, 2022
Project 4 Cloud DevOps Nanodegree

Project Overview In this project, you will apply the skills you have acquired in this course to operationalize a Machine Learning Microservice API. Yo

1 Nov 21, 2021