check_file_age

Hi,

I’m having problems running this plugin, it always gives a critical no matter what options I use…

I want to monitor a file on it’s size, if its 25bytes or smaller give a warning, if its 1 byte or 0 critical.

./check_file_age -W 25 -C 1 -f …/…/blaat/license/blaat.cfg
CRITICAL - …/…/xubimail/license/confxwb.dat is 2205 seconds old and 72 bytes

any idea’s ?

Yer, the check has some default file-ages configured and that’ll be causing the OR statement to throw the CRITICAL alert at you.
edit the file as below:
change
[blockquote]
$opt_w = 240;
$opt_c = 600;
$opt_W = 0;
$opt_C = 0;
[/blockquote]
to
[blockquote]$opt_w = 0;
$opt_c = 0;
$opt_W = 0;
$opt_C = 0;[/blockquote]
HTH

/S

it works like a charm now, thx !