Macro prototypes for low level discovery

XMLWordPrintable

    • Type: New Feature Request
    • Resolution: Won't fix
    • Priority: Major
    • None
    • Affects Version/s: 2.0.9
    • Component/s: Frontend (F), Server (S)

      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}
      

            Assignee:
            Unassigned
            Reporter:
            Marc
            Votes:
            6 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: