项目作者: ruby-without-rails

项目描述 :
Similar to Pingdom
高级语言: Ruby
项目地址: git://github.com/ruby-without-rails/uptime_concept.git
创建时间: 2018-07-29T13:50:17Z
项目社区:https://github.com/ruby-without-rails/uptime_concept

开源协议:

下载


Uptime Concept

Micro sinatra application that pings a Server Instances to provide data for Metabase

For each register in config/instances.yml create a ping cron job.

Don’t forget

  • sudo apt-get install libpq-dev
  • sudo yum install libpq-dev

Configure the database

  1. config/database.conf.yml

You can set up an e-mail account to warn you of unavailability.

  1. config/email.config.yml

Run with

  1. rackup config.ru

Create a service

Move uptime_concept.service to /lib/systemd/system/uptime_concept.service

Enable the service

  • sudo systemctl enable uptime_concept.service

    If you have made changes to your service, you may need to reload the daemon

  • sudo systemctl daemon-reload

    Start/Restart/Stop the service

  • sudo service uptime_concept.service start

it works on my machine!