procmail
[Top] [All Lists]

Re: dynamci filters

2008-08-15 16:12:30
1. 1st Problem email received


- It creates the tempfile but does not forward to pager.  

Test your sendmail op in procmail.  Does "! address(_at_)domain(_dot_)dom"
work?

Dallman


Yes the catch-all at the end of .procmailrc works.

# Forward the rest to pager
:0
! pager(_at_)domain(_dot_)com

-george



Here's my procmail log as this has progressed.

From nagios(_at_)domain(_dot_)dom Thu Aug 14 16:42:27 2008
 Subject: PROBLEM alert - server123 is CRITICAL
  Folder: /usr/lib/sendmail -oi pager(_at_)domain(_dot_)dom        2071
procmail: Extraneous ignore-write-error flag ignored
procmail: Skipped "* ? test ! -e $tempfile"
procmail: Skipped "| touch $tempfile"
From nagios(_at_)domain(_dot_)dom Thu Aug 14 16:47:34 2008
 Subject: PROBLEM alert - server123 is CRITICAL
  Folder: /usr/lib/sendmail -oi pager(_at_)domain(_dot_)dom        2084
procmail: Skipped "* ? test ! -e $tempfile"
procmail: Skipped "| touch $tempfile"
From nagios(_at_)domain(_dot_)dom Thu Aug 14 16:48:27 2008
 Subject: PROBLEM alert - server123 is CRITICAL
  Folder: /usr/lib/sendmail -oi pager(_at_)domain(_dot_)dom        2084
From nagios(_at_)domain(_dot_)dom Thu Aug 14 16:55:54 2008
 Subject: PROBLEM alert - server123 is CRITICAL
  Folder: touch /home/user/nopager                      2136
From nagios(_at_)domain(_dot_)dom Thu Aug 14 16:59:12 2008
 Subject: PROBLEM alert - server123 is CRITICAL
  Folder: /usr/lib/sendmail -oi nagios(_at_)domain(_dot_)dom       2072
From nagios(_at_)domain(_dot_)dom Thu Aug 14 17:09:40 2008
 Subject: RECOVERY alert - server123 is OK
  Folder: rm -f /home/user/nopager                      2126
From nagios(_at_)domain(_dot_)dom Fri Aug 15 15:49:42 2008
 Subject: heloooo
  Folder: /usr/lib/sendmail -oi pager(_at_)domain(_dot_)dom        2059

As you can see when a shell command is executed, the following forward action 
does not happen.

-george



      
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>