Giter VIP home page Giter VIP logo

monitor-13's Introduction

monitor

Server monitoring using node.js and mongodb

Client

Client will run as a daemon, will init all data collectors. Call data collectors at a configured interval and push information to server via http post.

To start or stop the client :

./monitor-client.js start | stop

Server

Server will listen for pushed from the client and log received information in the mongodb database.

To start or stop the server :

./monitor-server.js start | stop

Collectors

Collectors will get information from the system, stock or buffer the information in an array, and push the information to the server.

Collectors must export the following functions :

init()			will be called when object is initialy created
collect()		will be called at every interval, collection of data
				must be done here.
close()			will be called when client is closed					

Configuration

Client configurations are found in ./client/config.js

collectInterval			Interval in milliseconds between each collect call
serverHost				Server host name
serverPort				Server port number
logLevel				log4js log level TRACE, DEBUG, INFO, WARN, ERROR, FATAL
hostName				Hostname of the client or server, can be configured in config.js
						if empty will be detected from computer hostname

Server configuration are found in ./server/config.js

serverPort				Server port number

Required node modules

Here is a list of required node js modules:

fs
os
log4js
http
daemonize2
mongojs

monitor-13's People

Contributors

benoitgauthier avatar bgauthier avatar

Watchers

 avatar

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.