[rsyslog-notify] Forum Thread: ommail doesn't send body - (Mode 'post')
noreply at adiscon.com
noreply at adiscon.com
Mon Sep 5 22:34:55 CEST 2016
User: Butch
Forumlink: http://kb.monitorware.com/viewtopic.php?p=26925#p26925
Message:
----------
Hi there,
I'm unable to get ommail to send the body of my message, I get the emails
fine, but with no content.
I'm using the below installation
rsyslogd 8.21.0, compiled with:
PLATFORM: x86_64-redhat-linux-gnu
PLATFORM (lsb_release -d):
FEATURE_REGEXP: Yes
GSSAPI Kerberos 5 support: No
FEATURE_DEBUG (debug build, slow code): No
32bit Atomic operations supported: Yes
64bit Atomic operations supported: Yes
memory allocator: system default
Runtime Instrumentation (slow code): No
uuid support: Yes
Number of Bits in RainerScript integers: 64
The code I'm using is below, but it seems even the example code from the
manual doesn't function as I'd expect. I'm a bit green, so I may be missing
something obvious, any help would be appreciated. Where/how do I specify
the body template to be used?
module(load="ommail")
###connection test
template (name="mailBody" type="string" string="RSYSLOG
Alert\\r\\nmsg='%msg%'")
template (name="mailSubject" type="string" string="Test Message from:
%syslogtag%")
if $msg contains "Test Connection" then {
action(type="ommail" server="ourserver" port="25"
mailfrom="Alerts at mycompany"
mailto=["myemail", "me at gmail.com"]
subject.template="mailSubject")
}
More information about the rsyslog-notify
mailing list