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?


Article Comments

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.


Jun, 2015 - Permalink

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


Jun, 2015 - Permalink

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


Jun, 2015 - Permalink

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.


Jun, 2015 - Permalink

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.


Jun, 2015 - Permalink