<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: email notification from syslog.conf in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/email-notification-from-syslog-conf/m-p/2576865#M858910</link>
    <description>&lt;BR /&gt;Syslog automatically emails root for emergencies and alerts;&lt;BR /&gt;&lt;BR /&gt;mail.debug              /var/adm/syslog/mail.log&lt;BR /&gt;*.info;mail.none        /var/adm/syslog/syslog.log&lt;BR /&gt;*.alert                 /dev/console&lt;BR /&gt;*.alert                 root&lt;BR /&gt;*.emerg                 *&lt;BR /&gt;&lt;BR /&gt;So to redirect to another mailbox somewhere you need to modify your /etc/mail/aliases file and point root to &lt;USER&gt;, then run newaliases. Now when a filesystem fills up you will get an email to root.&lt;BR /&gt;&lt;/USER&gt;</description>
    <pubDate>Fri, 07 Sep 2001 09:43:31 GMT</pubDate>
    <dc:creator>Stefan Farrelly</dc:creator>
    <dc:date>2001-09-07T09:43:31Z</dc:date>
    <item>
      <title>email notification from syslog.conf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/email-notification-from-syslog-conf/m-p/2576864#M858909</link>
      <description>Can someone please help me with this simply question.  I have looked in at least 3 separate books without any examples and searched this web page as well.&lt;BR /&gt;&lt;BR /&gt;I am trying to set up my syslog.conf file to notify me via email if we should experience a critical system error (e.g., a lost drive in my RAID-5 array, or other critical system type error that I need to know about as soon as possible).&lt;BR /&gt;&lt;BR /&gt;1)  how can I distinguish between what I want to be considered a "critical" system error.  Anotherwords, I want to be notified of a failed disk in my raid array, but may not want to be notified of other "critical" system errors.&lt;BR /&gt;&lt;BR /&gt;2)  my plan was to set the syslog.conf to send "critical" errors to a file which I could then set a cron job to email the contents of that file to my email address or pager (somehow).&lt;BR /&gt;&lt;BR /&gt;=&amp;gt;  in the syslog.conf file, I presume to put an entry such as:&lt;BR /&gt;&lt;BR /&gt;     *.emerg           /var/adm/crit_errs&lt;BR /&gt;&lt;BR /&gt;Assuming the above would cause "critical" system errors to be written to /var/adm/crit_errs.&lt;BR /&gt;Then, I would simply run a cron job that executes a file that contains something to the effect of:&lt;BR /&gt;&lt;BR /&gt;HOSTNAME=`hostname`&lt;BR /&gt;SERVER=$HOSTNAME&lt;BR /&gt;cat /var/adm/crit_errs | grep &lt;SOMETHING&gt; |mailx -s "Critical error on server $SERVER" my_email@myhost.com &amp;lt; /var/adm/crit_errs&lt;BR /&gt;&lt;BR /&gt;Am I close, or could someone please give me an example please of how to set something like this up?  Obviously in the above example I would need to either clear the crit_errs file or use tail -1 &lt;FILENAME&gt;, but my question is whether I am going in the right direction here.  And if not, can someone suggest a better way (without using 3rd party software).&lt;/FILENAME&gt;&lt;/SOMETHING&gt;</description>
      <pubDate>Fri, 07 Sep 2001 09:24:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/email-notification-from-syslog-conf/m-p/2576864#M858909</guid>
      <dc:creator>Jim Wolff</dc:creator>
      <dc:date>2001-09-07T09:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: email notification from syslog.conf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/email-notification-from-syslog-conf/m-p/2576865#M858910</link>
      <description>&lt;BR /&gt;Syslog automatically emails root for emergencies and alerts;&lt;BR /&gt;&lt;BR /&gt;mail.debug              /var/adm/syslog/mail.log&lt;BR /&gt;*.info;mail.none        /var/adm/syslog/syslog.log&lt;BR /&gt;*.alert                 /dev/console&lt;BR /&gt;*.alert                 root&lt;BR /&gt;*.emerg                 *&lt;BR /&gt;&lt;BR /&gt;So to redirect to another mailbox somewhere you need to modify your /etc/mail/aliases file and point root to &lt;USER&gt;, then run newaliases. Now when a filesystem fills up you will get an email to root.&lt;BR /&gt;&lt;/USER&gt;</description>
      <pubDate>Fri, 07 Sep 2001 09:43:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/email-notification-from-syslog-conf/m-p/2576865#M858910</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2001-09-07T09:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: email notification from syslog.conf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/email-notification-from-syslog-conf/m-p/2576866#M858911</link>
      <description>I tried to reply to this once already, but something appears to have happened to my reply.&lt;BR /&gt;&lt;BR /&gt;Basically, I need to be able to receive the email notifications to my personal emails as opposed to getting them forward by a .forward file or an email alias.  I do not want to receive all of root's email, only critical system errors from the syslogd (syslog.conf) when appropriate (such as a "failed" disk drive on my RAID array).  As you know, with audit-logging turned on, a failed drive will automatically be rebuilt and the system will continue as normal.  If you do not replace the failed drive (because you were not aware of it being bad), you potentially could lose your entire RAID array file system if a second drive were to go bad.  This is my objective.&lt;BR /&gt;&lt;BR /&gt;Thanks again.</description>
      <pubDate>Fri, 07 Sep 2001 11:44:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/email-notification-from-syslog-conf/m-p/2576866#M858911</guid>
      <dc:creator>Jim Wolff</dc:creator>
      <dc:date>2001-09-07T11:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: email notification from syslog.conf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/email-notification-from-syslog-conf/m-p/2576867#M858912</link>
      <description>Hello Jim,&lt;BR /&gt;&lt;BR /&gt;there are other "syslogd" version having the additional&lt;BR /&gt;feature of "| cmd" in their "syslog.conf" files, but not on&lt;BR /&gt;HPUX, though...&lt;BR /&gt;What you could do, is to have an additional line like&lt;BR /&gt;&lt;BR /&gt;*.alert    /var/adm/emailpipe&lt;BR /&gt;&lt;BR /&gt;where "/var/adm/emailpipe" is created with the command&lt;BR /&gt;mknod /var/adm/emailpipe p&lt;BR /&gt;&lt;BR /&gt;and has permissions like root:sys:600, to be careful.&lt;BR /&gt;&lt;BR /&gt;Then you create an "rc" script to run the following&lt;BR /&gt;script in the background:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;trap "" 1 2 3 # block simple signals&lt;BR /&gt;while read message # ok, each line becomes an e-mail&lt;BR /&gt;do echo "$message" |&lt;BR /&gt;    mailx -s"msg from syslog" YOU@YOUR-MAIL-SERVER&lt;BR /&gt;done &amp;lt; /var/adm/emailpipe&lt;BR /&gt;# end of script&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Wodisch</description>
      <pubDate>Mon, 10 Sep 2001 19:59:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/email-notification-from-syslog-conf/m-p/2576867#M858912</guid>
      <dc:creator>Wodisch</dc:creator>
      <dc:date>2001-09-10T19:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: email notification from syslog.conf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/email-notification-from-syslog-conf/m-p/2576868#M858913</link>
      <description>Hi Jim,&lt;BR /&gt;&lt;BR /&gt;You could install EMS Hardware monitors which are part of the OnlineDiagnostics (can be obtained free of charge from &lt;BR /&gt;&lt;A href="http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=B6191AAE" target="_blank"&gt;http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=B6191AAE&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;For more information on EMS, check the doc&lt;BR /&gt;&lt;A href="http://docs.hp.com/hpux/pdf/B6191-90028.pdf" target="_blank"&gt;http://docs.hp.com/hpux/pdf/B6191-90028.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Release notes for STM can be found at&lt;BR /&gt;&lt;A href="http://docs.hp.com/hpux/onlinedocs/diag/stm/stm_rel.htm" target="_blank"&gt;http://docs.hp.com/hpux/onlinedocs/diag/stm/stm_rel.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Once you install the diagnostics/support tools, you can use monconfig to modify/add monitors and enable the kind of errors(warning,major,serious,criticall) and the kind of notification (syslog, email) and the user to whom the email is to be sent. Depending on your configuration only critical emails(pertaining to hardware failures) can be sent to your email address.&lt;BR /&gt;This way you don't need to write additional scripts to parse log files.&lt;BR /&gt;&lt;BR /&gt;-HTH&lt;BR /&gt;Ramesh</description>
      <pubDate>Tue, 11 Sep 2001 05:11:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/email-notification-from-syslog-conf/m-p/2576868#M858913</guid>
      <dc:creator>linuxfan</dc:creator>
      <dc:date>2001-09-11T05:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: email notification from syslog.conf</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/email-notification-from-syslog-conf/m-p/2576869#M858914</link>
      <description>Hi Jim,&lt;BR /&gt;&lt;BR /&gt;Although you can set up syslog to do this &lt;BR /&gt;type of thing, I agree with Ramesh in that&lt;BR /&gt;installing EMS is the way to go. The product&lt;BR /&gt;is easy to install and configure, with the&lt;BR /&gt;products emphasis on hardware monitoring. &lt;BR /&gt;You can also find it on the Application CD&lt;BR /&gt;set as well as downloading.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;-Michael</description>
      <pubDate>Tue, 11 Sep 2001 05:31:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/email-notification-from-syslog-conf/m-p/2576869#M858914</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2001-09-11T05:31:05Z</dc:date>
    </item>
  </channel>
</rss>

