0.0
No commit activity in last 3 years
No release in over 3 years
Sermont is a command line based script to monitor your servers.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 1.0.10
 Project Readme

sermont¶ ↑

DESCRIPTION:¶ ↑

Sermont is a command line based script to monitor your servers.

SYNOPSIS:¶ ↑

type the command in your terminal.

sermont [options]

Options:¶ ↑

--setup               : copy example config file to your home directory
-r,  --raw            : print the report without colors
-t TIME, --time TIME  : checking every TIME seconds
-o FILE, --output FILE: write the report to the FILE
-l, --last            : log only the last report
-d, --daemon          : running as a daemon
-h, --help            : print this help
-v, --version         : print sermont version

Example:¶ ↑

sermont -r -o /var/log/sermont.log -d -t 1800

REQUIREMENTS:¶ ↑

  • term-ansicolor

  • daemons

INSTALL:¶ ↑

install term-ansicolor & daemons gem if you haven’t

sudo gem install term-ansicolor
sudo gem install daemons

install xinuc-sermont from github.com

sudo gem install xinuc-sermont --source=http://gems.github.com

Run

sermont --setup

it will copy .sermont.yml to your home directory. Edit this file according to your servers.

---
- servername: Your server name
  ip: 127.0.0.1
  services:
    ftp: 21
    http: 80

Now, you can run sermont to monitor your servers.

Add Your Own Handler¶ ↑

If you have any services that can’t be checked by simply open the port, you can add you own service handler. As an example, if you want to check ‘weird’ service by your own method, you can create a file name “weird.rb” under YOUR_HOME_DIR/.sermont/ Then, the file should be like :

# file: weird.rb

def weird(host, port)
  # your own checking algorithm
  # this method should return true if the service is running
  # and false if the service is stopped.
end

Copyright © 2009 Nugroho Herucahyono. See LICENSE for details.