ClamAV 0.90, from what I can tell, stores its daily updates in one of two ways: as a single file, /var/lib/clamav/daily.cvd, or as several files under /var/lib/clamav/daily.inc.
How can I instruct Monit to check for both of those files and only complain if both are missing? At first I thought that it might work to do something similar to the following: check file clamav_daily_cvd with path /var/lib/clamav/daily.cvd if failed then exec "/bin/bash -c '/usr/bin/monit unmonitor clamav_daily_cvd; /usr/bin/monit monitor clamav_daily_inc'" check file clamav_daily_inc with path /var/lib/clamav/daily.inc/daily.info if failed then exec "/bin/bash -c '/usr/bin/monit unmonitor clamav_daily_inc; /usr/bin/monit monitor clamav_daily_cvd'" However, I can't find any way to define a custom exec action if the file doesn't exist at all, as opposed to existing but failing UID/GID/checksum/etc. checks. Any suggestions? Josh Kelley -- To unsubscribe: http://lists.nongnu.org/mailman/listinfo/monit-general
