[rsyslog] Ominous
Rainer Gerhards
rgerhards at hq.adiscon.com
Wed Nov 23 16:30:21 CET 2011
> -----Original Message-----
> From: rsyslog-bounces at lists.adiscon.com [mailto:rsyslog-
> bounces at lists.adiscon.com] On Behalf Of Brian Dorling
> Sent: Wednesday, November 23, 2011 4:13 PM
> To: rsyslog at lists.adiscon.com
> Subject: Re: [rsyslog] Ominous
>
> Brian Dorling <brian_dorling <at> t-online.de> writes:
>
>
> > I guess this is the culprit:
> >
> > if $msg contains_i 'WAN is up' and $source contains_i 'buffalo' then
> > ^/usr/sbin/mailtext-nosyslog.sh;WAN
> >
> Not, quite. I changed the script to use another email sender last week. It
> expects two parms.
> 1 = Subject, 2 = body. If 2 is empty it should EOT itself after 60 seconds.
> Seems like
> it does, sometimes. As rsyslog calls the script with just 1 parm (from the
> template) then that prgram would just hang. And that seems to have hung
> rsyslog.
> Phew, at least that is clear now!
>
> Question. Any way to pass 2 string parms out of a template?
>
> Thanks for the help.
Actually, the exec program action is a real quick and dirty hack. I suggest
to have a look at omprog :)
Rainer
More information about the rsyslog
mailing list