GithubHelp home page GithubHelp logo

servermonitor's Introduction

ServerMonitor

本服务监测包含以下:

  • HTTP — Nginx、Tomcat等
  • TCP — MQ服务等TCP协议连接
  • Redis
  • MySQL

配置文件:

# config
enabled: true
instances:
  http:
    - name: Nginx
      url: http://192.168.1.100:80
  mysql:
    - name: MySQL
      host: 192.168.10.100
      port: 3306
      user: root
      pass: pass
  redis:
    - name: Redis
      host: 192.168.10.100
      port: 6379
  tcp:
    - name: ActiveMQ
      host: 192.168.10.102
      port: 61616
# 钉钉机器人token      
ddRobotToken: 027956b4093ae5194ceb180ca549eaa1fec45b5b8915f0753b851a9691af3649

编译原型:

可使用gox编译 参考:

## 编译linux
gox -osarch "linux"
## 编译linux及windows
gox -osarch "linux windows" 

参考项目:

github.com/mitchellh/gox
github.com/cihub/seelog
gopkg.in/yaml.v2
github.com/go-sql-driver/mysql
github.com/garyburd/redigo/redis

备注:

配置文件使用yaml,支持多服务监听
各模块使用单独配置文件x-config.yml,也可以统一使用config.yml配置
信息推送使用钉钉自定义机器人

下载:

config.yml monitor_linux_386
monitor_linux_amd64
monitor_windows_386
monitor_windows_amd64

servermonitor's People

Contributors

adminpass avatar

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.