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
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
A lobby boy will create a VPS server when you need one, and destroy it after using it.

Lobbyboy What is a lobby boy? A lobby boy is completely invisible, yet always in sight. A lobby boy remembers what people hate. A lobby boy anticipate

226 Dec 29, 2022
Hw-ci - Hardware CD/CI and Development Container

Hardware CI & Dev Containter These containers were created for my personal hardware development projects and courses duing my undergraduate degree. Pl

Matthew Dwyer 6 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
Utilitaire de contrôle de Kubernetes

Utilitaire de contrôle de Kubernetes ** What is this ??? ** Every time we use a word in English our manager tells us to use the French translation of

Théophane Vié 9 Dec 03, 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
IP address management (IPAM) and data center infrastructure management (DCIM) tool.

NetBox is an IP address management (IPAM) and data center infrastructure management (DCIM) tool. Initially conceived by the network engineering team a

NetBox Community 11.8k Jan 07, 2023
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
Official Python client library for kubernetes

Kubernetes Python Client Python client for the kubernetes API. Installation From source: git clone --recursive https://github.com/kubernetes-client/py

Kubernetes Clients 5.4k Jan 02, 2023
The leading native Python SSHv2 protocol library.

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

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
Build Netbox as a Docker container

netbox-docker The Github repository houses the components needed to build Netbox as a Docker container. Images are built using this code and are relea

Farshad Nick 1 Dec 18, 2021
Ansible for DevOps examples.

Ansible for DevOps Examples This repository contains Ansible examples developed to support different sections of Ansible for DevOps, a book on Ansible

Jeff Geerling 6.6k Jan 08, 2023
Hackergame nc 类题目的 Docker 容器资源限制、动态 flag、网页终端

Hackergame nc 类题目的 Docker 容器资源限制、动态 flag、网页终端 快速入门 配置证书 证书用于验证用户 Token。请确保这里的证书文件(cert.pem)与 Hackergame 平台 配置的证书相同,这样 Hackergame 平台为每个用户生成的 Token 才可以通

USTC Hackergame 68 Nov 09, 2022
Python job scheduling for humans.

schedule Python job scheduling for humans. Run Python functions (or any other callable) periodically using a friendly syntax. A simple to use API for

Dan Bader 10.4k Jan 02, 2023
MicroK8s is a small, fast, single-package Kubernetes for developers, IoT and edge.

MicroK8s The smallest, fastest Kubernetes Single-package fully conformant lightweight Kubernetes that works on 42 flavours of Linux. Perfect for: Deve

Ubuntu 7.1k Jan 08, 2023
Universal Command Line Interface for Amazon Web Services

aws-cli This package provides a unified command line interface to Amazon Web Services. Jump to: Getting Started Getting Help More Resources Getting St

Amazon Web Services 13.3k Jan 01, 2023
Dockerized iCloud drive

iCloud-drive-docker is a simple iCloud drive client in Docker environment. It uses pyiCloud python library to interact with iCloud

Mandar Patil 376 Jan 01, 2023
Nagios status monitor for your desktop.

Nagstamon Nagstamon is a status monitor for the desktop. It connects to multiple Nagios, Icinga, Opsview, Centreon, Op5 Monitor/Ninja, Checkmk Multisi

Henri Wahl 361 Jan 05, 2023
Quick & dirty controller to schedule Kubernetes Jobs later (once)

K8s Jobber Operator Quickly implemented Kubernetes controller to enable scheduling of Jobs at a later time. Usage: To schedule a Job later, Set .spec.

Jukka Väisänen 2 Feb 11, 2022