Ad Widget

Collapse

Zabbix - Windows Folder monitoring

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Pascalkr
    Junior Member
    • Jun 2015
    • 3

    #1

    Zabbix - Windows Folder monitoring

    Dear all,

    I have been struggling to create a item / trigger to monitor a Windows folder.

    We have a folder that should not have files longer then 10 minutes.
    This folder is filled by a process and another process pick up the files and delete them.
    If the files are longer then 10 minutes in this folder, then our process is stuck and we should receive an warning.

    Alternative1: Monitor folder if it contains more then 20 files.
    Alternative2: Monitor folder if the total size is more then 20kb

    Please keep in mind I am not a Zabbix expert.
    If there is a solution, please write it in baby steps, including how to create the trigger.

    Friendly regards,

    Pascal Kroeze
  • Anderson
    Junior Member
    • Aug 2014
    • 6

    #2
    i had a situation like this and i find a solution here in the forum, so you need to do something like:

    in the file zabbix_agentd.conf in zabbix agent folder add this line in 'unsafe parameters'



    UnsafeUserParameters=1
    UserParameter = checksomething,DIR /A-D /B C:\Folder\Subfolder | FIND /C /V ".extension"

    where C:\Folder\Subfolder is the path
    ".extension" is the file extension that you want to check. could be something like ".xml", ".doc", ".txt","*.*" etc

    back in zabbix, you need to create a item like this:

    Name Check file
    Type Zabbix agent
    Key checksomething
    Host interface (ip from host)
    Type of information numeric (float)
    Update interval (in sec) 60

    when the agent start to check the folder (you can confirm this in "latest data" page)

    create a trigger like:

    {HOST:checksomething.last(0)}>20

    should work..

    srry for my bad english

    Comment

    Working...