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
Nagios Core: Disabling External Javascripts?
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios Core: Disabling External Javascripts?
you can disable most of these by setting the following in the nagios.cfg
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
Code: Select all
enable_page_tour=0
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?
Disabling page tour isn't an option in 4.3.4, but modifying main.php and map.php helped.
Thanks for the tips!
=
Thanks for the tips!
=
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios Core: Disabling External Javascripts?
Sorry you are correct, enable_page_tour is added for the next release.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!
=