Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-18, 18:11:04

Author Topic: ClamAV  (Read 4555 times)

0 Members and 1 Guest are viewing this topic.

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
ClamAV
« on: 2014-12-14, 09:15:58 »
/etc/cron.hourly/simscan_update:

LibClamAV Warning:
 **************************************************
LibClamAV Warning:
*** The virus database is older than 7 days! ***
LibClamAV Warning:
 *** Please update it as soon as possible.
 ***LibClamAV Warning:
**************************************************

I am getting these emailed to me from 6 servers hourly.  Something has failed with clamAV.

Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: ClamAV
« Reply #1 on: 2014-12-14, 09:49:08 »
First, there is a new version of clamAV.

ClamAV update process started at Sun Dec 14 10:32:21 2014
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Local version: 0.98.4 Recommended version: 0.98.5

'freshclam' fixed the out of date warnings, but investigating further I realized the problem was with /dev/null.

Whenever the server tried to use /dev/null a Permission Denied error would occur.  Somehow, on ALL my servers the file /dev/null contained characters.

Fixed with:
rm /dev/null; mknod -m 666 /dev/null c 1 3

A reboot would also correct this, but I don't take my servers offline unless absolutely needed.

My question is, what has incorrectly wrote to /dev/null?  If this happened on my entire cluster, I tend to believe it was with kloxoMR somewhere.  One server has NO clients at all, this also happened.
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: ClamAV
« Reply #2 on: 2014-12-14, 11:26:12 »
Where you information relate to '/dev/null'?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: ClamAV
« Reply #3 on: 2014-12-14, 17:37:37 »
It relates because cron send output to /dev/null so no mail is sent, etc.  With /dev/null giving Permission denied whenever trying to run cron, cron was failing as well - freshclam was not updating clamAV.

Now that /dev/null is now fixed, all completes, no errors.  In search for why this happen, it is due to an incorrect handling of /dev/null where it actually writes a file.

Since this happened 7 or 8 days ago, across my entire cluster, as well as on servers with NO clients, i tend to think it was kloxoMR related.  It is only theory.
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine

Page created in 0.08 seconds with 21 queries.

web stats analysis