summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5499b89)
raw | patch | inline | side by side (parent: 5499b89)
author | Subhendu Ghosh <sghosh@users.sourceforge.net> | |
Thu, 6 Jun 2002 04:14:06 +0000 (04:14 +0000) | ||
committer | Subhendu Ghosh <sghosh@users.sourceforge.net> | |
Thu, 6 Jun 2002 04:14:06 +0000 (04:14 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@44 f882894a-f735-0410-b71e-b25c423dba1c
plugins-scripts/check_flexlm.pl | patch | blob | history |
index 6bda29bdb3eb13651214a3a9d02eeb03c4126b42..0f7ab6e8ea67b8e0360e2953a1c2413e568d8d97 100755 (executable)
-#! /usr/bin/perl -wT
+#! /usr/bin/perl -w
#
# usage:
# check_flexlm.pl license_file
};
alarm($TIMEOUT);
-my $lmstat = "/opt/lic/sw/cadadm/default/bin/lmstat";
+my $lmstat = $utils::PATH_TO_LMSTAT ;
+unless (-x $lmstat ) {
+ print "Cannot find \"lmstat\"\n";
+ exit $ERRORS{'UNKNOWN'};
+}
($opt_F) || ($opt_F = shift) || usage("License file not specified\n");
my $licfile = $1 if ($opt_F =~ /^(.*)$/);