Ad Widget

Collapse

Partition discovery: trigger level based on LLD Macro does not work

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • manus
    Junior Member
    • Feb 2016
    • 1

    #1

    Partition discovery: trigger level based on LLD Macro does not work

    Hello all,

    I'm using version 3.0. I would like to modify the Linux OS template so that the partition discovery rule use different trigger level for /tmp /opt and /home. I'm using the doc:

    Point 3.8/
    3.8 Using LLD macros in user macro contexts

    We will use data from the last example to illustrate LLD macro usage in user macro contexts. Based on the example the following file systems will be discovered: /, /home, /tmp, /usr and /var.

    Set the free disk space trigger prototype for a host to:

    {host:vfs.fs.size[{#FSNAME},pfree].last()}<{$LOW_SPACE_LIMIT:{#FSNAME}}

    And add macros:

    {$LOW_SPACE_LIMIT} 10
    {$LOW_SPACE_LIMIT:/home} 20
    {$LOW_SPACE_LIMIT:/tmp} 50

    Then events will be generated when /, /usr and /var filesystems have less than 10% of free disk space, /tmp filesystem has less than 50% of free disk space or /home filesystem has less than 20% of free disk space.

    Sadly when I try to configure {$LOW_SPACE_LIMIT:{#FSNAME}}, I got:

    Incorrect trigger expression. Check expression part starting from "}}".

    Did I miss something or is this a bug?

    Thanks in advance for your answers.
    Last edited by manus; 19-02-2016, 16:56.
  • pctrindade
    Junior Member
    • Apr 2016
    • 8

    #2
    Incorrect Documentation

    It seems to be a a documentation error at that page,

    You must include {#FSNAME} in quotation marks "{#FSNAME}".

    It's correct here:

    Comment

    Working...