Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup problems #13

Open
CBokey opened this issue Apr 5, 2016 · 0 comments
Open

Setup problems #13

CBokey opened this issue Apr 5, 2016 · 0 comments

Comments

@CBokey
Copy link

CBokey commented Apr 5, 2016

Hello,

I try to get Net Healer up and running
I configured all parts

  • /etc/fastnetmon.conf
    redis_enabled = on redis_port = 6379 redis_host = 127.0.0.1
    graphite = on graphite_host = 127.0.0.1 graphite_port = 2003
  • /etc/influxdb/influxdb.conf

[[graphite]] enabled = true database = "graphite" bind-address = ":2003" protocol = "tcp" consistency-level = "one" name-separator = "."

batch-size = 5000 # will flush if this many points get buffered batch-timeout = "10s" # will flush at least this often even if we haven't hit buffer limit

templates = [ "fastnetmon.hosts.* app.measurement.cidr.direction.function.resource", "fastnetmon.networks.* app.measurement.cidr.direction.resource", "fastnetmon.total.* app.measurement.direction.resource" ]

  • /etc/redis/redis.conf
    bind 127.0.0.1
  • /etc/grafana/grafana.ini
    default settings, nothing changed
  • Morgoth isn´t working
    Which database and which schema should I create?
    Starting morghothd gives errors:
    1445734800 7 false false} {1459040400 6 false false} {1477789200 7 false false} {1490490000 6 false false} {1509238800 7 false false} {1521939600 6 false false} {1540688400 7 false false} {1553994000 6 false false} {1572138000 7 false false} {1585443600 6 false false} {1603587600 7 false false} {1616893200 6 false false} {1635642000 7 false false} {1648342800 6 false false} {1667091600 7 false false} {1679792400 6 false false} {1698541200 7 false false} {1711846800 6 false false} {1729990800 7 false false} {1743296400 6 false false} {1761440400 7 false false} {1774746000 6 false false} {1792890000 7 false false} {1806195600 6 false false} {1824944400 7 false false} {1837645200 6 false false} {1856394000 7 false false} {1869094800 6 false false} {1887843600 7 false false} {1901149200 6 false false} {1919293200 7 false false} {1932598800 6 false false} {1950742800 7 false false} {1964048400 6 false false} {1982797200 7 false false} {1995498000 6 false false} {2014246800 7 false false} {2026947600 6 false false} {2045696400 7 false false} {2058397200 6 false false} {2077146000 7 false false} {2090451600 6 false false} {2108595600 7 false false} {2121901200 6 false false} {2140045200 7 false false}] 1459040400 1477789200 0xc82007c7c0})}} map[ret:day]}' database not found: metrics
  • Starting nethealer is working

bundle exec script/start Puma starting in single mode... Version 2.11.1 (ruby 2.2.4-p230), codename: Intrepid Squirrel Min threads: 1, max threads: 1 Environment: development Daemonizing...

  • .env

SSL_KEY_PATH="./new.key" SSL_CERT_PATH="./cert.pem"

NETHEALER_SERVER="nethealer1.mydomain.come" NETHEALER_INFLUXDB="nethealer1.mydomain.com" NETHEALER_USERNAME="root" NETHEALER_PASSWORD="root"

GRAFANA_URL="http://nethealer1.mydomain.com:3000"

Sinatradoesn’t know this ditty. Try this: in healer.rb class Healer get '/' do "Hello World" end end

  • Let´s open https://nethealer1.mydomain.com/healer/v1/ddos/status This gives me:
    {"status":"clear","timestamp":"20160405-084023"}
  • For now, I do not know which component is talking to which database with what kind of credentials. Where does the data come from? Where does it go to? Do you have any diagram?
  • I actually don´t see any data in Grafana. How do your queries look like?

Regards,
Chris

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant