Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_archive

Rating
0 votes
Favoured:
0
Current Version
1.0
Last Release Date
2014-06-11
Compatible With
  • Nagios 3.x
  • Nagios 4.x
Owner
License
GPL
Hits
20378
Files:
FileDescription
check_archiveVersion 1.0 (Perl script)
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
Calls 7zip on an archive file to list the contents and checks the output for errors.
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.