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

Can you change disk alerts to space alone not as %

Votes:

0

I would like to be able to modify our disk alerts to show amount of space left rather than percentage. Is there a way to do that?

diskspace percentage sensors

Created on Jun 11, 2015 10:49:25 PM



5 Replies

Votes:

1

Using a batch file as an EXE/Script sensor you can report on the number of bytes free:

@echo off
c:
set freespace=0
for /F "tokens=3" %%a in ('dir /-c') do (
  set freespace=%%a
)
echo %freespace%:Drive C has %freespace% bytes free

Using limites the sensor can be set to an error when the number of bytes free is below the treshold.

Created on Jun 12, 2015 8:29:53 AM



Votes:

0

Is there a way to run this as a script in linux not as a batch file?

Created on Jun 12, 2015 3:05:06 PM

Last change on Jun 16, 2015 7:13:22 AM by  Torsten Lindner [Paessler Support]



Votes:

0

You can write an SSH script, or use the SSH Disk Free Sensor to query a Linux system.

Created on Jun 16, 2015 12:03:45 PM by  Arne Seifert [Paessler Support]



Votes:

0

By using the SSH Disk Free Sensor, the end result still shows the percentage of disk space that is used before alerting. We really don't need the percentage, we just need to amount of drive space that is being used (as opposed to what percentage of usage.) Is there a way to use just the drive space and have that display for the alert without the percentage being referenced at all.

Created on Jun 16, 2015 1:52:35 PM



Votes:

0

Dear dougancil

You can set limits on the channels which show the free space and use this for a trigger notification. You can also setup a threshold notification.

It is possible to hide unwanted channels from a sensor ("Hide from Tables" / "Hide from Graphs" in the channel settings.) When you do, please set one of the remaining channels as primary channel.

Created on Jun 16, 2015 2:12:40 PM by  Arne Seifert [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.