<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-15"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000099">
While we're on the topic...<br>
<br>
It seems that the clamd monitoring just checks to see if clamd is
answering the phone.  <br>
<br>
Is there a way to check that clamd is, well, happy as a clam?  This is
to say, up to date, hasn't found anything, etc.?<br>
<br>
Thanks,<br>
Jon<br>
<br>
Bill Arlofski wrote:
<blockquote cite="mid:48FFAA7F.7000900@revpol.com" type="cite">
  <pre wrap="">Hanrahan, Kevin wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi all,
  I am having trouble monitoring clamAV. As in the docs, I put "clamd" in the bb-hosts file for my monitored host but I get the following result:

Service clamd on server.domain.com is not OK : Service unavailable (No route to host)

The server is reachable so there really IS a route to the host.


any ideas?


kh
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Just a guess, but I bet that clamd on the server is either listening on
127.0.0.1:3310/TCP or only on a local socket, either of which would render it
it inaccessible from a remote monitoring server.

Usually this is the desired configuration since then only the mail server
itself can "use" the clamd service. From the /etc/clamd.conf file:

--[snip]--
# TCP port address.
# Default: no
TCPSocket 3310

# TCP address.
# By default we bind to INADDR_ANY, probably not wise.
# Enable the following to provide some degree of protection
# from the outside world.
# Default: no
#TCPAddr 127.0.0.1
--[snip]--

You'll have to find your clamd config file and tell it to bind to all IP
addresses by commenting out that TCPAddr line and then either secure it with
iptables on the local host or recompile it with tcpwrappers support.


Oh and check this option too --> "LocalSocket". It may be enabled on your
installation:

--[snip]--
# The daemon works in a local OR a network mode. Due to security reasons we
# recommend the local mode.

# Path to a local socket file the daemon will listen on.
# Default: disabled (must be specified by a user)
# LocalSocket /var/run/clamav/clamav.sock
--[snip]--


--
Bill Arlofski
Reverse Polarity, LLC
<a class="moz-txt-link-freetext" href="http://www.revpol.com/">http://www.revpol.com/</a>
* Stop the NSA from illegally eavesdropping on your personal email *
Learn about PGP and start encrypting your email today
<a class="moz-txt-link-freetext" href="http://gnupg.org">http://gnupg.org</a> or <a class="moz-txt-link-freetext" href="http://www.pgp.com">http://www.pgp.com</a>

To unsubscribe from the hobbit list, send an e-mail to
<a class="moz-txt-link-abbreviated" href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk</a>




  </pre>
</blockquote>
<br>
</body>
</html>