2.6.8 • Published 9 years ago

monitode v2.6.8

Weekly downloads
4
License
GPLv3
Repository
github
Last release
9 years ago

monitode

NPM version Build Status Dependency Status

monitode logo

Resource monitor for nodejs using a full stack of MEAN.

Installation

Install through NPM

npm install monitode

or

git clone git://github.com/hex7c0/monitode.git

API

inside nodejs project

var monitode = require('monitode')();

inside expressjs project

var monitode = require('monitode');
var app = require('express')();

app.use(monitode({
    password : 'psw'
}));

inside expressjs project with logger-request

var monitode = require('monitode');
var app = require('express')();
var logger = require('logger-request');

var file = __dirname + '/monitode.log'
app.use(logger({
    filename : file,
}));
app.use(monitor({
    log : file,
}));

Monidote informations are stored inside GLOBAL Object. One istance for environment.

GLOBAL.monitode;

monitode(options)

options

  • output - Boolean If enabled, show output to shell console (default "false")
  • os - Boolean If enabled, show os (netstat, iostat) statistics to web console/database/email (default "false") NOT FOR WIN
  • tickle - Boolean If enabled, using tickle inside dynamic datas (default "disabled")
  • app - Object If enabled, using Express object for express-sitemap inside static datas (default "disabled")

  • http - Object Setting up a web console using basic-authentication

  • enabled - Boolean If disabled, don't run web console (default "enabled")
  • port - Integer Which port accept connection of web console (default "30000")
  • user - String User for web basic access authentication (default "admin")
  • password - String Password for web basic access authentication (default "password")
  • agent - String Browser User Agent for web authentication (default "all accepted")
  • realm - String Realm for web authentication (default "Monitode")
  • file - String Path of htpasswd file (default "disabled")
  • hash - String Type of hash inside your htpasswd file (default "md5")
  • dir - String Absolute path of web files directory (default "/public")

    related to https://github.com/hex7c0/basic-authentication

  • https - Object Setting up a web console over TLS/SSL using basic-authentication

  • key - String Path to TLS/SSL key (default "disabled")
  • cert - String Path to TLS/SSL certificate (default "disabled")
  • port - Integer Which port accept connection of web console over TLS/SSL (default "30003")
  • user - String User for web basic access authentication over TLS/SSL (default "admin")
  • password - String Password for web basic access authentication over TLS/SSL (default "password")
  • agent - String Browser User Agent for web authentication over TLS/SSL (default "all accepted")
  • realm - String Realm for web authentication over TLS/SSL (default "Monitode")
  • file - String Path of htpasswd file (default "disabled")
  • hash - String Type of hash inside your htpasswd file (default "md5")
  • dir - String Absolute path of web files directory (default "/public")

    related to https://github.com/hex7c0/basic-authentication

  • logger - Object Setting up a permanent file which save your story

  • log - String Path to log file, using logger-request (default "disabled") Parsing information stored inside log, and show it to web console or file/database
  • file - String Path to file (default "disabled") Save stats at regular intervals to file
  • timeout - Float Timeout (second) for file write (default "5")

    related to https://github.com/hex7c0/logger-request

  • db - Object Setting up a connectiont to database which save your story

  • mongo - String URI for MongoDb connection (default "disabled") Save stats at regular intervals to database
  • couch - String URI for CouchDb connection (default "disabled") Save stats at regular intervals to database
  • database - String Name of your database (default "monitode")
  • timeout - Float Timeout (second) for database query (default "20")

    related to https://github.com/mongodb/node-mongodb-native and https://github.com/dscape/nano

  • mail - Object Setting up SMTP

  • provider - String Check nodemailer for available email provider (default "disabled")
  • user - String User for email authentication (default "admin")
  • password - String Password for email authentication (default "password")
  • to - Array Write here your destination emails (default "empty")
  • subject - String Email subject (default "password")
  • timeout - Float Timeout (second) for email send (default "60")

  • status - Object Setting up a check of status of any number of websites and save status to file

  • enabled - Boolean If disabled, don't run check status (default "disabled")
  • sites - Array Write here your list of checking websites (default "empty")
  • port - Array Write here your list of websites port (default "empty")
  • method - String A string specifying the HTTP request method (default "GET")
  • agent - String User Agent for sending request (default "monitode crawl")
  • file - String Where save information of connection (default "status")
  • timeout - Float Timeout (second) for email send (default "120")

Examples

Take a look at my examples

Or look at pdf file

License GPLv3

2.6.8

9 years ago

2.6.7

9 years ago

2.6.6

9 years ago

2.6.5

9 years ago

2.6.4

9 years ago

2.6.3

9 years ago

2.6.2

9 years ago

2.6.1

9 years ago

2.6.0

10 years ago

2.5.21

10 years ago

2.5.20

10 years ago

2.5.19

10 years ago

2.5.18

10 years ago

2.5.17

10 years ago

2.5.16

10 years ago

2.5.15

10 years ago

2.5.14

10 years ago

2.5.13

10 years ago

2.5.12

10 years ago

2.5.11

10 years ago

2.5.10

10 years ago

2.5.9

10 years ago

2.5.8

10 years ago

2.5.7

10 years ago

2.5.6

10 years ago

2.5.5

10 years ago

2.5.3

10 years ago

2.5.2

10 years ago

2.5.1

10 years ago

2.5.0

10 years ago

2.4.16

10 years ago

2.4.15

10 years ago

2.4.14

10 years ago

2.4.13

10 years ago

2.4.12

10 years ago

2.4.11

10 years ago

2.4.10

10 years ago

2.4.9

10 years ago

2.4.8

10 years ago

2.4.7

10 years ago

2.4.6

10 years ago

2.4.5

10 years ago

2.4.4

10 years ago

2.4.3

10 years ago

2.4.2

10 years ago

2.4.1

10 years ago

2.4.0

10 years ago

2.3.6

10 years ago

2.3.5

10 years ago

2.3.4

10 years ago

2.3.3

10 years ago

2.3.2

10 years ago

2.3.1

10 years ago

2.3.0

10 years ago

2.2.22

10 years ago

2.2.21

10 years ago

2.2.20

10 years ago

2.2.19

10 years ago

2.2.18

10 years ago

2.2.17

10 years ago

2.2.16

10 years ago

2.2.15

10 years ago

2.2.14

10 years ago

2.2.13

10 years ago

2.2.12

10 years ago

2.2.11

10 years ago

2.2.10

10 years ago

2.2.9

10 years ago

2.2.8

10 years ago

2.2.7

10 years ago

2.2.6

10 years ago

2.2.5

10 years ago

2.2.4

10 years ago

2.2.3

10 years ago

2.2.2

10 years ago

2.2.1

10 years ago

2.2.0

10 years ago

2.1.4

10 years ago

2.1.3

10 years ago

2.1.2

10 years ago

2.1.1

10 years ago

2.1.0

10 years ago

2.0.0

10 years ago

1.3.1

10 years ago

1.3.0

10 years ago

1.2.2

10 years ago

1.2.1

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.0.1

10 years ago