diff options
author | Subhendu Ghosh <sghosh@users.sourceforge.net> | 2002-06-06 04:14:06 +0000 |
---|---|---|
committer | Subhendu Ghosh <sghosh@users.sourceforge.net> | 2002-06-06 04:14:06 +0000 |
commit | 9388f9494f5089f9e6e0ff267e742ca6acac20bc (patch) | |
tree | 0e45bd0bac7dc8abae10a070ef26c2224cfcfdf5 | |
parent | 5499b8915e168a97a3f867749bb25a1374c4f06a (diff) | |
download | monitoring-plugins-9388f9494f5089f9e6e0ff267e742ca6acac20bc.tar.gz |
conditional on lmstat
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@44 f882894a-f735-0410-b71e-b25c423dba1c
-rwxr-xr-x | plugins-scripts/check_flexlm.pl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins-scripts/check_flexlm.pl b/plugins-scripts/check_flexlm.pl index 6bda29bd..0f7ab6e8 100755 --- a/plugins-scripts/check_flexlm.pl +++ b/plugins-scripts/check_flexlm.pl | |||
@@ -1,4 +1,4 @@ | |||
1 | #! /usr/bin/perl -wT | 1 | #! /usr/bin/perl -w |
2 | # | 2 | # |
3 | # usage: | 3 | # usage: |
4 | # check_flexlm.pl license_file | 4 | # check_flexlm.pl license_file |
@@ -66,7 +66,11 @@ $SIG{'ALRM'} = sub { | |||
66 | }; | 66 | }; |
67 | alarm($TIMEOUT); | 67 | alarm($TIMEOUT); |
68 | 68 | ||
69 | my $lmstat = "/opt/lic/sw/cadadm/default/bin/lmstat"; | 69 | my $lmstat = $utils::PATH_TO_LMSTAT ; |
70 | unless (-x $lmstat ) { | ||
71 | print "Cannot find \"lmstat\"\n"; | ||
72 | exit $ERRORS{'UNKNOWN'}; | ||
73 | } | ||
70 | 74 | ||
71 | ($opt_F) || ($opt_F = shift) || usage("License file not specified\n"); | 75 | ($opt_F) || ($opt_F = shift) || usage("License file not specified\n"); |
72 | my $licfile = $1 if ($opt_F =~ /^(.*)$/); | 76 | my $licfile = $1 if ($opt_F =~ /^(.*)$/); |