Thanks Michael,
I already handled the JavaScript stuff by downloading them locally - but I 
didn't think about the authentication system.
If we consider that the publicly accessible webpage is "read-only", then it 
makes sense that unauthenticated user would not be able to write a json file to 
the web server.

I'll experiment with the access controls.

Thanks again,
-Russ


From: Michael Pelletier
Sent: Thursday, October 13, 2016 1:42 PM
To: Ganglia-general@lists.sourceforge.net
Subject: [External] Re: [Ganglia-general] Creating views in Gweb-3.7.2

Hi Russell,

Two possibilities spring to mind. One is permissions and authentication – the 
default disallows everyone from creating a new view:

https://github.com/ganglia/ganglia-web/wiki/Authorization-System
The second is: are you on an air-gapped network or have an authenticating proxy 
or some such? The Ganglia-Web user interface needs a set of PHP modules which 
are referenced via Internet-facing URLs in the default configuration, and if 
you can’t directly reach the Internet from the machine, then these modules 
won’t come in and you won’t see various elements of the UI.

The modules are cubism.v1.min, d3.min, jquery.min, jquery.mobile.min, 
jquery-ui.min, protovis.min, and rickshaw.min.

In my own airgapped networks, I pull copies of those modules using the default 
URLs in Ganglia, bring them over to the no-Internet network, and put them in 
the /usr/share/ganglia/js/airgap directory, and then change the conf.php file 
to refer to them there instead:

$conf['jquery_js_path'] = "js/airgap/jquery.min.js";
$conf['jquerymobile_js_path'] = "js/airgap/jquery.mobile.min.js";
$conf['jqueryui_js_path'] = "js/airgap/jquery-ui.min.js";
$conf['rickshaw_js_path'] = "js/airgap/rickshaw.min.js";
$conf['cubism_js_path'] = "js/airgap/cubism.v1.min.js";
$conf['d3_js_path'] = "js/airgap/d3.min.js";
$conf['protovis_js_path'] = "js/airgap/protovis.min.js";

Hope this helps!

                -Michael Pelletier.

From: Auld, Russell
Sent: Thursday, October 13, 2016 10:52 AM
To: 
Ganglia-general@lists.sourceforge.net<mailto:Ganglia-general@lists.sourceforge.net>
Subject: [Ganglia-general] Creating views in Gweb-3.7.2

Greetings,
I am running Gweb v3.7.2 and when I click on the "Views" tab, there is no 
button present to create a view.
I can manually create a view by creating a json file in the conf directory of 
the "gweb_confdir".

Is it possible to get the create button to work with this version of gweb?

Thanks in advance!

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Ganglia-general mailing list
Ganglia-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-general

Reply via email to