Welcome, Guest
Please Login or Register.
Lost Password?
How to check that ClamAV is running. (1 viewing)
Post Reply

TOPIC: How to check that ClamAV is running.

#3611
Blueforce (User)
Posts: 192
graphgraph
How to check that ClamAV is running. 2007/01/21 13:19  
Hi,

How do I check that ClamAV is running?
Earlier this info was found in the daily logwatch, like this:
--------------------- clam-update Begin ------------------------

Last ClamAV update process started at Sun Apr 16 23:02:09 2006

Last Status:
main.cvd is up to date (version: 37, sigs: 46700, f-level: 7, builder: ccordes)
daily.cvd is up to date (version: 1403, sigs: 4303, f-level: 7, builder: arnaud)

---------------------- clam-update End -------------------------

This info must have been removed (unfortunately) from the logwatch because I no longer see this info in the logwatch.

I would like to know how and where to check that ClamAV is running and is up to date, this because we suddenly started to receive lots of spam mails with exe-files attached, some of them with virus and troians.
These infected files was delivered normally by the server and was found when received in my computer. I also did try disabling my virus protection and sent a Eicar testvirus string in a mail whitch also was delivered by our server.

Server runs FC4 and Virtualmin Pro, all with the latest versions.

Regards,
Leif
  The administrator has disabled public write access.
#3622
Blueforce (User)
Posts: 192
graphgraph
Re: How to check that ClamAV is running. 2007/01/24 15:11  
Anyone...??
  The administrator has disabled public write access.
#3623
Joe (Admin)
Posts: 4084
graph
Re: How to check that ClamAV is running. 2007/01/24 16:07  
Hey Leif,

Sorry for the slow reply.

You can run "service clamd status" to see if the daemon is running.

Check the maillog for any information about what's happening when the virus check occurs...I believe you'll see an error if something goes wrong with the clamscan command (actually, it might show up in the user's procmail log, and only if logging is enabled...). But it's always worth checking the maillog when something weird is happening with mail.
  The administrator has disabled public write access.
#3624
Blueforce (User)
Posts: 192
graphgraph
Re: How to check that ClamAV is running. 2007/01/24 16:31  
Hi Joe,

Should the ClamAV info be shown in logwatch??

When I check clamd status I get this answer:

[[root@server ~]]# service clamd status
clamd: unrecognized service
[[root@server ~]]#

As I recall I have not been able to check any clamAV info since we reinstalled our server(about 7-8 month ago), before I could check the status by a command(don't remember it know) that reported ClamAv status, build, version and so.

Any ideas?

Regards,
Leif
  The administrator has disabled public write access.
#3645
SeanKelly (User)
Posts: 12
graphgraph
Re: How to check that ClamAV is running. 2007/01/25 15:31  
QUOTE:

As I recall I have not been able to check any clamAV info since we reinstalled our server(about 7-8 month ago)


Leif,

Are you sure ClamAV is installed?

Try rpm -q clamav

If not then yum install clamav

S
  The administrator has disabled public write access.
#3647
SeanKelly (User)
Posts: 12
graphgraph
Re: How to check that ClamAV is running. 2007/01/25 16:08  
to get the last clamav update info (like posted) do: freshclam ?

to get the Version info do: clamscan -V OR freshclam -V
  The administrator has disabled public write access.
#3648
Blueforce (User)
Posts: 192
graphgraph
Re: How to check that ClamAV is running. 2007/01/25 16:48  
Hi Sean,

I have checked "clamscan -V" and it reports the the version, build and so on. "freshclam -V" report an error. Virtualmin also reports that ClamAV is installed and active when I re-check and refresh configuration.

The strange thing is that we suddenly started to recieve many infected mails every day. It must be more than a year ago that I letest did recieve them, for example the attached and infected file "postcard.exe".

I have checked the mail logs and logfiles but I can't see any info in the logfiles that a e-mail was scand by ClamAV, and I have checked the logs for mail that I am sere hade a infected file attached to it. Maybe I'm not looking in the right place?

Sometimes when I send the Eicar virus test string it also get delivered normally. Maybe I chould set the server to store the infected mail in a folder/file so I actually see the infected mails, instead of just throw them away. But this feels like a very wrong way to tell if ClamAV actually is working.

Regards,
Leif
  The administrator has disabled public write access.
#3652
Blueforce (User)
Posts: 192
graphgraph
Re: How to check that ClamAV is running. 2007/01/25 16:58  
One more thing,

I also don't know if the logwatch no longer provides the ClamAV status in the log, or if something is wrong in my settings. The first 6 month when our first FC4 box was running, logwatch always reported ClamAV status, but since the reinstall about 8 month ago (due to harware chrash) it no longer have provided the ClamAV status in the logwatch.

Regards,
Leif
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.