January 2019
Intermediate to advanced
798 pages
20h 33m
English
There are monitored metrics that have rather different threshold needs, depending on the possible range of the value, even when measuring in percentages instead of absolute values. For example, using bytes for a disk space trigger will not work that well when disks can range from a few dozen megabytes to hundreds of terabytes or even petabytes. Applying our knowledge of trigger expressions, we could vary our threshold depending on the total disk size. For this, we will have to monitor both free and total disk space:
(
{host:vfs.fs.size[/,total].last()}<=100GB
and
{host:vfs.fs.size[/,pfree].last()}<10
) or (
{host:vfs.fs.size[/,total].last()}>100GB
and
{host:vfs.fs.size[/,pfree].last()}<5
)
A trigger that ...
Read now
Unlock full access