2024-05-01 22:39:55 +02:00
|
|
|
# Quick start
|
|
|
|
|
|
|
|
1) Create an empty database
|
|
|
|
1) Create the configuration file (default ~/.config/smon.yaml)
|
|
|
|
1) Run ./smon (will create the database schema)
|
|
|
|
|
2024-05-01 22:34:34 +02:00
|
|
|
# Configuration
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
network:
|
|
|
|
address: "[::]"
|
|
|
|
port: 9000
|
|
|
|
|
|
|
|
websocket:
|
|
|
|
domains:
|
|
|
|
- localhost
|
|
|
|
- smon.example.com
|
|
|
|
|
|
|
|
database:
|
|
|
|
host: localhost
|
|
|
|
port: 5432
|
|
|
|
name: smon
|
|
|
|
username: smon
|
|
|
|
password: you_wish
|
|
|
|
|
|
|
|
session:
|
|
|
|
daysvalid: 31
|
|
|
|
|
|
|
|
application:
|
|
|
|
logfile: /var/log/smon.log
|
2024-05-30 17:22:38 +02:00
|
|
|
nodata_interval: 60
|
2024-05-01 22:34:34 +02:00
|
|
|
```
|
2024-05-01 22:39:55 +02:00
|
|
|
|
|
|
|
# Data from systems to datapoints
|
|
|
|
|
2024-05-30 17:22:38 +02:00
|
|
|
`curl -d "$(time +'%F %T +02')" http://localhost:9000/entry/datapoint_name`
|