This article applies to PRTG Network Monitor 13.2.3 through 17.3.33
Hiding Specific Sensor States from Read-Only Users
The web interface of PRTG Network Monitor is highly customizable. You can add your own CSS code and images, change the colors of your PRTG, and many more. You are even able to re-brand the interface to truly make it your own.
These adaptions are easy to implement and easy to use. Hiding sensors from users regarding to a status is one aspect of PRTG that can be achieved with little interface adjustments. Please see below how to achieve this.
Warning: The adaptations in this article work for the declared PRTG version. However, we cannot guarantee that future versions will support them. So, for future PRTG versions additional adjustments may be required, but of course we try to avoid such situations.
Steps to Go
Adding the following code to the named files will enable you to hide sensors in paused status from read-only user:
- Navigate to the folder of the PRTG program directory containing PRTG’s Cascading Style Sheet (CSS) files: \PRTG Network Monitor\webroot\css
- Open the file styles_custom.css with a text editor. Note: It will be empty if you have not added anything yet.
- Copy the following code and paste it into the editor:
body.readonly sensor.ispaused,
body.readonly sensor.status7,
body.readonly tr.sb,
body.readonly div.statusinfo.pausedsens
{display:none!important}
- Save the file with the code.
- Navigate to the following folder of the PRTG program directory: \PRTG Network Monitor\webroot\includes
- Open the file htmlfooter_custom.htm with a text editor. Note: It will be empty if you have not added anything yet.
- Copy the following code and paste it into the editor:
<script>
if(<#system type="usertype" contentreadonly="true" contentnotreadonly="false">){
$("body").addClass("readonly");
}
</script>
- Save the file with the code.
After this customization of PRTG’s web interface, users with read-only rights will not see sensors in paused state anymore.
Add comment