Nagios Core: Disabling External Javascripts?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
yomiko
Posts: 22
Joined: Mon Aug 21, 2017 6:45 pm

Nagios Core: Disabling External Javascripts?

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios Core: Disabling External Javascripts?

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
yomiko
Posts: 22
Joined: Mon Aug 21, 2017 6:45 pm

Re: Nagios Core: Disabling External Javascripts?

Post 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!
=
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios Core: Disabling External Javascripts?

Post 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.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked