Dashing Dashboard: Could not locate Gemfile

Hi,

I tried to install dashing-dashboard for my Icinga2 instance. But the service can’t be started; systemctl gives the error message “Could not locate Gemfile or .bundle/ directory”

Well, the Gemfile is right under ~/dashing-icinga2/Gemfile. Where else should I put it?

Thanks in advance!

Hi,

can you share the exact steps you did during the installation?

Cheers,
Michael

  1. added API user in /etc/icinga2/conf.d/api-users.conf
  2. installed ruby, bundler and nodejs via apt
  3. installed bundler and dashing gems
  4. cloned https://github.com/dnsmichi/dashing-icinga2.git
  5. executed “bundle” in the cloned repository
  6. copied icinga2.json to icinga2.local.json and edited the API user
  7. created folder /usr/share/dashing-icinga2
  8. installed the service:
    sudo cp tools/systemd/dashing-icinga2.service /lib/systemd/system/
    sudo systemctl daemon-reload
    sudo systemctl start dashing-icinga2.service
    sudo systemctl status dashing-icinga2.service

I’d assume that the path to the cloned repository is /usr/share/dashing-icinga2?

1 Like

No, it’s /home/administrator/dashing-icinga2

Moved the folder and it works. Thank you very much!

Hi! It’s possible to install dashing-icinga2 on a different server than ICINGA 2 run ?
This is just to test\evaluate the dashboard and do not involve the ICINGA server.
Do I need to change some file on the icinga server in order to make dashing-icinga2 works ?

Yes you can install where ever you want, dashing uses the Icinga API.

1 Like