Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/softius/statis
https://github.com/softius/statis
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/softius/statis
- Owner: softius
- License: mit
- Created: 2013-11-12T19:52:35.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-08-02T20:20:31.000Z (over 9 years ago)
- Last Synced: 2023-03-24T07:03:07.885Z (almost 2 years ago)
- Language: JavaScript
- Size: 141 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Statis
A simple monitoring application for websites and MySQL
## Installation
Statis requires nodejs 0.10.x
To install from GitHub, clone the repository and install dependencies using npm:
```
git clone git://github.com/softius/Statis.git
cd Statis
npm install
node console.js
```Help is available by executing `node console.js -h`.
## Configuration
Configuration goes in `config.json`. You can start by copying `config-sample.json` to `config.json`. Statis perceives all endpoints to be monitored as nodes and provides support for http, mysql and sockets in general.
It is also possible to have multiple configuration files. Create a new file i.e. `config2.json` in any directory according to the structure defined in `config-sample.json`. The new configuration file can be passed during execution via `-c` option as follows:
```node console.js -c config2.json```
``` JAVASCRIPT
{
"nodes": [
{
"label": "Google",
"http": {
"hostname": "google.com",
"port": 80,
"path": "/",
"method": "GET"
}
}
]
}
```Here is an example for configuring http nodes
``` JAVASCRIPT
{
"label": "Google",
"http": {
"hostname": "google.com",
"port": 80,
"path": "/",
"method": "GET"
}
}
```Here is an example for configuring socket nodes
``` JAVASCRIPT
{
"label": "Google",
"socket": {
"host": "google.com",
"port": 80
}
}
```Here is an example for configuring mysql nodes
``` JAVASCRIPT
{
"label": "Localhost MySQL",
"mysql": {
"host": "127.0.0.1",
"user": "root",
"password": "root"
}
}
```