[Nagiosplug-checkins] CVS: nagiosplug/plugins-scripts check_flexlm.pl,1.3,1.4

Subhendu Ghosh sghosh at users.sourceforge.net
Wed Jun 5 21:15:02 CEST 2002


Update of /cvsroot/nagiosplug/nagiosplug/plugins-scripts
In directory usw-pr-cvs1:/tmp/cvs-serv30067

Modified Files:
	check_flexlm.pl 
Log Message:
conditional on lmstat

Index: check_flexlm.pl
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins-scripts/check_flexlm.pl,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** check_flexlm.pl	7 May 2002 05:35:49 -0000	1.3
--- check_flexlm.pl	6 Jun 2002 04:14:06 -0000	1.4
***************
*** 1,3 ****
! #! /usr/bin/perl -wT
  #
  # usage: 
--- 1,3 ----
! #! /usr/bin/perl -w
  #
  # usage: 
***************
*** 67,71 ****
  alarm($TIMEOUT);
  
! my $lmstat = "/opt/lic/sw/cadadm/default/bin/lmstat";
  
  ($opt_F) || ($opt_F = shift) || usage("License file not specified\n");
--- 67,75 ----
  alarm($TIMEOUT);
  
! 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");





More information about the Commits mailing list