Page 1 of 1

Nagios Core: Disabling External Javascripts?

Posted: Tue May 29, 2018 4:10 pm
by yomiko
Nagios Core 4.3.4 is installed on my host.

I noticed external javascripts are being run by Nagios. All these scripts appear to
be YouTube and Google analytics related items. Is there a way to disable these scripts?
If it is not possible, if I save these js scripts locally, what is the best way to configure
the system to use the local scripts instead?

E.g.

In Safari, load web inspector, Show Page Source. I the Resources tab, it listed out the js scripts.

main.php

base.js
https://www.youtube.com/yts/jsbin/playe ... US/base.js

remote.js
https://www.youtube.com/yts/jsbin/playe ... /remote.js

www-embed-player.js
https://www.youtube.com/yts/jsbin/www-e ... -player.js

ad_status.js
https://static.doubleclick.net/instream/ad_status.js

MEvUX7_3jG2ZA1Y0TqXguyXebcr29rWfKTXiIp5KkyU.js
https://www.google.com/js/bg/MgaOaFuzNR ... mzrnOHc.js

Re: Nagios Core: Disabling External Javascripts?

Posted: Tue May 29, 2018 4:37 pm
by scottwilkerson
you can disable most of these by setting the following in the nagios.cfg

Code: Select all

enable_page_tour=0
This will turn off the inline help tour.

For the others you would have to modify
/usr/local/nagios/share/main.php
/usr/local/nagios/share/map.php

Re: Nagios Core: Disabling External Javascripts?

Posted: Wed May 30, 2018 11:35 am
by yomiko
Disabling page tour isn't an option in 4.3.4, but modifying main.php and map.php helped.

Thanks for the tips!
=

Re: Nagios Core: Disabling External Javascripts?

Posted: Wed May 30, 2018 11:44 am
by scottwilkerson
yomiko wrote:Disabling page tour isn't an option in 4.3.4, but modifying main.php and map.php helped.

Thanks for the tips!
=
Sorry you are correct, enable_page_tour is added for the next release.