監控環境:
設定 Template OS Linux 模板,符合上面需求
表頭顯示:Free disk space is less than {$LOW_SPACE_LIMIT:"{#FSNAME}"}% on volume {#FSNAME}
公式:{Template OS Linux:vfs.fs.size[{#FSNAME},pfree].last()}<{$LOW_SPACE_LIMIT:"{#FSNAME}"}
巨集定義:
{$LOW_SPACE_LIMIT} 10
{$LOW_SPACE_LIMIT:/} 70
{$LOW_SPACE_LIMIT:/boot} 90
一.進入 Template OS Linux 模板 設定畫面,按圖順序執行
二.先預設 Macro 值,進入 Macros
三.填入需用到的 Marco 值
四.新增 Template OS Linux 模板的 Trigger,因此功能屬於自動發現,所以要去自動發現的規則設定