The PRTG API can help you with this (requires PRTG 8).
Find the file "customerscripts.js" in the folder
PRTG Network Monitor\website\javascript
and open it with a text editor.
Paste the following code into the file:
$(document).ready(function()
{
if ($("#maprefreshlink").length>0) // check: is this a mapshow page
{
$("a").attr("href", "#"); // disable all links on page, they still look like links
// OR
// $("a").each(function(){$(this).replaceWith($(this).text())}); //replaces all links with just their text
}
});
The code is run everytime a PRTG page is loaded. It checks if the page is displaying a map and then iterates through all <a> tags and overwrites their HREF properties with a "#" to invalidate the links.
Note: If you use a PRTG version previous to V8.1.0.1678 you must either update or apply the following patch to the file "prtg.js":
Remove this line (2nd last line of the file)
<#comment Include customer's own Javascript>
Note: If you use a PRTG version newer than V8.4.x please apply the following patch to the file "prtg.js":
$(function() {
$("#showamap").delegate("a", "click", function(e) {
e.preventDefault();
});
});
Add comment