sentry-server-data
A server that provides system and service information.
Last updated a year ago by sbuggay .
ISC · Repository · Original npm · Tarball · package.json
$ cnpm install sentry-server-data 
SYNC missed versions from official npm registry.

sentry-server-data npm version

sentry-server-data is a small express server that will report back information about the system.

Installation and Use

The server can be acquired on npm.

npm i -g sentry-server-data

It can be run with these options.

$ sentry-server-data -h

  Usage: sentry-server-data [options]

  Options:

    -h, --help             output usage information
    -c, --config <config>  Specified config
    -p, --port <port>      Specified port

For example:

$ sentry-server-data -p 3333
sentry-server-data is running on port 3333

Machine information

By default sentryserver will respond to any request at / with this information from the OS.

  • platform
  • release
  • type
  • endianness
  • hostname
  • uptime
  • freemem
  • totalmem
  • cpus

Authentication

Some of the data surfaced by sentry-server-data could be a security risk. sentry-server-data will generate a 32 byte apikey on first run (or if the apikey setting in the config is missing.) Any request to sentry-server-data needs to include this key in the header as apikey or it will be met with a 401. sentry-server-host will automatically use any apikey given to it in it's config.

Services

sentry-server-data can be configured to run scripts and test against stdout.

For example, checking if httpd is running with service

services: [
  {
    "name": "httpd",
    "script": "service httpd status",
    "test": "running"
  }
]

sentry-server-data will run the script service httpd status and if running is detected as a substring of the stdout the service is considered to be up.

Current Tags

  • 0.6.0                                ...           latest (a year ago)

17 Versions

  • 0.6.0                                ...           a year ago
  • 0.5.1                                ...           a year ago
  • 0.5.0                                ...           a year ago
  • 0.4.0                                ...           a year ago
  • 0.3.9                                ...           a year ago
  • 0.3.8                                ...           a year ago
  • 0.3.7                                ...           a year ago
  • 0.3.6                                ...           a year ago
  • 0.3.5                                ...           a year ago
  • 0.3.4                                ...           a year ago
  • 0.3.3                                ...           a year ago
  • 0.3.2                                ...           3 years ago
  • 0.3.1                                ...           3 years ago
  • 0.3.0                                ...           3 years ago
  • 0.2.0                                ...           3 years ago
  • 0.1.3                                ...           3 years ago
  • 0.1.2                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 23
Last Day 0
Last Week 19
Last Month 4
Dependencies (7)
Dev Dependencies (10)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |