Getting error from Cron Deamon

10 posts / 0 new
Last post
#1 Wed, 04/22/2009 - 21:39
Anonymous

Getting error from Cron Deamon

I get an email message sent to my server admin email everyday.

It says:

ERROR: Please edit the example config file /etc/freshclam.conf. ERROR: Can't parse the config file /etc/clamd.conf

The subject of the message is:

"Cron <root@heavyhoster> usr/share/clamav/freshclam-sleep"

Any idea what I need to do to this "freshclam.conf" file ?

Thanks

Wed, 04/22/2009 - 22:07
Joe
Joe's picture

You have clamav packages from some source other than us. We don't really recommend that, but if you're going to do so, you'll need to edit those files and remove the Example line.

--

Check out the forum guidelines!

Wed, 04/22/2009 - 23:24
Davvit

I didn't know what these clamav packages were for,
so I googled it - seems it is antivirus sw.

I don't know where they came from !!

Quite likely they were on the VirtualMin Optional Package
list.

I notice that right now on my control panel I have 7
updates that I should implement and interestingly, the
first is this:

<div class='quote'>clamav End-user tools for the Clam Antivirus scanner 0.95.1-1.vm.el5
</div>

So - the question is - do you suggest that I somehow ( how ?)
remove this software ?

If so - what av protection will I have ?

Thanks for your help.

Thu, 04/23/2009 - 09:23 (Reply to #3)
Joe
Joe's picture

They <i>should</i> come from us, if you want them to work without hassle. But, I'm guessing you got them from somewhere else (since our packages have the &quot;Example&quot; line removed)...What clam packages are currently installed?

rpm -q clamav

--

Check out the forum guidelines!

Fri, 04/24/2009 - 09:48 (Reply to #4)
Davvit

I get:

clamav-0.94-3vm.el5

Is that from yourselves ?

I certainly have not downloaded it from anywhere else.

Thanks

Fri, 04/24/2009 - 12:35 (Reply to #5)
Joe
Joe's picture

Yes, that's ours. I have no idea how you ended up with an &quot;Example&quot; line, though. All of our packages have that line removed.

Note also that 0.95.1 is in our repos, and has been for a couple of weeks. You'll want to upgrade.

It probably won't fix the freshclam.conf issue, though, since RPM doesn't always replace configuration files (if any changes have been made to them they won't be replaced, and since the Example line exists, the file doesn't match what shipped with our earlier package, so it's unlikely to be changed automatically be RPM). Confused yet?

Just edit /etc/freshclam.conf and get rid of the line that says, &quot;Example&quot;.

Also, the /etc/clamd.conf file should never be used for anything...it's a dummy file, intended to be copied and modified for service-specific clamd instances. Virtualmin creates a clamd-virtualmin service, and a clamd-virtualmin.conf file should exist, if you've turned on clamd in Virtualmin.

--

Check out the forum guidelines!

Sat, 04/25/2009 - 01:04
Davvit

OK
I have edited the file,

I put a hash ( # ) in front of the word &quot;example&quot;.

Is that all that was necassary ?

I have also updated the packages.

Checked the package and got this answer:

[root@heavyhoster ~]# rpm -q clamav
clamav-0.95.1-1.vm.el5

So - it should be OK now ?

Sat, 04/25/2009 - 11:19 (Reply to #7)
Joe
Joe's picture

Seems likely. Any more errors?

--

Check out the forum guidelines!

Sun, 04/26/2009 - 04:34
DonReaves

I noticed the same thing with a fresh download of vmpro just this month to replace a server. This on a Centos 5.3 machine.

rpm -q clamav reports clamav-0.95.1-1.vm.el5

Example was not commented out.

Sun, 04/26/2009 - 11:38 (Reply to #9)
Joe
Joe's picture

Egads. You're right. That's unbelievable. The EPEL repo version of clamav ships out with a broken config. Doesn't even make sense.

Fixing it now.

--

Check out the forum guidelines!

Topic locked