Ad Widget

Collapse

MD5 / integrity check on files in specified folder

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PieterB
    Junior Member
    Zabbix Certified Specialist
    • Jul 2010
    • 25

    #1

    MD5 / integrity check on files in specified folder

    It is easy to add some files for integrity checks,
    but is it also possible to add multiple files in a specified folder,
    (maybe also with subfolders with files...)

    If this is not possible, how would I do this with a UserParameter or...?
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    with a userparam for a single directory - probably something as simple as
    Code:
    md5sum $1/*
    call the item with key directory as a parameter.

    for recursive, something like this might work :

    Code:
    find $1 -type d -exec md5sum {}/* \;
    if you only ant to find out whether the directory tree has changed :

    Code:
    ls -R | md5sum
    note that items should probably be set to be text, except the last one which could be character
    Zabbix 3.0 Network Monitoring book

    Comment

    Working...