summaryrefslogtreecommitdiff
path: root/nagios-check-raid-3ware
diff options
context:
space:
mode:
Diffstat (limited to 'nagios-check-raid-3ware')
-rwxr-xr-xnagios-check-raid-3ware6
1 files changed, 4 insertions, 2 deletions
diff --git a/nagios-check-raid-3ware b/nagios-check-raid-3ware
index c81d5e7..1a23988 100755
--- a/nagios-check-raid-3ware
+++ b/nagios-check-raid-3ware
@@ -15,8 +15,10 @@ $ENV{'PATH'} = '/bin:/sbin:/usr/bin:/usr/sbin';
delete @ENV{'IFS', 'CDPATH', 'ENV', 'BASH_ENV'};
my $TW_CLI = '/usr/local/bin/tw_cli';
-my $SVN_REVISION = '$Rev$';
-my $VERSION = '0.0.0';
+my $SVN_REVISION_STRING = '$Rev$';
+my $SVN_REVISION = $SVN_REVISION =~ /([0-9]+)/;
+ $SVN_REVISION = 'unknown' unless defined $SVN_REVISION;
+my $VERSION = '0.0.0.'.$SVN_REVISION;
# nagios exit codes
my $UNKNOWN = -1;