-
New Feature Request
-
Resolution: Won't fix
-
Major
-
None
-
2.0.9
Would be nice to have the possibility to affect LLD based triggers individually.
For instance a trigger prototype like this:
{Template OS Linux:vfs.fs.size[{#FSNAME},free].last(0)}<{$FS_SIZE_FREE}
allows later adjustment of threshold on template level and/or host level by usage of user macros. But an adjustment of {$FS_SIZE_FREE} affects all LLD based triggers.
What about having macro prototyes like this:
Macro prototype: {$FS_{#FSNAME}_SIZE_FREE} => 20 Trigger prototype: {Template OS Linux:vfs.fs.size[{#FSNAME},free].last(0)}<{$FS_{#FSNAME}_SIZE_FREE}
or easier to code like this:
Macro prototype: {%FS_SIZE_FREE} => {$FS_{#FSNAME}_SIZE_FREE] => 20 Trigger prototype: {Template OS Linux:vfs.fs.size[{#FSNAME},free].last(0)}<{%FS_SIZE_FREE}