WatchDirectory home page
WatchDirectory Startseite (Deutsche Version)
Site WatchDirectory (Français)
  Welcome, Guest. Please Login or Register
YaBB - Yet another Bulletin Board
   
  HomeHelpSearchLoginRegister  
 
Page Index Toggle Pages: 1
File Age Method  - Not sending email (Read 6033 times)
mtrover
YaBB Newbies
*
Offline



Posts: 6
File Age Method  - Not sending email
Nov 2nd, 2011 at 12:08am
 
I have a file age monitoring setup -- to trigger for files older than five minutes to send an email. 

I have DEBUG enabled and i get the email saying that "Debug is enabled."  So email is working.

Within the history viewer log file, on most of the files i got a message "*** file is old enough. Triggering event",  but i am not getting an email with the event.

Any suggestions would be welcome.

Thanks
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2225
The Netherlands
Re: File Age Method  - Not sending email
Reply #1 - Nov 2nd, 2011 at 9:12am
 
Hi,

The first thing to check is to see if the emails are prepared. When a task creates an email it is not send directly but written as a plain-text file in a directory monitored by System.Mail (the wdPostman program).

Right-click System.Mail and view its history. Each email sent by System.Mail should have an entry in the History database.
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
mtrover
YaBB Newbies
*
Offline



Posts: 6
Re: File Age Method  - Not sending email
Reply #2 - Nov 2nd, 2011 at 3:09pm
 
System.Mail is running with no events or error messages in history other than startup messages. Test emails work fine from email setup.

Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2225
The Netherlands
Re: File Age Method  - Not sending email
Reply #3 - Nov 2nd, 2011 at 3:19pm
 
If you right-click System.Mail and select "Explore ....." (some directory name), Windows Explorer opens the directory where ".wdmail" (and possibly ".wdmailcombine") files are written. Those are plain text files with emails waiting to be sent. If System.Mail is running properly, the directory should be empty most of the time.

There are 3 directories of interest:
...\System.Mail\Out - the directory described above
...\System.Mail\Sent - emails that are sent successfully
...\System.Mail\Fail - emails that could not be sent

You may also find *.log files which may contain more info why mail sending fails.

If all files end up in "Sent", it means System.Mail is running properly.
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
mtrover
YaBB Newbies
*
Offline



Posts: 6
Re: File Age Method  - Not sending email
Reply #4 - Nov 2nd, 2011 at 3:37pm
 
The only thing in the sent file directory is debug email messages that I am receiving when i start the task.

Gert: removed the attachment
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2225
The Netherlands
Re: File Age Method  - Not sending email
Reply #5 - Nov 2nd, 2011 at 3:38pm
 
Can you please enable debug, make sure it should have detected at least one file and send me a backup of the task.

See http://blog-en.gdpsoftware.com/2010/06/send-task-backup-to-support.html

Please EMAIL me the backup.
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
mtrover
YaBB Newbies
*
Offline



Posts: 6
Re: File Age Method  - Not sending email
Reply #6 - Nov 2nd, 2011 at 3:46pm
 
attached


Gert: removed attachment
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2225
The Netherlands
Re: File Age Method  - Not sending email
Reply #7 - Nov 2nd, 2011 at 3:54pm
 
Ok, I thought you were using the "Email" task, but you are in fact using the "Audit" task ( http://www.watchdirectory.net/wdhelp/plugins/wdopAuditInfo.html ).

It looks like you forgot to enable the email option, see picture.

Back to top
 

test.png (40 KB | )
test.png

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2225
The Netherlands
Re: File Age Method  - Not sending email
Reply #8 - Nov 2nd, 2011 at 4:15pm
 
By the way, I don't think saving files in the root of C:\ is a very good idea. Also, I think this is by default disabled on Win7 (which you are running, it seems).
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
mtrover
YaBB Newbies
*
Offline



Posts: 6
Re: File Age Method  - Not sending email
Reply #9 - Nov 2nd, 2011 at 4:22pm
 
I thought the email setting on the first screen was for some sort of audit file, not for notifications of files that meet the "old" criteria.

I had the email address setup under the "other" tab.    I guess i was hoping the alert would just send out an email with all the files that were too old. Looks like this generates an audit email like this:




File/Directory C:\Test\735am.txt
     from 11/2/2011 7:54:48 AM to 11/2/2011 8:40:47 AM [0] 11/2/2011 7:54:48 AM, Open File by DOMAIN\\mtrover. Program 0x2784. Computer 00-mtrover.CCS.NSP.
   Permissions requested Read_Control, Synchronize, ReadData (or List Directory), WriteData (or New File in directory), AppendData (or New Subdirectory), Read Extended Attributes, Write Extended Attributes, Read Attributes, Write Attributes [0] 11/2/2011 8:31:47 AM, Close [0] 11/2/2011 8:32:47 AM, Open File by DOMAIN\\mtrover. Program 0x750. Computer 00-mtrover.CCS.NSP.
   Permissions requested Read_Control, Synchronize, ReadData (or List Directory), WriteData (or New File in directory), AppendData (or New Subdirectory), Read Extended Attributes, Write Extended Attributes, Read Attributes, Write Attributes [0] 11/2/2011 8:32:47 AM, Close [0] 11/2/2011 8:33:47 AM, Open File by DOMAIN\\mtrover. Program 0x750. Computer 00-mtrover.CCS.NSP.
   Permissions requested Read_Control, Synchronize, ReadData (or List Directory), WriteData (or New File in directory), AppendData (or New Subdirectory), Read Extended Attributes, Write Extended Attributes, Read Attributes, Write Attributes [0] 11/2/2011 8:33:47 AM, Close [0] 11/2/2011 8:34:47 AM, Open File by DOMAIN\\mtrover. Program 0x750. Computer 00-mtrover.CCS.NSP.
   Permissions requested Read_Control, Synchronize, ReadData (or List Directory), WriteData (or New File in directory), AppendData (or New Subdirectory), Read Extended Attributes, Write Extended Attributes, Read Attributes, Write Attributes [0] 11/2/2011 8:34:47 AM, Close [0] 11/2/2011 8:35:47 AM, Open File by DOMAIN\\mtrover. Program 0x750. Computer 00-mtrover.CCS.NSP.
   Permissions requested Read_Control, Synchronize, ReadData (or List Directory), WriteData (or New File in directory), AppendData (or New Subdirectory), Read Extended Attributes, Write Extended Attributes, Read Attributes, Write Attributes [0] 11/2/2011 8:35:47 AM, Close [0] 11/2/2011 8:36:47 AM, Open File by DOMAIN\\mtrover. Program 0x750. Computer 00-mtrover.CCS.NSP.
   Permissions requested Read_Control, Synchronize, ReadData (or List Directory), WriteData (or New File in directory), AppendData (or New Subdirectory), Read Extended Attributes, Write Extended Attributes, Read Attributes, Write Attributes [0] 11/2/2011 8:36:47 AM, Close [0] 11/2/2011 8:37:47 AM, Open File by DOMAIN\\mtrover. Program 0x750. Computer 00-mtrover.CCS.NSP.
   Permissions requested Read_Control, Synchronize, ReadData (or List Directory), WriteData (or New File in directory), AppendData (or New Subdirectory), Read Extended Attributes, Write Extended Attributes, Read Attributes, Write Attributes [0] 11/2/2011 8:37:47 AM, Close [0] 11/2/2011 8:38:47 AM, Open File by DOMAIN\\mtrover. Program 0x750. Computer 00-mtrover.CCS.NSP.
   Permissions requested Read_Control, Synchronize, ReadData (or List Directory), WriteData (or New File in directory), AppendData (or New Subdirectory), Read Extended Attributes, Write Extended Attributes, Read Attributes, Write Attributes [0] 11/2/2011 8:38:47 AM, Close [0] 11/2/2011 8:39:47 AM, Open File by DOMAIN\\mtrover. Program 0x750. Computer 00-mtrover.CCS.NSP.
   Permissions requested Read_Control, Synchronize, ReadData (or List Directory), WriteData (or New File in directory), AppendData (or New Subdirectory), Read Extended Attributes, Write Extended Attributes, Read Attributes, Write Attributes [0] 11/2/2011 8:39:47 AM, Close [0] 11/2/2011 8:40:47 AM, Open File by DOMAIN\\mtrover. Program 0x750. Computer 00-mtrover.CCS.NSP.
   Permissions requested Read_Control, Synchronize, ReadData (or List Directory), WriteData (or New File in directory), AppendData (or New Subdirectory), Read Extended Attributes, Write Extended Attributes, Read Attributes, Write Attributes [0] 11/2/2011 8:40:47 AM, Close


Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2225
The Netherlands
Re: File Age Method  - Not sending email
Reply #10 - Nov 2nd, 2011 at 4:24pm
 
If you want a normal email that you can configure for each file you should use the Email task:
http://www.watchdirectory.net/wdhelp/plugins/wdopAutoEmail.html
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
mtrover
YaBB Newbies
*
Offline



Posts: 6
Re: File Age Method  - Not sending email
Reply #11 - Nov 2nd, 2011 at 5:35pm
 
Gotcha -- I switched to using the SendMail funtion.  Now i am making progress.

Appreciate the help.
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1