Ad Widget

Collapse

Editing triggers conditions per host

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • z0nk
    Member
    • Oct 2024
    • 45

    #1

    Editing triggers conditions per host

    How can I edit trigger conditions per selected host(s)? Like

    Code:
    Discovered by Mounted filesystem discovery
    Name FS [/]: Space is low
    Code:
    FS [/]: Space is low (used > {$VFS.FS.PUSED.MAX.WARN:"/"}%, total {{?last(//vfs.fs.dependent.size[/,total])/1024/1024/1024}.fmtnum(1)}GB)
    I want set another $VFS.FS.PUSED.MAX.WARN
  • Answer selected by z0nk at 17-11-2024, 12:02.
    z0nk
    Member
    • Oct 2024
    • 45

    Comment

    • z0nk
      Member
      • Oct 2024
      • 45

      #2

      Comment

      • ISiroshtan
        Senior Member
        • Nov 2019
        • 324

        #3
        You don't need to edit trigger for that. You can see it is set as macros value (documentation) in trigger expression{$VFS.FS.PUSED.MAX.WARN:"/"}, or more specifically as macros with context (documentation)

        I have a feeling I was already linking this documents to you ... but maybe it was to someone else question

        TLDR:
        go to configuration -> hosts -> find your host -> click on name -> click on "macros" page -> check if the page has macros like "VFS.FS.PUSED.MAX.WARN" --if yes read below, if now read to the right -> click add button to add new macro -> read below

        If you want to set a new value to ALL filesystems on this server macro should be {$VFS.FS.PUSED.MAX.WARN}, in value field enter new value (95 for 95% threshold, etc) -> update host
        If you want to change value for specific filesystem on this server macro should be like {$VFS.FS.PUSED.MAX.WARN:"%FILESYSTEM_HERE"} (i.e. for /home it would be {$VFS.FS.PUSED.MAX.WARN:"/home"}) in value field enter new value (95 for 95% threshold, etc) -> update host

        Comment

        Working...