Comments (8)
UPDATE: I was able to get this running using ruby2.6
disclaimer: I am by no means a ruby expert, I'm winging it the best I can.
Using Redhat Software Collections (RHSCL) channel, things are a tad different.
By all means, if anyone has a better way to do this, please guide me. I'm open ears!
I was unsuccessful in getting this to run without root (I did see the notice about not doing this as root)....
sudo su -
cd /usr/share/dashing-icinga2
source /opt/rh/rh-ruby26/enable
sudo scl enable rh-ruby26 'gem install bundler'
sudo scl enable rh-ruby26 'bundle'
cd /usr/share/dashing-icinga2/tools/systemd
sudo cp dashing-icinga2.service /usr/lib/systemd/system/
sudo vi /usr/lib/systemd/system/dashing-icinga2.service
Updated these lines for the service to stop/start/restart
ExecStart=/bin/bash -c '\
source /opt/rh/rh-ruby26/enable ; \
/opt/rh/rh-ruby26/root/usr/bin/dashing start -d -p 8005 --pid /var/run/thin.pid'
ExecStop=/opt/rh/rh-ruby26/root/usr/bin/dashing stop
Then daemon-reload followed by start.
Nav to http://:8005 I see it... however I have 2 panel with 404 errors??
**Oh, I am also running the dashing service in foreground to view any errors... not seeing any.
from dashing-icinga2.
Another UPDATE:
Edited the /usr/share/dashing-icinga2/config/icinga2.local.json file
changed the URL from "localhost" to the FQDN...
{
"icinga2": {
"api": {
"host": "localhost",
"port": 5665,
"user": "dashing",
"password": "dashing-password-here"
}
},
"icingaweb2": {
"url": "https://icinga01.example.com/icingaweb2"
}
}
Also purposely messed up a host to make it throw a host issue"
Now I get this (2 login frames):
Also, this is the part that is confusing to me...
If I do not run as root:
[user@icinga01 dashing-icinga2 12183]$ scl enable rh-ruby26 'bundle'
Using backports 3.15.0
Following files may not be writable, so sudo is needed:
/opt/rh/rh-ruby26/root/usr/bin
/opt/rh/rh-ruby26/root/usr/share/gems
/opt/rh/rh-ruby26/root/usr/share/gems/build_info
/opt/rh/rh-ruby26/root/usr/share/gems/cache
/opt/rh/rh-ruby26/root/usr/share/gems/doc
/opt/rh/rh-ruby26/root/usr/share/gems/extensions
/opt/rh/rh-ruby26/root/usr/share/gems/gems
/opt/rh/rh-ruby26/root/usr/share/gems/specifications
And if I run as root:
[user@icingp01 dashing-icinga2 12186]$ sudo scl enable rh-ruby26 'bundle'
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on
this machine.
from dashing-icinga2.
Oddly enough, If I provide my creds to those 2 login windows and refresh, it looks like it should.
Seems to be persistent after the first login.
Unsure what/why is causing this behavior. I did see the post about X-Frames, that isn't even in my apache config, verified with curl -I output.
from dashing-icinga2.
I'm not sure why you would need Ruby from SCL. The Vagrant boxes use what's available in the base repo, and it works just fine.
from dashing-icinga2.
I'll revisit this (using standard channel ruby) in a bit and report back.
from dashing-icinga2.
@fireheadman Were you able to resolve this issue or is it still persistent?
from dashing-icinga2.
from dashing-icinga2.
I will then close this issue. iFrames seem to work with your configuration and the problem with installing the bundler gem via SCL has been documented as can be seen in #98
from dashing-icinga2.
Related Issues (20)
- cookies problem on CHROME HOT 8
- Very Long Delay Behind MS App Proxy before Data Shown HOT 11
- Maintainer wanted HOT 9
- I can't set TZ (TimeZone) for container HOT 3
- No information is shown until service is restarted HOT 17
- No data on icinga2-Dashboard HOT 4
- Question: Change data-sizey lower than 1? HOT 2
- Empty Icinga2-Dashboard HOT 2
- [Bug] Receiving 401 errors after Installation HOT 17
- [Bug] DOWN Hosts are not displayed correctly and throw errors: "no implicit conversion of nil into string" HOT 2
- Invalid yield in layout.erb HOT 3
- Multiple Services for single Host with same name are not displayed individually HOT 1
- Pie-chart widgets render too big HOT 1
- sharing dashboards HOT 3
- Restart-Dashing script does not work ubuntu HOT 2
- Guidance modifying dashlet HOT 7
- Disable roundchart animation HOT 3
- Can't get dashing-icinga2 to work HOT 5
- dashing-icinga2, installation not working
- deploy two or more dashing on the same icinga2 Instance.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dashing-icinga2.