Hi,
I subscribed to the list just to ask this question, I hope that's okay
(neither Google nor the archives could help).
I'm running clamav-milter and want to monitor it with monit. Here
is what I'm
using;
-- BEGIN CONFIG --
check process clamav-milter with pidfile /var/run/clamav/clamav-
milter.pid
start program = "/etc/init.d/clamav-milter start"
stop program = "/etc/init.d/clamav-milter stop"
if failed unix /var/run/clamav/clamav-milter.ctl then restart
group virus
depends clamav-milter_init
depends clamav-milter_bin
check file clamav-milter_init with path /etc/init.d/clamav-milter
group virus
check file clamav-milter_bin with path /usr/sbin/clamav-milter
group virus
-- END CONFIG --
monit tells me that clamav-milter is not running and tries to
restart it;
[GMT Nov 18 14:29:19] 'clamav-milter' process is not running
[GMT Nov 18 14:29:19] 'clamav-milter' trying to restart
[GMT Nov 18 14:29:19] 'clamav-milter' start: /etc/init.d/clamav-milter
It's unsuccessful in doing so (because it's already running). It
seems that
monit can't see clamav-milter running for some reason.
Obviously I've checked to make sure "/var/run/clamav/clamav-
milter.pid" is
really the correct PID, etc. Any help solving this would be greatly
appreciated.
All other monitoring (eg. bind9, apache, sendmail, et. al.) is
working fine
(except openntpd which apparently can't be monitored because it
doesn't have
a PID file?).
--
afraz "like a simile" ahmadzadeh