Skip to content

goomadao/serverstatus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Server Status

Screenshot

temp page:

temp

saved page:

saved

Description

Server Status is a monitor to have a quick look at all your servers(Linux and OS X supported).

Everytime a new client come in, it will be added into temp servers.

Click Save and the client will be moved to saved servers.

Click Delete and the client will be deleted from temp servers.

In saved servers, click Remove and the client will be moved to temp servers.

If there is no status received from a client in the past 30 seconds, it will be marked as "Offline".

If there is no status received from a client in temp servers in the past 3 days, it will be deleted automatically.

Build

Clone the repo

git clone https://github.com/goomadao/serverstatus.git && cd serverstatus

Build client

make client

Build server

make server

Build client and server

make

Usage

cd bin

Server

Use -h for help

$ ./server -h
serverstatus server
Usage: serverstatus -k password [-p udpPort] [-P dashboardPort] [-L logFile] [-level logLevel] [-f statusFile]
	
Options:
  -L string
    	The path to store the log file (default "./statusserver.log")
  -P int
    	The port for the dashboard (default 8080)
  -f string
    	The position to store received status (default "./status.json")
  -h	This help
  -k string
    	Password to connect to this server
  -level string
    	Log levels: [ debug, info, error] (default "error")
  -p int
    	The port to receive information from clients (default 36580)

For example:

./server -k yourPassword -p 36580 -P 8080 -L /tmp/statusserver.log -level error -f /tmp/status.json

Client

Use -h for help

$ ./client -h
serverstatus client
Usage: serverstatus -k password -s serverAddress [-p port] [-L logFile] [-level logLevel] [-n serverName] [-l location]

Options:
  -L string
    	The path to store the log file (default "./statusclient.log")
  -h	This help
  -k string
    	Password to connect to server
  -l string
    	Location of this server
  -level string
    	Log levels: [ debug, info, error] (default "error")
  -n string
    	Name of this server
  -p int
    	The server port (default 36580)
  -s string
    	The server address or domain

For example:

./client -k yourPassword -s example.your.domain -p 36580 -n "Server Name" -l "Server Location" -L /tmp/statusclient.log -level info

Todos

  • Get current net speed on Mac. (I have no idea how to do that. Any idea about that is welcome!)

About

A simple way to monitor all your servers

Resources

Stars

Watchers

Forks

Packages

No packages published