Filewatcher not working

All questions about Control-M jobs definitions
Post Reply
User avatar
rb1523
Nouveau
Nouveau
Posts: 1
Joined: 28 Mar 2013 12:00

Filewatcher not working

Post by rb1523 » 28 Mar 2013 12:41

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...

User avatar
jstarkw
Nouveau
Nouveau
Posts: 58
Joined: 14 Jan 2010 12:00

Post by jstarkw » 04 Apr 2013 4:37

Hi,

What version/patch level is the agent?

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

Post Reply