On Wed, 2004-01-07 at 08:57, Power-Netz (Schwarz) wrote:
> > This could be hacked into a nagios/netsaint plugin quite easily.
> 
> can snmp access local unix sockets from external? and what would it do?

I was thinking in terms of people that use a tcp socket that was
listening on a public (not localhost) interface.  If you're using the
LocalSocket option, you could set up snmpd to call the script and have
nagios query it.

> I think its not a good solution if you need to restart it anyway :)
> max. 1 minute later clamd would be restartet anyway ( we run our cronscript
> */1 ).

You could add the restart to the script.

The script could also be extended to ask clamav to scan a file that's
known to be infected and make sure that scanning is actually working.  I
though about putting the EICAR test signature in the file and then
changing the PING to a request to scan the script itself.

> Your Scripts works as far as we could test it without crashing a clamd ;)
> Time will tell

Please let me know. :)

Cheers,

Mike



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to