Giter Site home page Giter Site logo

ssmon's Introduction

SSMON (Simple Server Monitor) - 시스템 모니터링

스크린샷

Install

  • 먼저 서버에 Ubuntu Linux 를 설치하고, MySQL을 설치합니다. Linux는 다른 배포판을 사용할 수도 있지만, Ubuntu를 권장합니다.
  • MySQL 에 DB와 계정을 생성합니다.
-- SSMON DB와 계정 생성
-- DB이름과 사용자이름은 모두 ssmon 으로 해주세요!
-- 비밀번호만 원하는 것으로 변경하세요! 아래와 같은 방법으로 해주시면 됩니다.
CREATE DATABASE ssmon DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE USER 'ssmon'@'%' IDENTIFIED BY 'ssmon123'; -- 비밀번호 변경
GRANT ALL PRIVILEGES ON ssmon.* TO 'ssmon'@'%' WITH GRANT OPTION;
CREATE USER 'ssmon'@'localhost' IDENTIFIED BY 'ssmon123'; -- 비밀번호 변경
GRANT ALL PRIVILEGES ON ssmon.* TO 'ssmon'@'localhost' WITH GRANT OPTION;
FLUSH privileges;
  • SSMON을 다운로드 합니다. (OS계정은 Ubuntu Linux의 기본인 ubuntu로 진행합니다.)
$ cd ~
$ wget https://github.com/gauryan/ssmon/releases/download/v0.1.1/ssmon_v0.1.1.tar.gz
$ tar xvfz ssmon_v0.1.0.tar.gz
  • 테이블 생성 및 기초데이터를 입력합니다. 혹시, 아래 내용이 권한 문제로 잘 안되면, MySQL root 계정으로 실행해주세요.
$ cd ssmon/install
$ mysql -u ssmon -p ssmon < 02_create_table_sp.sql
$ mysql -u ssmon -p ssmon < 03_insert_init_data.sql
  • .env 파일에서 어플리케이션의 포트와 DB설정을 합니다.
$ cd ~/ssmon
$ vi .env
APP_PORT=3000
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=ssmon
DB_USERNAME=ssmon
DB_PASSWORD=ssmon123 # 원하는 비밀번호로 변경!
  • crontab 설정을 해줍니다. 프로그램 설치위치가 다르면 조정해주세요.
$ crontab -e
* * * * * /home/ubuntu/ssmon/check/check_tcp -e /home/ubuntu/ssmon/.env
* * * * * /home/ubuntu/ssmon/check/check_http -e /home/ubuntu/ssmon/.env
* * * * * /home/ubuntu/ssmon/check/check_ping -e /home/ubuntu/ssmon/.env
1 1 * * * /home/ubuntu/ssmon/check/del_logs -e /home/ubuntu/ssmon/.env
  • 마지막으로 서버를 시작해주시면 되겠습니다.
$ cd ~/ssmon
./start
  • 이제 웹브라우저에서 설정된 IP주소와 Port로 접속해보시면 되겠습니다. 관리자 초기 아이디/비밀번호는 admin/admin123 입니다.

ssmon's People

Contributors

gauryan avatar

Stargazers

Bigfish avatar Jonghyeon Kim avatar Stoney Kang avatar 김길섭 avatar HyunSang Park avatar Baik S. Hyun avatar Jaemin Noh avatar  avatar

Watchers

 avatar

ssmon'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.