Hi Henrik,
thanks for the answer.
That was the problem. I was suffering from the usual admin problem that there was more blood than coffee running through my veins. :-/
Can I also do something like
FILE /some/filename yellow SIZE<50M SIZE>10M
when the file should be between 10 and 50 MB?
Regards
Torsten
On Wed, Sep 13, 2006 at 10:43:02AM +0200, Torsten Richter wrote:
I want to check if /var/adm/wtmpx is smaller than 50 MB.
I've added
FILE yellow /var/adm/wtmpx SIZE<50M TRACK=wtmp
According to the man-page:
FILE filename [color] [things to check] [TRACK]
so it should be
FILE /var/adm/wtmpx yellow SIZE<50M TRACK=wtmp
(your example is a definition for a file called "yellow".
Regards,
Henrik