Simple monitoring solution
| notification | ||
| sql | ||
| static | ||
| views | ||
| .gitignore | ||
| area.go | ||
| config.go | ||
| configuration.go | ||
| datapoint.go | ||
| go.mod | ||
| go.sum | ||
| helper.go | ||
| main.go | ||
| nodata.go | ||
| notification_log.go | ||
| notification_manager.go | ||
| page.go | ||
| problem.go | ||
| README.md | ||
| section.go | ||
| trigger.go | ||
Quick start
- Create an empty database
- Create the configuration file (default ~/.config/smon.yaml)
- Run ./smon (will create the database schema)
Configuration
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
nodata_interval: 60
Data from systems to datapoints
curl -d 200 http://localhost:9000/entry/datapoint_name
Datetime format
Datetime data is to be in the format of 2006-01-02T15:04:05+02:00 or 2006-01-02T15:04:05+0200.
Use date '+%FT%T%z' to get a value from systems in correct format.
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.