What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

How can I display a message to all PRTG users using the Web GUI?

Votes:

0

I need to display one or more messages to all users of the WebUI of PRTG. How can I do this?

ajax customize javascript

Created on May 2, 2013 8:41:00 AM by  Dirk Paessler [Founder Paessler AG] (11,025) 3 6



1 Reply

Accepted Answer

Votes:

0

This article applies to PRTG Network Monitor 13.2.3 through 17.3.33

Displaying Custom Messages to PRTG Users

Important note: The current customization approach is unsupported and deprecated as of versions 17.3.34/17.4.35. This customization no longer works. For more details, see How can I re-brand and customize the PRTG web interface using CSS and Javascript?

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:

Custom Message

Created on May 2, 2013 8:45:24 AM by  Dirk Paessler [Founder Paessler AG] (11,025) 3 6

Last change on Mar 22, 2018 12:20:26 PM by  Brandy Greger [Paessler Support]




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.