Home Directory Plugins Anti-Virus ClamAV Clamscan Monitoring Plugin

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

Clamscan Monitoring Plugin

Current Version
1.0
Last Release Date
2012-10-05
Compatible With
  • Nagios 3.x
License
GPL
Hits
58311
Files:
FileDescription
check_clamscan_v1.0.tar.gzSnapshot of Version 1.0
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
This plugin checks the clamscan scan summary if any infected files were found.
The plugin checks various scenarios:
-the last scan was too long ago
-the current scan runs too long (e.g. clamscan hangs on an infected file)
-an infected file is listed in the scan summary
-the scan summary log could not be parsed correctly
-the scan summary log could not be opened by the plugin for parsing (e.g. plugin is not called with the correct log file path)
-If clamscan is currently running, the pid of the process is printed
-If the scan output could be parsed successfully, the engine version and the performance data of the scan are printed

Requirements
The plugin raises an error if it cannot find clamscan with 'which clamscan'.

Required perl modules
* use Getopt::Long qw(:config no_ignore_case);
* use Proc::ProcessTable;
* use File::stat;
* use Switch;
* use Date::Calc qw(Delta_Days);
* use Date::Calc qw(Delta_DHMS);
* use Date::Calc qw(Localtime);