Re: [Aware-list] elogger
Status: Beta
Brought to you by:
rleighton
|
From: Russell L. <ru...@el...> - 2003-10-05 22:12:02
|
elogger is used for errors with the handler/probe.
In execpprobe the return code is not looked at, but
stdout and stderr can be matched with the match: keyword.
Try this:
set e create event { name: fail }
create probe execp {
cmd: '/bin/notexists'
match: $e '' '' ''
cycletime: 10
}
set hlogger create hlogger {}
create handler log { logger: $hlogger regevent: $e }
Alex Efros wrote:
>Hi!
>
>Can you explain (or point me to documentation) how and when "elogger:"
>executed? I've tryed "elogger:" in probe "timer" and in probe "execp" and
>it never executed. Ok, probably probe "timer" never return error :) ,
>but probe "execp" with incorrect "cmd:" value SHOULD return error using
>"elogger:"? I've tryed these "cmd:" :
> cmd: '/bin/notexists'
> cmd: 'sh -c "exit 1"'
> cmd: '/bin/false'
>
>
>
|