Re: Alert if file contents are greater than 40

2013-01-10 Thread Callum Macdonald
Hi Jenny, Have you considered having monit measure the program's memory usage? I think this line of the manual may be relevant to your situation: On startup the read position is set to the end of the file and monit continue to scan to the end of file on each cycle. But if the file size should

Re: Alert if file contents are greater than 40

2013-01-10 Thread Dimitri Yioulos
On Thursday 10 January 2013 4:24:27 pm Jenny Hopkins wrote: > Hullo, > > I've been having an issue with memory hungry programs so > have written a script that takes a user and program > params and stuffs the memory usage into a file as an > integer. This is run by cron every ten minutes. > I want m

Alert if file contents are greater than 40

2013-01-10 Thread Jenny Hopkins
Hullo, I've been having an issue with memory hungry programs so have written a script that takes a user and program params and stuffs the memory usage into a file as an integer. This is run by cron every ten minutes. I want monit to keep an eye on the file contents and alert if it exceeds a certai