LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-31-2010, 12:31 PM   #1
ronedog
LQ Newbie
 
Registered: Dec 2010
Posts: 1

Rep: Reputation: 0
Monit & clamav not working...unixsocket


I need a bit of help figuring something out. First off, I'm not very well versed with linux servers, etc. but with some direction hopefully I can get this fixed.

I'm using freeBSD and installed Monit so I could monitor some of the processes that run tomcat, apache, mysql, sendmail, clamav. So far, I'm only successful in getting apache & mysql to be monitored.

I'm getting this error for clamav in the log file for /var/log/monit.log

'clamavd' failed, cannot open a connection to UNIX[/usr/local/etc/rc.d/clamav-clamd]


My config file for clamav in /etc/monitrc is:

####################################################################
# CLAMAV Virus Checks
####################################################################
check process clamavd with pidfile /var/run/clamav/clamd.pid
group virus
start program = "/usr/local/etc/rc.d/clamav-clamd start"
stop program = "/usr/local/etc/rc.d/clamav-clamd stop"
if failed unixsocket /usr/local/etc/rc.d/clamav-clamd then restart
if 5 restarts within 5 cycles then timeout

Honestly, I really don't know much of what's going on here. My host who helped me get the box set up basically installed clamav, but doesn't offer this kind of detail in supporting me, so I'm left to figure this stuff out on my own as I own the box, but they provide the isp service.

Is there anyone who can help me troubleshoot this? Thanks for your help in advance.
 
Old 01-20-2011, 11:00 AM   #2
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602

Rep: Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084
This is likely either a file permission issues or an incorrectly configured LocalSocket option. What does your clamav config look like? Also, is clamd started?

--jeremy
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
little help getting monit working please steve51184 Linux - Software 1 02-24-2009 04:56 PM
Apache & clamav 0.9 saavik Linux - Server 1 03-26-2007 06:43 PM
ClamAV & Apache RySk8er30 Mandriva 2 02-16-2005 01:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration