sentry-server-data v0.6.0
sentry-server-data 
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-dataIt 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 portFor example:
$ sentry-server-data -p 3333
sentry-server-data is running on port 3333Machine 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.