Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"call home" script sends repetitive msgs to pager/email 1

Status
Not open for further replies.

tbenn

IS-IT--Management
Nov 22, 2004
9
US
I have a "call home" script that detects an
errpt -a -1 -"Error on Hostname" type of entry into file errpt.dta and sends a copy of that file to a Qmail Server in a mailer.dta file.

Here's my problem - If a hardware error occurs in the "errpt" on ClientA the email is sent as it should to the Qmail Server - however, if the problem isn't resolved and the "monitoring" happens again - the repetitive message is sent to the Qmail Server.

How can we disseminate an actual "new, real" error from the "old, repeated" error? For instance, if a system has ssa disks and one of the disks fail - the error is reported, the cron tests again for any new messages and again sees the pdisk failure - We need a way to ignore that "old, repeated" message and only send a "new, real" error message if one exists.

I checked the FAQs and other posts but nothing seems to address this.

I can furnish all or parts of the script(s) if you need.
 
Have you tried errpt -D? (consolidate duplicate errors)

I guess you also need to keep a list of 'already emailed' errpt problems (per day?) and with this info filter out any errpt problems before emailing them.


HTH,

p5wizard
 
Hi,

use errpt -s switch. It can permit to get errors after a start time.


man errpt
...
-s StartDate Specifies all records posted on and after the StartDate variable,where the StartDate variable has the format mmddhhmmyy (month, day, hour,minute, and year).
...

Regards
 
Instead of scanning the error log, you can have the errdaemon notify you itself. There's more information and an example that sends an email on each permanent disk error here.

Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top