Hi All
I need some help with creating an better trigger for free disk space. If you take the current triggers it is either on a % free or on a GB free
I want to know will it be possible to create some thing similar to the following
If I have a 100GB disk and I want to trigger if I have less than 5GB then that is fine because that is either 5GB or 5%
BUT
If I have a 10TB disk for example I want to trigger for example on 10GB but not 5% as that will still be 500GB
So a trigger of {HOSTANAME:vfs.fs.size[#FSNAME],pfree.last(0)}<5
should have something like:
{HOSTANAME:vfs.fs.size[#FSNAME],pfree.last(0)}<5
if
{HOSTANAME:vfs.fs.size[#FSNAME],free.last(0)}<5120
or something like
if
{HOSTNAME:vfs.fs.size[{#FSNAME},total].last()}=???
and
{HOSTANAME:vfs.fs.size[#FSNAME],free.last(0)}<???
if
{HOSTANAME:vfs.fs.size[#FSNAME],pfree.last(0)}<5
then Problem
if not then OK
this is something We are looking at to better disk monitoring but I am at a lost trying to get it to work. If anyone has some advise or idea on how to get this working that will be much appreciated
I need some help with creating an better trigger for free disk space. If you take the current triggers it is either on a % free or on a GB free
I want to know will it be possible to create some thing similar to the following
If I have a 100GB disk and I want to trigger if I have less than 5GB then that is fine because that is either 5GB or 5%
BUT
If I have a 10TB disk for example I want to trigger for example on 10GB but not 5% as that will still be 500GB
So a trigger of {HOSTANAME:vfs.fs.size[#FSNAME],pfree.last(0)}<5
should have something like:
{HOSTANAME:vfs.fs.size[#FSNAME],pfree.last(0)}<5
if
{HOSTANAME:vfs.fs.size[#FSNAME],free.last(0)}<5120
or something like
if
{HOSTNAME:vfs.fs.size[{#FSNAME},total].last()}=???
and
{HOSTANAME:vfs.fs.size[#FSNAME],free.last(0)}<???
if
{HOSTANAME:vfs.fs.size[#FSNAME],pfree.last(0)}<5
then Problem
if not then OK
this is something We are looking at to better disk monitoring but I am at a lost trying to get it to work. If anyone has some advise or idea on how to get this working that will be much appreciated