Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_clamav_scan
0.1.0
2017-06-29
- Nagios 1.x
- Nagios 2.x
- Nagios 3.x
MIT
6937
File | Description |
---|---|
check_clamav_scan.sh | check_clamav_scan.sh |
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!
Nagios plugin for monitoring ClamAV virus scans.
Usage:
./check_clamav_scan -l [options]
Examples:
# exit OK if 0 infected files detected, CRITICAL if 1 or more detected
./check_clamav_scan -l /tmp/clamav.log
# exit UNKNOWN if logfile is more than 1 hour old
./check_clamav_scan -l /tmp/clamav.log -e '1 hour'
# exit OK if 0 infected files detected, WARNING if upto 10 detected, CRITICAL if 10 or more detected
./check_clamav_scan -l /tmp/clamav.log -c 10
# exit OK if upto 4 infected files detected, WARNING if upto 5 detected, CRITICAL if 10 or more detected
./check_clamav_scan -l /tmp/clamav.log -c 10 -w 5
Options:
-l, --logfile path to clamscan logfile
-e, --expiry expiry threshold for logfile
-w, --warning number of infected files treat as WARNING
-c, --critical number of infected files to treat as CRITICAL
-v, --verbose include the scan summary in the output
-V, --version output version
-h, --help output help information
* -e/--expiry should be a human readable duration, e.g. '1 hour', or '7 days'.
* -c/--critical takes priority over -w/--warning.
Dependencies:
* Bash
* cut, grep, rev, sed
Usage:
./check_clamav_scan -l
Examples:
# exit OK if 0 infected files detected, CRITICAL if 1 or more detected
./check_clamav_scan -l /tmp/clamav.log
# exit UNKNOWN if logfile is more than 1 hour old
./check_clamav_scan -l /tmp/clamav.log -e '1 hour'
# exit OK if 0 infected files detected, WARNING if upto 10 detected, CRITICAL if 10 or more detected
./check_clamav_scan -l /tmp/clamav.log -c 10
# exit OK if upto 4 infected files detected, WARNING if upto 5 detected, CRITICAL if 10 or more detected
./check_clamav_scan -l /tmp/clamav.log -c 10 -w 5
Options:
-l, --logfile
-e, --expiry
-w, --warning
-c, --critical
-v, --verbose include the scan summary in the output
-V, --version output version
-h, --help output help information
* -e/--expiry should be a human readable duration, e.g. '1 hour', or '7 days'.
* -c/--critical takes priority over -w/--warning.
Dependencies:
* Bash
* cut, grep, rev, sed
Reviews (0)
Be the first to review this listing!