On Thu, 2018-08-02 at 08:22 +0000, Till Brinkmann wrote:
> Thanks !
> -----Ursprüngliche Nachricht-----Von: rsyslog [mailto:rsyslog-bounces
> @lists.adiscon.com] Im Auftrag von Rainer GerhardsGesendet:
> Donnerstag, 2. August 2018 10:21An: rsyslog-users <[email protected]
> con.com>Betreff: Re: [rsyslog] ommail Ubuntu 18.04 action 'action 0'
> suspended
> It's not supported. You need to deliver to the local MTA and make it
> forward.
> Rainer
> 2018-08-02 10:10 GMT+02:00 Till Brinkmann <[email protected]>:
> Re,
> does anyone know if I can define username and password and TLS for
> ommail ?
> Our exchange assume it.
> *Till
> -----Ursprüngliche Nachricht-----Von: rsyslog [mailto:rsyslog-bounces
> @lists.adiscon.com] Im Auftrag von Till BrinkmannGesendet:
> Donnerstag, 2. August 2018 09:51An: rsyslog-users <[email protected]
> con.com>; eSX <[email protected]>Betreff: Re: [rsyslog] ommail Ubuntu
> 18.04 action 'action 0' suspended
> Sorry what a rude mistake .. on not no ... *facepalm
> -----Ursprüngliche Nachricht-----Von: rsyslog [mailto:rsyslog-bounces
> @lists.adiscon.com] Im Auftrag von Till BrinkmannGesendet:
> Donnerstag, 2. August 2018 09:46An: eSX <[email protected]>; rsyslog@l
> ists.adiscon.comBetreff: Re: [rsyslog] ommail Ubuntu 18.04 action
> 'action 0' suspended
> If I configure the action it throws an error :-/
> if $msg contains "Invalid Credentials" then {   action(type="ommail"
> server="MAILSERVER"
> port="587"          mailfrom="MAILFROM"          mailto="till.brinkma
> [email protected]"          action.execOnlyWhenPreviousIsSuspended="no"      
>     subject.text="mailSubject")}
> parameter 'action.execonlywhenpreviousissuspended' must be "on" or
> "off" but is neither. Results unpredictable. [v8.32.0 try http://www.
> rsyslog.com/e/2207 ]
> Any Idears ?
> Von: eSX [mailto:[email protected]]Gesendet: Donnerstag, 2. August
> 2018 09:30An: [email protected]; Till Brinkmann <Till.Brinkma
> [email protected]>Betreff: Re: [rsyslog] ommail Ubuntu 18.04 action 'action
> 0' suspended
> BTW, I think It's a good practice to name a action, so that you can
> distinguish multiple actions clearly. ;)
> 
> 
> eSX <[email protected]<mailto:[email protected]>> 于2018年8月2日周四
> 下午3:24写道:Hi Brinkmann
> It seems that the MAILSERVER and port don't work well.For example,
> the  MAILSERVER is unreachable.You can check it and add a extra
> action with action.execOnlyWhenPreviousIsSuspended = "on"also, you
> can set action.resumeretrycount and action.resumeInterval in your
> ommail action.
> click here for detail:https://www.rsyslog.com/doc/master/configuratio
> n/actions.html
> 
> 
> 
> Till Brinkmann <[email protected]<mailto:[email protected]>>
> 于2018年8月2日周四 下午2:48写道:rsyslog  8.32.0-1ubuntu4
> lsb_release -aNo LSB modules are available.Distributor ID:
> UbuntuDescription:    Ubuntu 18.04.1
> LTSRelease:        18.04Codename:       bionic
> Hi there,
> I try to react on syslog messages from a external device by sending
> emails to our admins.
> module(load="ommail")
> template (name="mailBody"  type="string" string="RSYSLOG
> Alert\\r\\nmsg='%msg%'")
> if $msg contains "Invalid Credentials" then {   action(type="ommail"
> server="MAILSERVER"
> port="587"          mailfrom="SYSLOGMAILER"          mailto="till.bri
> [email protected]<mailto:[email protected]><mailto:till.brinkmann@adn
> .de<mailto:[email protected]>>"          subject.text="mailSubjec
> t")}
> I can find following error that i do not understand in the syslog.
> rsyslogd[14116]: action 'action 0' suspended (module 'ommail'), retry
> 0. There should be messages before this one giving the reason for
> suspension. [v8.32.0 try http://www.rsyslog.com/e/2007 ]
> Does anyone can help ?
> THANKS !! TILL
> _______________________________________________rsyslog mailing listht
> tp://lists.adiscon.net/mailman/listinfo/rsysloghttp://www.rsyslog.com
> /professional-services/What's up with rsyslog? Follow https://twitter
> .com/rgerhards NOTE WELL: This is a PUBLIC mailing list, posts are
> ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE
> and DO NOT POST if you DON'T LIKE THAT.
> 
> --eSX
> 
> --eSX_______________________________________________rsyslog mailing
> listhttp://lists.adiscon.net/mailman/listinfo/rsysloghttp://www.rsysl
> og.com/professional-services/What's up with rsyslog? Follow https://t
> witter.com/rgerhards NOTE WELL: This is a PUBLIC mailing list, posts
> are ARCHIVED by a myriad of sites beyond our control. PLEASE
> UNSUBSCRIBE and DO NOT POST if you DON'T LIKE
> THAT._______________________________________________rsyslog mailing
> listhttp://lists.adiscon.net/mailman/listinfo/rsysloghttp://www.rsysl
> og.com/professional-services/What's up with rsyslog? Follow https://t
> witter.com/rgerhards NOTE WELL: This is a PUBLIC mailing list, posts
> are ARCHIVED by a myriad of sites beyond our control. PLEASE
> UNSUBSCRIBE and DO NOT POST if you DON'T LIKE
> THAT._______________________________________________rsyslog mailing
> listhttp://lists.adiscon.net/mailman/listinfo/rsysloghttp://www.rsysl
> og.com/professional-services/What's up with rsyslog? Follow https://t
> witter.com/rgerhards NOTE WELL: This is a PUBLIC mailing list, posts
> are ARCHIVED by a myriad of sites beyond our control. PLEASE
> UNSUBSCRIBE and DO NOT POST if you DON'T LIKE
> THAT._______________________________________________rsyslog mailing
> listhttp://lists.adiscon.net/mailman/listinfo/rsysloghttp://www.rsysl
> og.com/professional-services/What's up with rsyslog? Follow https://t
> witter.com/rgerhards NOTE WELL: This is a PUBLIC mailing list, posts
> are ARCHIVED by a myriad of sites beyond our control. PLEASE
> UNSUBSCRIBE and DO NOT POST if you DON'T LIKE
> THAT._______________________________________________rsyslog mailing
> listhttp://lists.adiscon.net/mailman/listinfo/rsysloghttp://www.rsysl
> og.com/professional-services/What's up with rsyslog? Follow https://t
> witter.com/rgerhardsNOTE WELL: This is a PUBLIC mailing list, posts
> are ARCHIVED by a myriad of sites beyond our control. PLEASE
> UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.

An alternative might be this:

http://simple-evcorr.github.io/

coupled with:
http://caspian.dotconf.net/menu/Software/SendEmail/

James
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to