Networking Forums

Networking Forums > Computer Networking > Linux Networking > How to send a syslog message by E-mail?

Reply
Thread Tools Display Modes

How to send a syslog message by E-mail?

 
 
Nick Wu
Guest
Posts: n/a

 
      02-02-2004, 12:58 AM
Hi all,

I would like to send a syslog msg by e-mail instead of just logging
msg to system. Does linux has any e-mail alert package? Should I
modify syslogd to support SMTP to do so or any other way to achieve
the goal?

Thanks for your comments.
Nick Wu.
 
Reply With Quote
 
 
 
 
Cameron Kerr
Guest
Posts: n/a

 
      02-02-2004, 01:35 AM
Nick Wu <(E-Mail Removed)> wrote:

> I would like to send a syslog msg by e-mail instead of just logging
> msg to system.


I suggest you have a look at the swatch program. It should be able to do
things like that for you.

You can also send all log messages that match a given facility and
priority to a command, such as mail. See syslogd and syslog.conf manual
pages for more information.

--
Cameron Kerr
(E-Mail Removed) : http://nzgeeks.org/cameron/
Empowered by Perl!
 
Reply With Quote
 
Rich Piotrowski
Guest
Posts: n/a

 
      02-02-2004, 01:52 AM
On 1 Feb 2004 17:58:16 -0800, (E-Mail Removed) (Nick Wu) wrote:

>Hi all,
>
>I would like to send a syslog msg by e-mail instead of just logging
>msg to system. Does linux has any e-mail alert package? Should I
>modify syslogd to support SMTP to do so or any other way to achieve
>the goal?
>
>Thanks for your comments.
>Nick Wu.


How about both? You might want to take a look at logwatch. I think it
should do all you want.

http://www.logwatch.org

What distro do you have? I know it comes with recent Red Hat.

--
"Now are you talking about what it is you know
Or just repeating what it was you heard."
Grace Slick
To E-mail use: rpiotro(at)wi(dot)rr(dot)com
 
Reply With Quote
 
Keith Keller
Guest
Posts: n/a

 
      02-02-2004, 02:09 AM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2004-02-02, Nick Wu <(E-Mail Removed)> wrote:
>
> I would like to send a syslog msg by e-mail instead of just logging
> msg to system. Does linux has any e-mail alert package? Should I
> modify syslogd to support SMTP to do so or any other way to achieve
> the goal?


It's probably easier to use a named pipe; set the appropriate config in
syslogd.conf, and use some sort of crontab to read from the pipe and
create an appropriate message from what it reads.

- --keith

- --
kkeller-(E-Mail Removed)
(try just my userid to email me)
AOLSFAQ=http://wombat.san-francisco.ca.us/cgi-bin/fom

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAHb+AhVcNCxZ5ID8RAtYAAJwNUZXMDvg2PlZY/QqflQLIsRcEcgCfb53L
yim+crBA5x2CAAw6NRxFlEg=
=3yAp
-----END PGP SIGNATURE-----
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Send console message error? appy33 Wireless Networks 0 06-03-2006 09:41 PM
Syslog parser wanted to replace Kiwi Syslog (win32) Jurgen.Turrekens@gmail.com Linux Networking 0 01-19-2006 01:08 PM
how to send a message from an NT Server to any given client on a LAN/WAN Mario Windows Networking 5 03-05-2004 10:49 AM
Net Send or Console Message Scott Micale Windows Networking 35 03-04-2004 03:40 AM
[SAMBA]: Net send'ed message to receive. =?iso-8859-2?q?Jacek_Ro=BFen?= Linux Networking 2 11-23-2003 03:49 PM



1 2 3 4 5 6 7 8 9 10 11