[Nagiosplug-devel] [ nagiosplug-Bugs-853461 ] check_flexlm always reports OK

SourceForge.net noreply at sourceforge.net
Tue Nov 23 16:53:07 CET 2004


Bugs item #853461, was opened at 2003-12-03 18:15
Message generated for change (Comment added) made by tonvoon
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=853461&group_id=29880

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nico Kadel-Garcia (nkadel)
Assigned to: Stanley Hopcroft (stanleyhopcroft)
Summary: check_flexlm always reports OK

Initial Comment:
Under nagios 1.1, nagios-plugins-1.4.0alpha1 on RedHat 
9. the return result of the check_flexlm has no effect on 
nagios results. Turning off a license server entirely 
shows no failure in Nagios, with or without the patches 
I've been working on to more correctly report down 
servers.

Here's the output of the old check_flexlm:


 ./check_flexlm  -F /usr/local/flexlm/licenses/license.dat
License Servers NOT running:lmgrd is not running: 
Cannot connect to license server (-15,570
|flexlm::up:0;down:1

The new one that I've modified to better report quorum 
license servers also has the same result. But it just 
doesn't show up in Nagios as being down at all, and I 
don't understand the details of Nagios handling of 
the "$ERRORS" enough to debug it myself without 
investing a bunch of time.


----------------------------------------------------------------------

>Comment By: Ton Voon (tonvoon)
Date: 2004-11-24 00:52

Message:
Logged In: YES 
user_id=664364

Moving to Bugs tracker as Support Requests will be closed.

----------------------------------------------------------------------

Comment By: Stanley Hopcroft (stanleyhopcroft)
Date: 2004-11-23 09:01

Message:
Logged In: YES 
user_id=395628

It appears that this plugin is the subject of
enhancements/corrections by nkadel.

Will wait to hear from NKadel.

----------------------------------------------------------------------

Comment By: Nico Kadel-Garcia (nkadel)
Date: 2003-12-11 15:52

Message:
Logged In: YES 
user_id=923047

I'm sorry, this should have been submitted by me as a bug.

In any case, the problem is a mis-parsing by the
check_flexlm.pl script of services.cfg entries that have a
'%' in filename (there was a typo there), and the results
not showing up in the check_flexlm.pl output due to Perl
style mis-handling of that character.

I'm modifying my copy of it to actually check for the
existence of an openable license file before passing off the
arguments to the lmstat command, which should deal with the
problem.

----------------------------------------------------------------------

Comment By: Nico Kadel-Garcia (nkadel)
Date: 2003-12-11 15:33

Message:
Logged In: YES 
user_id=923047

This should have been put in as a bug report, not a feature
request. My apologies.

It turns out that if you have a '%' on the end of the
filename in for the check_flexlm service test in
services.cfg, the check_flexlm.pl does not detect or parse
it or the flexlm error messages correctly. The '%' gets
interpreted at various points by the Perl parser itself,
which leads to the confusion.

I'm working on some other new features, such as testing for
the existence of the license file in the check_flexlm.pl
itself and more correctly parsing lines that have multiple
':' characters in them, and will submit it when done.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=853461&group_id=29880




More information about the Devel mailing list