rsyslog
Aug 29, 2008 - 02:03 PM

Donate!
Satisfied with rsyslog?

Donate and help keep
the project alive!

Rainer's Blog

Login




 


 Log in Problems?
 New User? Sign Up!

Online
There are 28 unlogged users and 0 registered users online.

You can log-in or register for a user account here.

Announcements
Announcements  :: rsyslog 3.17.0 released ::
(857 Reads)  
Posted by friedl on Wednesday, April 09, 2008 - 10:19 PM

Hi all,

rsyslog 3.17.0 has just been released. It is part of the development branch. The primary new feature is the ability to send email alerts based on syslog or file data. The action engine now has the ability to carry out an action only once within a configured interval and/or only during specific time frames. Option processing has been improved and a number of stability updates have been included. This is a recommended update for all users of the development version.

More information on the major new feature can be found here:

http://www.rsyslog.com/doc-ommail.html

The following is a sample code snippet that alerts the operator when disk problems are detected:

$ModLoad ommail
$ActionMailSMTPServer mail.example.net
$ActionMailFrom rsyslog@example.net
$ActionMailTo operator@example.net
$template mailSubject,"disk problem on %hostname%"
$template mailBody,"RSYSLOG Alert\r\nmsg='%msg%'"
$ActionMailSubject mailSubject
# make sure we receive a mail only once in six
# hours (21,600 seconds ;))
$ActionExecOnlyOnceEveryInterval 21600
# the if ... then ... mailBody mus be on one line!
if $msg contains 'hard disk fatal failure' then :ommail:;mailBody

Note that we now have the ability to limit an action to be executed only once inside a specific period. In the above sample, the email alert happens only if there was no other such alert within the past 6 hours - this is absolutely vital to prevent an accidental DoS on your mailbox ;) ... but it may also be handy with other actions (e.g. SNMP trap notification etc etc). It's implemented at the action engine level, so it will work with any action, even file or database writes.

Change Log:

http://www.rsyslog.com/Article207.phtml

Download:

http://www.rsyslog.com/Downloads-req-getit-lid-95.phtml

I would be most interested in feedback on the new email feature, including clever use cases. I am sure it can be quite useful (especially if you think about imfile...), but would really appreciate to hear from you (and prove this in practice)!

Thanks,
Rainer Gerhards

Send this story to someone  Printer-friendly page
Only logged in users are allowed to comment. register/log in
 Search
 
Google

 Last Forum Posts
 · Re: Problem with regular expression
Fantastic, I'm glad it's working for you.In fact the problem was ...
· Re: Problem with regular expression
Hi,You're a genious In fact the problem was I used "HO ...
· Re: greater than 32 character Program na ...
The 32 character limit is imposed by RFC 3164, section 4.1. As fa ...
· Re: Problem with regular expression
Hmmm, there's definitely something weird going on. Let's try this ...
· Re: Problem with regular expression
Hi, Thank for reply.I've done the test, here and it doesn't work. ...

 Top Contributors
 
Contributor Contribs
varmojfekoj 7
Michael Biebl 2
Michel Biebl 1
Peter Vrabec 1



:: Syndication: ::
Page created in 0.136019945145 seconds.