=================================================================== RCS file: /cvs/nagios/check_rrd/bin/average_rrd,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- nagios/check_rrd/bin/average_rrd 2006/05/08 23:22:19 1.2 +++ nagios/check_rrd/bin/average_rrd 2006/11/07 19:55:30 1.3 @@ -1,5 +1,5 @@ #!/usr/bin/perl -T -# $RedRiver: average_rrd,v 1.1 2006/05/08 19:52:53 andrew Exp $ +# $RedRiver: average_rrd,v 1.2 2006/05/08 22:22:19 andrew Exp $ use strict; use warnings; @@ -8,7 +8,9 @@ use constant VERBOSE => 0; -my $file = shift || '/var/www/wstationinfo/rrlhcwap3056/rrlhcwap3056-id_6-RSSI.rrd'; +my $file = shift || 'test.rrd'; + +die "File '$file' does not exist!" unless -e $file; my %TIMES = ( FIVE_MINUTES => 5 * 60,