check_file_age


#1

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 ?


#2

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


#3

it works like a charm now, thx !