[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
GENERIC: error receiving data -- Resource temporarily unavailable
From: |
Jesse Guardiani |
Subject: |
GENERIC: error receiving data -- Resource temporarily unavailable |
Date: |
Mon, 05 Apr 2004 09:56:41 -0400 |
User-agent: |
KNode/0.7.2 |
Howdy list,
I just started using Monit last Friday. VERY cool little
program. I'm running Monit 4.2 (without HTTP) on:
# uname -a
FreeBSD chortos.wingnet.net 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Fri Apr 11
12:59:08 EDT 2003 address@hidden:/usr/src/sys/compile/CHORTOS i386
I am using monit to monitor ClamAV's clamd daemon. It has
a bad habit of:
a.) consuming high resources for no good reason
b.) crashing (which I fix quickly via daemontools)
c.) hanging for no good reason. (This is really what I need monit for.)
Anyway, today I saw this in my log:
--------------------------------------------------------
Apr 5 08:25:37 chortos monit[14259]: GENERIC: error receiving data -- Resource
temporarily unavailable
Apr 5 08:25:37 chortos monit[14259]: Event: 'clamd' failed protocol test
[generic] at UNIX[/tmp/clamd].
Apr 5 08:25:37 chortos monit[14259]: Trying to restart 'clamd'
Apr 5 08:25:37 chortos monit[14259]: stop: (clamd) /usr/bin/killall
Apr 5 08:25:38 chortos monit[14259]: start: (clamd) /usr/local/bin/clamdctl
Apr 5 08:25:45 chortos monit[14259]: Sendmail error: 451 qq temporary problem
(#4.3.0)
Apr 5 08:26:50 chortos monit[14259]: GENERIC: error receiving data -- Resource
temporarily unavailable
Apr 5 08:27:55 chortos monit[14259]: GENERIC: error receiving data -- Resource
temporarily unavailable
Apr 5 08:29:00 chortos monit[14259]: GENERIC: error receiving data -- Resource
temporarily unavailable
Apr 5 08:30:05 chortos monit[14259]: GENERIC: error receiving data -- Resource
temporarily unavailable
Apr 5 08:31:10 chortos monit[14259]: GENERIC: error receiving data -- Resource
temporarily unavailable
Apr 5 08:48:31 chortos monit[14259]: GENERIC: error receiving data -- Resource
temporarily unavailable
Apr 5 08:56:31 chortos monit[14259]: Event: loadavg(1min) of 10.2 matches
resource limit [loadavg(1min)>10.0]
Apr 5 08:56:31 chortos monit[14259]: Trying to restart 'clamd'
Apr 5 08:56:31 chortos monit[14259]: stop: (clamd) /usr/bin/killall
Apr 5 08:56:32 chortos monit[14259]: start: (clamd) /usr/local/bin/clamdctl
Apr 5 08:56:52 chortos monit[14259]: Sendmail: error receiving data from the
mailserver 'localhost' -- Resource temporarily unavailable
Apr 5 09:05:58 chortos monit[14259]: GENERIC: error receiving data -- Resource
temporarily unavailable
Apr 5 09:05:58 chortos monit[14259]: Event: 'clamd' failed protocol test
[generic] at UNIX[/tmp/clamd].
Apr 5 09:05:58 chortos monit[14259]: Trying to restart 'clamd'
Apr 5 09:05:58 chortos monit[14259]: stop: (clamd) /usr/bin/killall
Apr 5 09:05:59 chortos monit[14259]: start: (clamd) /usr/local/bin/clamdctl
Apr 5 09:06:01 chortos monit[14259]: Sendmail error: 451 qq temporary problem
(#4.3.0)
--------------------------------------------------------
What does "GENERIC: error receiving data -- Resource temporarily unavailable"
mean?
And, more importantly, why did that message at 08:26 not trigger a restart
event?
5 minutes is a long time for a service to be unavailable.
Here's my /etc/monitrc:
--------------------------------------------------------
set daemon 60
set logfile syslog facility log_daemon
set alert address@hidden
set mailserver localhost, agape.wingnet.net, lego.flatratecalling.biz
with timeout 15 seconds
check process clamd with pidfile /var/spool/qmailscan/clamd.pid
start program = "/usr/local/bin/clamdctl start"
stop program = "/usr/bin/killall -9 clamd"
if failed unixsocket /tmp/clamd
send "VERSION\r\n"
expect "clamd / ClamAV.*"
then restart
if memory is greater than 30% then restart
if loadavg(1min) is greater than 10.0 then restart
alert address@hidden
--------------------------------------------------------
Thanks!
--
Jesse Guardiani, Systems Administrator
WingNET Internet Services,
P.O. Box 2605 // Cleveland, TN 37320-2605
423-559-LINK (v) 423-559-5145 (f)
http://www.wingnet.net
- GENERIC: error receiving data -- Resource temporarily unavailable,
Jesse Guardiani <=