Ad Widget

Collapse

Custom Drive Space Free Configuration

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kberrien
    Member
    • Mar 2007
    • 43

    #1

    Custom Drive Space Free Configuration

    I want to implement minimum drive space free testing via zabbix client. I'm not a fan of the built in template(s) in that they come with lot of extra options I don't use, and I'd rather test for a minimum value rather than duel percentage values (warning, and critical). And when I tested the template version they didn't work!

    I like the configuration in this tutorial I found - https://www.youtube.com/watch?v=PS8nE2Zkal8 - but it won't take/work in v5.

    Does anyone have a good suggested config for a working minimum drive space test?
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    Sure, create your own, probably based on vfs.fs.size[] with the 'pused' argument. If your hosts have a very standard set of volumes, you could make the check part of your default template you apply to your hosts. Otherwise, if there's a lot of variation, you probably need a separate template for each volume. You don't need to start from scratch, as you could copy the just the template item(s) and trigger(s) from the built in template for the functionality you want and then edit to taste. All of that assumes you're not using low level discovery to discover your volumes and automatically create items and triggers.

    Be sure you use macros in your templates for things like the warning or error % used, so that you can adjust your thresholds easily without needing to create different triggers or templates per host.

    Ex trigger:

    Code:
    {somehost.here:vfs.fs.size[/tmp,pused].min(#2)}>{$PUSED_WARN_TMP}

    Comment

    • kberrien
      Member
      • Mar 2007
      • 43

      #3
      >Sure, create your own
      >you could copy the just the template item(s) and trigger(s) from the built in template for the functionality you want and then edit to taste.

      My problem is I've done that... I've created my own, and I've tried to modify the existing and I can't get a working solution or I hit a an error wall - that was why I was looking for a tutorial if possible. Unfortunately my work load and work requirements don't leave much time to become a Zabbix power user.

      Comment

      Working...