Ad Widget

Collapse

Customize Trigger disk space in Template OS Windows by Zabbix agent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vitorsjc
    Junior Member
    • Sep 2020
    • 2

    #1

    Customize Trigger disk space in Template OS Windows by Zabbix agent

    Hello guys, I received alert from a Host of Disk Space > 20% , I need lower the percent to 5% , looking in the template OS Windows by Zabbix agent in the Trigger for Disk Space I see this expression:

    {STA12:vfs.fs.size[D:,pused].last()}>{$VFS.FS.PUSED.MAX.CRIT:"D:"} and
    (({STA12:vfs.fs.size[D:,total].last()}-{STA12:vfs.fs.size[D:,used].last()})<5G or {STA12:vfs.fs.size[D:,pused].timeleft(1h,,100)}<1d)

    I thing the problem is the value in {$VFS.FS.PUSED.MAX.CRIT:"D:"} but I don't the minimal ideia where I set the value of this item .

    Somebody can help me ?
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    That is a special type of a "User Macro": it's a "user macro with context".

    User macros can be set globally, at the template level, and at the host level. If the same macro is set at multiple levels in that hierarchy, the most specific one is the one that "wins".

    See the section of the documentation for user macros, especially the part of the page that says "CONFIGURATION": https://www.zabbix.com/documentation...os/user_macros

    The stuff you need to set the macro is covered in that link, but if you want to learn more about user macros with context, they're covered in the next section of the documentation: https://www.zabbix.com/documentation...macros_context

    Comment

    • vitorsjc
      Junior Member
      • Sep 2020
      • 2

      #3
      Tks Tim, under the Host , I click on Template after Macro and I see "{$VFS.FS.PUSED.MAX.WARN}" and value to set .

      Comment

      Working...