Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
Nagios plugin for monitoring ClamAV virus scans, written in bash.
Current Version
0.1.0
Last Release Date
2017-06-29
Owner
tommarshall
Download URL
https://github.com/tommarshall/nagios-check-clamav-scan
License
MIT
Compatible With
Nagios plugin for monitoring ClamAV virus scans.
Usage:
./check_clamav_scan -l <path> [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> path to clamscan logfile -e, --expiry <duration> expiry threshold for logfile -w, --warning <number> number of infected files treat as WARNING -c, --critical <number> 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
You must be logged in to submit a review.
To:
From:
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!