Operating System - HP-UX
1834828 Members
2312 Online
110070 Solutions
New Discussion

Syslogd doesn't email !!???

 
Bonny Jose_1
Advisor

Syslogd doesn't email !!???

Hi all,
It seems syslogd doesn't mail to the users specified in /etc/syslogd.conf rather it just write to those user's terminal if they are logged in.Is that true??!!.Even man pages of syslogd says in that way only.

I checked with the following command

logger -p user.warning "Test"
But it didn't send any mail to root.It just displayed message in the terminal and logged in /var/adm/syslog/syslog.log
let us make the world
2 REPLIES 2
Steven Sim Kok Leong
Honored Contributor

Re: Syslogd doesn't email !!???

Hi,

Yes, syslogd by itself does not support emailing of facility.level messages. You can either write your own scripts to interface with syslog.log or use a utility like swatch.

You can download the latest release at:

http://www.oit.ucsb.edu/~eta/swatch/latest.tar

Swatch's homepage is at:

http://www.oit.ucsb.edu/~eta/swatch

Hope this helps. Regards.

Steven Sim Kok Leong
Rita C Workman
Honored Contributor

Re: Syslogd doesn't email !!???

What we did is simply write a small script to check our syslog.log file for specific kinds of errors that we felt we needed emails for...and in the script it emails (and sends to our pagers) the alert.
We set this script to cron every couple of minutes....

Just a thought,
Rita