Ad Widget

Collapse

Modifying Default Templates

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shadowfayre
    Junior Member
    • Mar 2007
    • 8

    #1

    Modifying Default Templates

    I want to modify one or more of the default templates. The one in particular is the low space warning. If I understand the "vfs.fs.size[c:,free].last(0)}<10000" it will only trigger if it is less than 10000 bytes (or 10MB). That is way too low in a windows server environment and for that matter even linux (like a file server). I would prefer to modify this one instead of creating a new one for each server. Please advise,

    Thanks
    Jeff
  • swaterhouse
    Senior Member
    • Apr 2006
    • 268

    #2
    Just modify the template and all hosts tied to that template will get the same configuration. In Configuration>Triggers use the Group dropdown and select "Triggers" from there you can use teh other drop down to select the windows_t and/or unix_t (or any other templates you may have.

    In my opinion this should be changed to a percentage, not a hard value. If I have a 200GB disk I want to know when its 80% full so I can either start clearing it out or think about expanding disk capacity, so in that case I want the trigger to fire at 40GB free space - but my OS drives are only 16-20 GB so they would always be below 40GB if I set that in the template. Thats why I changed mine to percentage. (I have a worning at 80% and High Severity at 90%)

    Code:
    {Windows_t:vfs.fs.size[c:,free].last(0)}/{Windows_t:vfs.fs.size[c:,total].last(0)}<0.1
    HTH,
    Scott

    Comment

    • shadowfayre
      Junior Member
      • Mar 2007
      • 8

      #3
      Thanks,

      The example you provided; is that for the 10% warning?

      Jeff

      Comment

      • swaterhouse
        Senior Member
        • Apr 2006
        • 268

        #4
        Yes.

        You could rewrite it like this

        Code:
        ({Windows_t:vfs.fs.size[c:,free].last(0)} / {Windows_t:vfs.fs.size[c:,total].last(0)}) * 100 < 10
        But that involves another calculation (multiplying by 100) for no reason. I prefer to keep things simple for the code so I use decimal equivalents for percentages (i.e 10%=0.1, 25%=0.25 etc).

        Comment

        Working...