Ad Widget

Collapse

Trigger to monitor log growth

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hippyrivet
    Junior Member
    • Aug 2014
    • 1

    #1

    Trigger to monitor log growth

    Hi,

    First I'm new to zabbix.

    I want to create a trigger that alerts if a log file grows more than 100Mb (or 100000000 bytes) in the previous 60 minutes.

    I am unable to create the trigger though: Configuration > Hosts > Select host > triggers > create new trigger

    Then entering the below:

    {host:vfs.file.size['/var/log/name.log'].last(0,3600)}-{host:vfs.file.size['/var/log/name.log '].prev(0)}>100000000

    Gives me:

    Incorrect item key "vfs.file.size['/var/log/dpx/dpx.log']" provided for trigger expression on "host".

    Any help appreciated, thanks.
    Hippy
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    I do something very similar, although I do it through LLD because the directory contains rotational logs with dynamic log names.

    Anyway, this is my trigger expression if a log grows over 60M in the last 1 hour

    Code:
    ({Server_Name:vfs.file.size[C:\PathToLog\LogFileName].last(0)} - {Server_Name:vfs.file.size[C\PathToLog\LogFileName].last(0,1h)})>60M

    Comment

    Working...