Simple monitoring solution
Go to file
2024-06-30 11:28:09 +02:00
notification Deletion of notification services. 2024-06-28 17:18:08 +02:00
sql Better interactive graph support. 2024-06-27 16:53:30 +02:00
static Added filtering of datapoints 2024-06-30 11:27:49 +02:00
views Added filtering of datapoints 2024-06-30 11:27:49 +02:00
.gitignore Initial commit 2024-04-29 08:36:13 +02:00
area.go Added area deletion 2024-06-02 09:17:50 +02:00
config.go Clarified file configuration naming 2024-06-27 09:09:47 +02:00
configuration.go Stricter datetime input 2024-06-27 13:14:37 +02:00
datapoint.go Return ts in selected time zone offset. 2024-06-27 16:21:16 +02:00
go.mod nodata ui changes 2024-05-25 15:00:01 +02:00
go.sum nodata ui changes 2024-05-25 15:00:01 +02:00
helper.go Refactored time selecting 2024-06-29 20:50:57 +02:00
main.go Bumped to v27 2024-06-30 11:28:09 +02:00
nodata.go Clarified file configuration naming 2024-06-27 09:09:47 +02:00
notification_log.go Refactored time selecting 2024-06-29 20:50:57 +02:00
notification_manager.go Deletion of notification services. 2024-06-28 17:18:08 +02:00
page.go Added page layout errors 2024-06-27 09:51:52 +02:00
problem.go Show NODATA problems in UI 2024-05-28 07:23:27 +02:00
README.md Updated README with datetime format 2024-06-29 12:09:09 +02:00
section.go Added area deletion 2024-06-02 09:17:50 +02:00
trigger.go Fixed error when adding data to a datapoint without triggers. 2024-06-27 10:33:26 +02:00

Quick start

  1. Create an empty database
  2. Create the configuration file (default ~/.config/smon.yaml)
  3. 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.