Information: Forum is in read-only mode
For details and other support options see https://www.adiscon.com/news/support-forum-set-to-read-only-mode/

ommail.so module

Everything which is related to the installation of phpLogCon.

Moderator: alorbach

Google Ads


ommail.so module

Postby trungmv » Fri Nov 16, 2012 6:48 am

Hi all,

I am newbie and a fan of rsyslog.
I installed Rsyslog on my CentOS 5.x system and seem to be fine.
But when i remove # to using Ommail.so module, seem to be not fine such as rsyslog may be discarded all messages and i also did not get email notification.
These is ommail.so module:

$ModLoad ommail.so # Send mail
#$ActionMailSMTPServer smtp.domain.com(not localhost)
#$ActionMailFrom admin@domain.com
#$ActionMailTo user1@domain.com
#$ActionMailTo user2@domain.com
#$template mailSubject,"problem on %hostname%"
#$template mailBody,"FW Alert\r\nmsg='%msg%'"
#$ActionMailSubject mailSubject
#$ActionExecOnlyOnceEveryInterval 21600
#if $msg, contains 'log_id=32002' then :ommail:;mailBody

When i add # before all lines, i can received messages on real time
So what was i setting wrong? Could you please showing me?
I also attached rsyslog.conf here for clearly.
I very appreciate if you help me much more, because i did not find solution for long time ago.
Hope to see your reply soon.

Thanks you and Best regards,

P/:S i am using :
rsyslogd 5.8.7, compiled with:
FEATURE_REGEXP: Yes
FEATURE_LARGEFILE: Yes
GSSAPI Kerberos 5 support: No
FEATURE_DEBUG (debug build, slow code): Yes
32bit Atomic operations supported: No
64bit Atomic operations supported: No
Runtime Instrumentation (slow code): Yes
trungmv
Advanced
 
Posts: 43
Joined: Fri Jan 20, 2012 10:08 am

Urgent Question?

  • Pulling out your Hair?
  • Wasting Time and Money?
  • Deadline Approaching?

Re: ommail.so module

Postby rgerhards » Mon Mar 04, 2013 4:07 pm

is ommail actually present on your system? Any error messages on rsyslog startup? If not, pls post a (link to) a debug log.
rgerhards
Site Admin
 
Posts: 3807
Joined: Thu Feb 13, 2003 11:57 am

Re: ommail.so module

Postby trungmv » Tue Mar 05, 2013 3:36 am

Hi,

I already attache file here.
Any help is appreciated,

Regards,
Attachments
ommail_module.zip
(27.49 KiB) Downloaded 158 times
trungmv
Advanced
 
Posts: 43
Joined: Fri Jan 20, 2012 10:08 am

Google Ads



Return to Installation

Who is online

Users browsing this forum: No registered users and 0 guests

cron