sqshq / sampler

Tool for shell commands execution, visualization and alerting. Configured with a simple YAML file.
https://sampler.dev
GNU General Public License v3.0
12.87k stars 572 forks source link

Configuration Error Ubuntu 21.10 #125

Open Opfour opened 1 year ago

Opfour commented 1 year ago

Hi,

Seen this on reddit and wanted to play with it. I installed it on my ubuntu 21.10 laptop using the command:

sudo wget https://github.com/sqshq/sampler/releases/download/v1.1.0/sampler-1.1.0-linux-amd64 -O /usr/local/bin/sampler
sudo chmod +x /usr/local/bin/sampler

Next I went to configure the yml file using the sampler -c config.yml command and got the following output:

root@merovingiantwo:/home/david/Downloads/sampler# sampler -c config.yml
panic: runtime error: index out of range

goroutine 1 [running]:
github.com/sqshq/sampler/config.(*Config).setDefaultArrangement(0xc0000c66e0)
    /home/sqshq/go/src/github.com/sqshq/sampler/config/arrangement.go:14 +0x3e3
github.com/sqshq/sampler/config.(*Config).setDefaults(0xc0000c66e0)
    /home/sqshq/go/src/github.com/sqshq/sampler/config/default.go:16 +0x47
github.com/sqshq/sampler/config.LoadConfig(0x7f822c492d98, 0x0, 0x0, 0x0, 0x0, 0x0)
    /home/sqshq/go/src/github.com/sqshq/sampler/config/config.go:43 +0xaf
main.main()
    /home/sqshq/go/src/github.com/sqshq/sampler/main.go:69 +0x37
root@merovingiantwo:/home/david/Downloads/sampler# 

Thoughts?

spinus commented 1 year ago

@Opfour Do you use some example config?