Skip to content

astral1/server_status

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Server Status

Dependency Status Code Climate

서버의 상태를 체크하고 쉽게 확인하기 위한 도구입니다. 도메인 별로 port 상태와 대표 API의 동작 여부를 확인합니다.

사용법

gem install server_status
statusd <path to config file>

API

  • /servers - 확인 대상의 목록
["google","test"]
  • **/:server_name/status - 해당 대상의 상태
{"name":"google","code":404,"description":"Google Portal","is_open":true}

예제 설정

port: 4568
servers:
  google:
    protocol: http
    domain: www.google.com
    ssl: false
    description: Google Portal
    port: 80
    apis:
      default:
        url: /deaddead
      details:
        index:
          description: Index Page
          url: /
  test:
    protocol: http
    domain: localhost
    ssl: false
    description: Test Dummy
    port: 4567
    apis:
      default:
        url: /
        payload:
          header:
            content_type: application/json
          params:
            query: TEST
          encode: json
          method: get

Copyright

이 프로젝트는 Simplified BSD 2.0 라이센스로 제공되고 있습니다.

Copyright (c) 2012 Jeong, Jiung. See LICENSE.txt for further details.