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
|
|
|
|
|
|
|
|
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-06-29 12:08:40 +02:00
|
|
|
`curl -d 200 http://localhost:9000/entry/datapoint_name`
|
|
|
|
|
|
|
|
## Datetime format
|
|
|
|
|
2024-06-29 12:09:09 +02:00
|
|
|
Datetime data is to be in the format of `2006-01-02T15:04:05+02:00` or `2006-01-02T15:04:05+0200`.
|
2024-06-29 12:08:40 +02:00
|
|
|
|
|
|
|
Use `date '+%FT%T%z'` to get a value from systems in correct format.
|
2024-06-25 09:58:27 +02:00
|
|
|
|
|
|
|
# Theming
|
|
|
|
|
|
|
|
* Add theme to select tag in `/views/pages/configuration.gotmpl`.
|
|
|
|
* Create `/static/less/theme-<theme-name>.less`.
|
|
|
|
* Create `/static/less/<theme-name>.less`.
|
|
|
|
* Copy a theme directory under `/static/images/` to the new name.
|