I need to display one or more messages to all users of the WebUI of PRTG. How can I do this?
Article Comments
Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.
This article applies to PRTG Network Monitor 13.2.3 through 17.3.33
Displaying Custom Messages to PRTG Users
You can display alert boxes like the ones by PRTG itself (shown in the lower right corner of the browser) by using the following custom javascript code.
Edit the file scripts_custom.js in the folder:
\PRTG Network Monitor\webroot\javascript
Add the following code to this file and customize the texts as desired, you also show only one or even more boxes:
$(document).ready(function()
{
_Prtg.Growls.add({
id: 'custommessage1', //id must be unique
type: "error",
time: _Prtg.Options.refreshInterval * 3,
title: 'A Message from your PRTG Admin',
message: 'This is an error message. You can go to your homepage by clicking <a href="/home">home</a>'
});
_Prtg.Growls.add({
id: 'custommessage2',//id must be unique
type: "info",
time: _Prtg.Options.refreshInterval * 3,
title: 'A Message from your PRTG Admin',
message: 'This is an info message. You can go to your homepage by clicking <a href="/home">home</a>'
});
}
);
The result of this code are two boxes on the bottom right with the defined custom messages:

May, 2013 - Permalink
This article applies to PRTG Network Monitor 13.2.3 through 17.3.33
Displaying Custom Messages to PRTG Users
You can display alert boxes like the ones by PRTG itself (shown in the lower right corner of the browser) by using the following custom javascript code.
Edit the file scripts_custom.js in the folder:
\PRTG Network Monitor\webroot\javascriptAdd the following code to this file and customize the texts as desired, you also show only one or even more boxes:
$(document).ready(function() { _Prtg.Growls.add({ id: 'custommessage1', //id must be unique type: "error", time: _Prtg.Options.refreshInterval * 3, title: 'A Message from your PRTG Admin', message: 'This is an error message. You can go to your homepage by clicking <a href="/home">home</a>' }); _Prtg.Growls.add({ id: 'custommessage2',//id must be unique type: "info", time: _Prtg.Options.refreshInterval * 3, title: 'A Message from your PRTG Admin', message: 'This is an info message. You can go to your homepage by clicking <a href="/home">home</a>' }); } );The result of this code are two boxes on the bottom right with the defined custom messages:
May, 2013 - Permalink