Another alarm comes inn; Disk XX is below 20% capacity.
Great. But how big is this disk? How fast is it filling up? We have no clue
So I made a different item + triggers to provide some more details.
I'm not going to claim it's perfect, so if anyone have suggestions to improve, please be my guest.
Item created by LLD:
Name: Hours til disk $1 runs out
Type: calculated
key: hours.to.disk.full[{#FSNAME}]
Formula:
last("vfs.fs.size[{#FSNAME},free]")/(last("vfs.fs.size[{#FSNAME},free]",0,3600)-(last("vfs.fs.size[{#FSNAME},free]")+1))
Type of information: Numeric (float)
Units: hours
The rest (interval etc) is whatever you please.
Then, Trigger created by LLD:
Name: At this rate, {#FSNAME} will run out of space within {ITEM.LASTVALUE1} ({ITEM.VALUE3} left)
Expression:
({Template OS Linux:hours.to.disk.full[{#FSNAME}].last(0)}<24 & {Template OS Linux:hours.to.disk.full[{#FSNAME}].last(0)}>0) | {Template OS Linux:vfs.fs.size[{#FSNAME},free].last(0)}=0
Note that I have this item + trigger in the filesystem discovery rule under "Template OS linux" Adjust accordingly if this does not fit you.
This item + trigger will do the following
Compare each last disk free (in Bytes) with the value one hour ago.
It divides the remaining diskspace by the change in usage during this last hour. This gives an approximate number of hours you have left until the disk is full.
The trigger is set to fire if the number is less than 24 hours, but higher than 0. (this is to avoid false alarms if you get a negative number. this happens when you free up space to a point higher than one hour ago )
Note the part "free]")+1))" in the item formula. This is only to avoid division by zero, which would make the item unsupported for a while. One extra byte to the equation doesn't really matter in 2013 if you ask me.
When an alarm is fired, you get something like this:
Cobra
At this rate, / will run out of space within 10.85 hours (32.79 GB left)
The lower the diskspace is, the naggier this will become. But as long as the usage is stable (no matter how low), it will be silent.
Great. But how big is this disk? How fast is it filling up? We have no clue

So I made a different item + triggers to provide some more details.
I'm not going to claim it's perfect, so if anyone have suggestions to improve, please be my guest.
Item created by LLD:
Name: Hours til disk $1 runs out
Type: calculated
key: hours.to.disk.full[{#FSNAME}]
Formula:
last("vfs.fs.size[{#FSNAME},free]")/(last("vfs.fs.size[{#FSNAME},free]",0,3600)-(last("vfs.fs.size[{#FSNAME},free]")+1))
Type of information: Numeric (float)
Units: hours
The rest (interval etc) is whatever you please.
Then, Trigger created by LLD:
Name: At this rate, {#FSNAME} will run out of space within {ITEM.LASTVALUE1} ({ITEM.VALUE3} left)
Expression:
({Template OS Linux:hours.to.disk.full[{#FSNAME}].last(0)}<24 & {Template OS Linux:hours.to.disk.full[{#FSNAME}].last(0)}>0) | {Template OS Linux:vfs.fs.size[{#FSNAME},free].last(0)}=0
Note that I have this item + trigger in the filesystem discovery rule under "Template OS linux" Adjust accordingly if this does not fit you.
This item + trigger will do the following
Compare each last disk free (in Bytes) with the value one hour ago.
It divides the remaining diskspace by the change in usage during this last hour. This gives an approximate number of hours you have left until the disk is full.
The trigger is set to fire if the number is less than 24 hours, but higher than 0. (this is to avoid false alarms if you get a negative number. this happens when you free up space to a point higher than one hour ago )
Note the part "free]")+1))" in the item formula. This is only to avoid division by zero, which would make the item unsupported for a while. One extra byte to the equation doesn't really matter in 2013 if you ask me.

When an alarm is fired, you get something like this:
Cobra
At this rate, / will run out of space within 10.85 hours (32.79 GB left)
The lower the diskspace is, the naggier this will become. But as long as the usage is stable (no matter how low), it will be silent.
Comment