Re: [Aware-list] elogger
Status: Beta
Brought to you by:
rleighton
|
From: Russell L. <ru...@el...> - 2003-10-05 23:55:19
|
You should get the "can't exec" in stderr, so it will be matched.
Try it.
Alex Efros wrote:
>Hi!
>
>On Sun, Oct 05, 2003 at 06:05:56PM -0400, Russell Leighton wrote:
>
>
>>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 }
>>
>>
>
>Hmm... But "NO OUTPUT" isn't the same as "CAN'T EXEC". :(
>
>
>
|