Hi! I've searched but I can't find how to make a trigger about used disk on space. I need to be alerted when used space is e.g. over 250 Gb. Could You help me? I thank You very much :-) Sara
Ad Widget
Collapse
trigger used disk space
Collapse
X
-
We typically use the vfs.fs.size[] item to collect disk usage for each volume/mountpoint that we care about. We usually use 'pused' as the second argument to vfs.fs.size[], so that we're collecting the % used on the volume. Because of that, our triggers are configured based on what percent full the volume is, like this:
Note that we use templates extensively, and our templates use macros for the default values for {$PUSED_WARN_C} (we default to 90.0 for that, so 90%) and {$PUSED_ERROR_C} (we default to 97%) for that.Code:Name: {HOST.NAME} low free space in C: Operational Data: Severity: Warning Expression: {somehost.example.edu:vfs.fs.size[c:,pused].min(#2)}>{$PUSED_WARN_C} and {somehost.example.edu:vfs.fs.size[c:,pused].last(0)}<{$PUSED_ERROR_C}
Again, we're using items and triggers based on % used, not an absolute size, but you can adjust the vfs.fs.size[] items and triggers to do what you need, I think.
-
Lookup for the "Disk discovery" on the Zabbix out-of-box Template that you're have on your installation, (Windows and/or Linux) there's some good examples in the trigger prototypes, about what you're asking!Comment
-
Thanks Tim and Isaque!!! This trigger makes what I needed: {mrjohndoe:vfs.fs.size[C:,used].last(0)}>xxG where xx is the number of Gb I chose :-) Have a nice day! SaraComment
Comment