Coder Social home page Coder Social logo

xiettt / serverstatus Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 1.32 MB

ServerStatus定时发送设备信息到指定邮箱,支持页面查看详情和修改配置、支持Windows和Linux系统。

License: MIT License

Java 89.74% TSQL 0.23% CSS 10.03%

serverstatus's Introduction

Server-Status

不知道取什么名字好,就直接叫这个了。功能如其名,就是发送服务器状态的一个App,使用的是JAVA语言,所有支持多平台(Linux、Windows和Unix)。

实现的功能

  • 可以定时发送很多服务器的信息。通过邮件发送,使用的是465端口,在阿里云服务器上也能发邮件(阿里云自动屏蔽25端口的邮件,用25就发不出去邮件了)。
  • 可以通过浏览器查看详细信息,支持在浏览器设置参数(比如邮箱收件人、定多长时间发送一次邮件、或者CPU温度达到多少时发送提醒邮件等等)。

使用的技术

  • 后端:使用springboot集成mybatis、springmvc,以及springboot内嵌的Tomcat。
  • 前端:采用web是Thymeleaf模板引擎,html email也是采用Thymeleaf模板引擎,邮件与网页都是响应式布局。
  • 数据库:使用的是 H2 内嵌式数据库,一个2m大小的jar包,不用安装,随项目一起部署。对于这个很小很小的项目完全够用了。也不需要另外安装Mysql,消灭了一些可能出现的异常。
  • 硬件信息收集:使用的是开源项目Oshi、和Jsensor(仅Windows的CPU温度收集),也当然用了JDK自带的一些api。

提升

这是我的第一个项目,大概是3月初开始的,到现在有1个多月了。应该算很慢的吧,不过springboot是现学现用的,中间踩了很多很多坑。比如因为一个“log4j”编译一直失败,花了一天才弄明白为什么;或者H2无法建表(在mysql上试都是可以的...H2就是无法建表);以及制作html邮件的坑等等。所有能把这个项目做完还是不错了~

展示

登录 image.png

注册 image.png

首页 image.png

详情页 image.png

折线图 image

设置页 image.png

温度监控&定时消息页 image.png

Server-Status 演示 www.serverstatus.run

账号: admin 密码: 123456

Server-Status 安装包 依赖Java1.8及以上

未写完,待续...

serverstatus's People

Contributors

xiettt avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

serverstatus's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.