It is currently 22 Nov 2017 1:54


Post new topic  Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Filewatcher not working
PostPosted: 28 Mar 2013 12:41 
Offline
Nouveau
Nouveau
User avatar

Joined: 28 Mar 2013 12:00
Posts: 1
I have a filewatcher job that sends a shout for a zero byte file. Recently, it has stopped giving shouts for any zero byte file.

Below is the rulefile:-
INTERVAL 10 # Sleep interval (seconds)

MIN_SIZE 0 # Minimum size for all files (bytes)

MIN_DETECT 3 # Number of iterations for all files

WAIT_TIME 540 # Time limit for all files (minutes)

# ON_FILEWATCH statements

ON_FILEWATCH filename1.<ddmmyyyy>.ctl

ON_FILEWATCH filename2.<ddmmyyyy>.ctl

ON_FILEWATCH filename2.<ddmmyyyy>

ON_FILEWATCH filename1.<ddmmyyyy> CREATE 1

THEN

DO_OK

ELSE

DO_CMD ctmshout -USER ECS -MESSAGE "Zero byte file sent. Please send correct file and remove zero-byte file."

DO_NOTOK

END_ON


Below is how it is running:-

set MIN_DETECT=3
set WAIT_TIME=32400
ctmfw: command line 'ON_FILEWATCH filename1.<ddmmyyyy>.ctl'(arg#=2). id=1.
ctmfw: command line 'ON_FILEWATCHfilename2.<ddmmyyyy>.ctl'(arg#=2). id=2.
ctmfw: command line 'ON_FILEWATCH filename2.<ddmmyyyy>'(arg#=2). id=3.
ctmfw: command line 'ON_FILEWATCH filename1.<ddmmyyyy> CREATE 1'(arg#=4). id=4.
DO command ' THEN' was issued before THEN/ELSE statement.
DO command ' DO_OK' was issued before THEN/ELSE statement.
DO command ' ELSE' was issued before THEN/ELSE statement.
DO command ' DO_CMD ctmshout -USER ECS -MESSAGE "Napoli have sent zero-byte position file, please alert Napoli to send the correct file and remove zero-byte file. Rerun SOD filewatcher"' was issued before THEN/ELSE statement.
DO command ' DO_NOTOK' was issued before THEN/ELSE statement.
DO command ' END_ON' was issued before THEN/ELSE statement.
File 'filename1.<ddmmyyyy>.ctl' exists, it's current size is 0 bytes . id=1.
File 'filename2.<ddmmyyyy>.ctl' exists, it's current size is 0 bytes . id=2.
File 'filename2.<ddmmyyyy>' exists, it's current size is 2161 bytes . id=3.
File transfer was completed. The size of file '/filename1.<ddmmyyyy>.ctl' is 0 bytes. id=1. Modified 27/03/2013 04:00
File transfer was completed. The size of file 'filename2.<ddmmyyyy>.ctl' is 0 bytes. id=2. Modified 27/03/2013 04:02
File transfer was completed. The size of file 'filename2.<ddmmyyyy>' is 2161 bytes. id=3. Modified 27/03/2013 04:02
File '/filename1.<ddmmyyyy>' exists, it's current size is 76305 bytes . id=4.
File 'filename1.<ddmmyyyy>' has reached the minimum size of 1 bytes. size=76305 bytes id=4.
File transfer was completed. The size of file 'filenam12.<ddmmyyyy>7' is 76305 bytes. id=4. Modified 27/03/2013 15:28
Finished to monitor all entries in file watcher list.


I'm not sure what might be going wrong here?

Thanks in advance...


Top
   
 Post subject:
PostPosted: 04 Apr 2013 4:37 
Offline
Nouveau
Nouveau
User avatar

Joined: 14 Jan 2010 12:00
Posts: 58
Hi,

What version/patch level is the agent?

Did anything change? rules file? environment? recent patches?


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited
The site created by Franck YOT. Images, logo, content and trademarks about Control-M products are property of BMC Software.
All the comments are property of their posters. Images, logo, content and design are © copyright by Scheduler-Usage.com. All Rights Reserved