0.6.0 • Published 5 years ago

sentry-server-data v0.6.0

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

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.

0.6.0

5 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.0

6 years ago

0.3.9

6 years ago

0.3.8

6 years ago

0.3.7

6 years ago

0.3.6

6 years ago

0.3.5

6 years ago

0.3.4

6 years ago

0.3.3

6 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago