Re: AW: AW: [Clamav-users] clamd crash detection ?

2004-01-08 Thread Cedric Foll
Le mer 07/01/2004 à 20:16, [EMAIL PROTECTED] a écrit :
 On Wed, 2004-01-07 at 10:59, Power-Netz (Schwarz) wrote:
  Your script code does work, but does not recognize the crashed child :-(
  The parent task seems to life and answere the PING , but the actual
  used child does no longer react. Thx to you will can check the clamd a bit
  better.
 
 Try this version:
 
 http://mikecathey.com/postfix-cyrus-amavis/clamdwatch-0.3.txt
 
 The changes are noted at the top of the file.  The main one
 is the timeout on the scan request.  I also added exit codes.
 

Thanks for your work. This script should be add in the contrib directory
of clam.
I just have a little pb with it. It's about how you find your path at
the start of the file.
I get the folowing error:
[EMAIL PROTECTED] tmp]# /usr/local/bin/clamdwatch.pl
Clamd is in an unknown state.
It returned: /usr/local/bin/usr/local/bin/clamdwatch.pl: Can't access
the file ERROR

My solution was to just write
$script = $0

Regards.


signature.asc
Description: Ceci est une partie de message	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=


Re: AW: AW: [Clamav-users] clamd crash detection ?

2004-01-08 Thread [EMAIL PROTECTED]
On Thu, 2004-01-08 at 04:11, Cedric Foll wrote:
 I just have a little pb with it. It's about how you find your path at
 the start of the file.
 I get the folowing error:
 [EMAIL PROTECTED] tmp]# /usr/local/bin/clamdwatch.pl
 Clamd is in an unknown state.
 It returned: /usr/local/bin/usr/local/bin/clamdwatch.pl: Can't access
 the file ERROR

Fixed.

I moved the clamdwatch scripts to make it easier for people to see the
latest version and grab what they want:

http://mikecathey.com/code/clamdwatch/

Cheers,

Mike



---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users


Re: AW: AW: [Clamav-users] clamd crash detection ?

2004-01-07 Thread [EMAIL PROTECTED]
On Wed, 2004-01-07 at 10:59, Power-Netz (Schwarz) wrote:
 Your script code does work, but does not recognize the crashed child :-(
 The parent task seems to life and answere the PING , but the actual
 used child does no longer react. Thx to you will can check the clamd a bit
 better.

Are you using the new version (0.2; which doesn't send a PING)?

If you are, then this is indeed strange.

It sounds like the clamd parent process is what answers the PING, but
passes scan requests on to it's children.  The scan request should just
sit there and hang...

I need to add some kind of trap/timeout for the scan request.

Can you reproduce the clamd crashes reliably?  If so, how?

Cheers,

Mike



---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users


Re: AW: AW: [Clamav-users] clamd crash detection ?

2004-01-07 Thread [EMAIL PROTECTED]
On Wed, 2004-01-07 at 10:59, Power-Netz (Schwarz) wrote:
 Your script code does work, but does not recognize the crashed child :-(
 The parent task seems to life and answere the PING , but the actual
 used child does no longer react. Thx to you will can check the clamd a bit
 better.

Try this version:

http://mikecathey.com/postfix-cyrus-amavis/clamdwatch-0.3.txt

The changes are noted at the top of the file.  The main one
is the timeout on the scan request.  I also added exit codes.

Cheers,

Mike



---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users