FW: Correct Syntax for check_flexlm (fwd)

Rice, Clifford E. CERice at MarathonOil.com
Mon Feb 3 20:34:22 CET 2003


> -----Original Message-----
> From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG]
> Sent: Monday, February 03, 2003 10:48 AM
> To: Rice, Clifford E.
> Cc: 'Subhendu Ghosh'; 'nagios-users at lists.sourceforge.net'
> Subject: RE: FW: [Nagios-users] Correct Syntax for check_flexlm (fwd)


>Cliff, Subhendu 

> I installed and configured the check_flexlm script that you had sent. Thanks by
> the way.
> The error message I am encountering is Return Code of 99 is out of bounds.
> Any ideas?

Gives these things a try.

1. run the lmstat as defined in your utils.pm file or check_flexlm and see what the
output is.

2. It should match the output which I had in some of the comments in the code I submitted.

3. Feel free to send a copy of the license file to me,  you can delete everything except the
SERVER, DAEMON, and 1 or 2 features.  I don't need to know everything you are running if that
is a problem.

4. The platform and perl version may be of some help as well.

I have perl -version : 5.005_03 built for Sun Solaris.

Solaris OS version is 2.8



> Cliff

> The logic is the same from the script that you submitted.  I moved a 
> couple of vars around, updated for ePN, and got the setting for lmstat 
> from the initial configure process. Also the oputput now prints the list 
> of servers up and down. 


You are correct.  I just didn't look far enough past the comments.  It appears I'm
also out of sync wrt the version.  I had to hack my utils.pm to get the version you 
have to work.  So which version should I use to get with the program?
(I can convert the backup Nagios server to the new release and test from there. )

After hacking my utils.pm,  I get the output of License Servers running: houuam,houual,houuan"
                                                |flexlm:up:3down:0

when I run the script by hand.  I assume this is valid.

The hack was to add a line: $PATH_TO_LMSTAT = "/usr/local/flexlm/daemons/lmstat" ;
after the line $TIMEOUT = 15;



> Going over the script reminded me that it doesn't check for vendor daemon 
> status, just flexlm. Perhaps we can tackle this after 1.3 is released.


I agree, flexlm can be running , while the vendor daemons are dead.  This has happened.
At least at Marathon, we could be more proactive in keeping our software going.

---Cliff


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com




More information about the Users mailing list