Backup and Recovery

check_archive

Description:

Calls 7zip on an archive file to list the contents and checks the output for errors.

Current Version

1.0

Last Release Date

2014-06-11

Compatible With

  • Nagios 3.x
  • Nagios 4.x

Owner

License

GPL


Project Files
Project Notes
This Perl script is intended to do a basic check of an archive file's integrity using 7zip's list command (l). This is not intended to be a thorough check (although it has the option), more of a quick test to make sure that nothing catastrophic happened to the file. This plugin currently only works on Linux machines and requires 7zip (assumed to be /usr/bin/7z) and Perl's File::Find::Rule module (available on CPAN). The script can check one or more files (multithread in later versions?) and there are two ways to do that. The first is to specify filenames using -f FILE [FILE] [FILE]... The second is to specify a directory and shell-style pattern with -d DIR -p PATTERN which performs a recursive search for and tests all files in DIR whose names match PATTERN. There is also a -t option to use 7zip's more comprehensive archive test. This is only reccommended on small files. This plugin was originally developed to check Windows Backup's .vhd images, and even listing their contents is expensive, let alone a full test. Usage info is provided by the --help option.
Reviews (0) Add a Review
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
0 (0)
Favorites
0
Views
20,390