Ad Widget

Collapse

integrity check of a folder instead of file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • miguel_gonz
    Junior Member
    • Jun 2011
    • 6

    #1

    integrity check of a folder instead of file

    Dear all,

    I've seen there is a plugin that checks integrity for a file. I'm wondering if that exists for folders? Is that possible? Any recommendation of how to implement that?

    Regards,

    Miguel
  • vrolok
    Junior Member
    • Jan 2011
    • 22

    #2
    Do you need it for windows or linux? You might try md5deep or
    Code:
    find . -name "*" -exec md5sum {} \;
    in linux with UserParameter options, pipe output to a file and do a diff checks to that file inside zabbix.

    Comment

    • miguel_gonz
      Junior Member
      • Jun 2011
      • 6

      #3
      Many thanks. I'd need it for Windows too. I know about md5deep.

      Is there any documentation about how to create a check like this or info about the other check of file integrity? I'm new to Zabbix and I'm kinda lost

      Comment

      • vrolok
        Junior Member
        • Jan 2011
        • 22

        #4
        http://www.zabbix.com/documentation/...ser_parameters

        Comment

        • miguel_gonz
          Junior Member
          • Jun 2011
          • 6

          #5
          Many thanks! Any info about a Windows and Solaris alternative?

          Comment

          • miguel_gonz
            Junior Member
            • Jun 2011
            • 6

            #6
            still can't figure it out

            I have created the User Parameter at /etc/zabbix/zabbix_agentd.conf

            UserParameter=vfs.file.md5deep[*],find . -name "$1" -exec md5sum {} \

            and it shows up in the Items for the particular machine I have created it for:

            Host: csgl09
            Description: checksum of $1 folder
            Type: Zabbix agent (active)
            key: vfs.file.md5deep[/etc]
            Type of information: Text
            Update intervalin sec: 30
            Keep history in days: 90
            Status: active
            Applications: Integrity
            Group: discovered hosts

            When I go to Monitoring -> Latest data

            No entry for md5deep shows up

            What am I doing wrong?

            Comment

            • miguel_gonz
              Junior Member
              • Jun 2011
              • 6

              #7
              i figured it out

              I managed to run an example I found a book. I realized I have to modify the zabbix_agentd.conf in actually the host where I want to run the UserParameter!

              Anyway now I have created this UserParameter:

              UserParameter=vfs.file.md5deep[*],find $1 -name "*" -exec md5sum {} \; &>$1.md5


              Piping out the content to a md5 file that I can later check. However, when I run manually the script I get:

              zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf -t vfs.file.md5deep vfs.file.md5deep[/etc]

              vfs.file.md5deep[] [m|ZBX_NOTSUPPORTED]

              What am I doing wrong?

              thanks!

              Comment

              Working...