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.

Cheers Brian



_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/

Reply via email to