[ nagiosplug-Bugs-3552862 ] add --with-lmstat-command to configure

SourceForge.net <[email protected]>
Newsgroups gmane.network.nagios.plugins.devel
Message-ID <[email protected]>
Bugs item #3552862, was opened at 2012-07-31 16:34
Message generated for change (Tracker Item Submitted) made by calestyo
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=3552862&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Cálestyo (calestyo)
Assigned to: Nobody/Anonymous (nobody)
Summary: add --with-lmstat-command to configure 

Initial Comment:
Hi.

This is from the old / soon to be disabled again Nagios Plugins bug tracker that used to be at Nagios itself.
I've just copied this bug over. I'm not the original reporter and have no idea about the thoughts about this bug.

This used to be: http://tracker.nagios.org/view.php?id=122
--------------------------------------------------------------------------------
authority:
--------------------------------------------------------------------------------
Just upgraded nagios-plugins to 1.4.14.

The configure script has numerous options for specifying the location of various commands that may be used by the plugins.

The check_flexlm script makes use of the lmstat binary, specified in the utils.pm library, but the value is empty, which caused some minor breakage during my upgrade.

It appears that @PATH_TO_LMSTAT@ is a macro that could be used to expand to the correct value if the path to lmstat was supplied or automatically detected. I don't expect any sort of logic could find the lmstat binary on my system (and it's not in my build user's path), so some means of supplying the value should be added, presumably during the configure. 



[nagios@enigma nagios-plugins-1.4.14]$ grep -R PATH_TO_LMSTAT *
config.h:/* #undef PATH_TO_LMSTAT */
config.h.in:#undef PATH_TO_LMSTAT
config.log:PATH_TO_LMSTAT=''
config.status:s,@PATH_TO_LMSTAT@,|#_!!_#|,g
configure:PATH_TO_LMSTAT
configure:if test "${ac_cv_path_PATH_TO_LMSTAT+set}" = set; then
configure: case $PATH_TO_LMSTAT in
configure: ac_cv_path_PATH_TO_LMSTAT="$PATH_TO_LMSTAT" # Let the user override the test with a path.
configure: ac_cv_path_PATH_TO_LMSTAT="$as_dir/$ac_word$ac_exec_ext"
configure:PATH_TO_LMSTAT=$ac_cv_path_PATH_TO_LMSTAT
configure:if test -n "$PATH_TO_LMSTAT"; then
configure: { echo "$as_me:$LINENO: result: $PATH_TO_LMSTAT" >&5
configure:echo "${ECHO_T}$PATH_TO_LMSTAT" >&6; }
configure:if test -x "$PATH_TO_LMSTAT"
configure:#define PATH_TO_LMSTAT "$PATH_TO_LMSTAT"
configure:PATH_TO_LMSTAT!$PATH_TO_LMSTAT$ac_delim
configure.in:AC_PATH_PROG(PATH_TO_LMSTAT,lmstat)
configure.in:if test -x "$PATH_TO_LMSTAT"
configure.in: AC_DEFINE_UNQUOTED(PATH_TO_LMSTAT,"$PATH_TO_LMSTAT",[path to lmstat])
gl/Makefile.in:PATH_TO_LMSTAT = @PATH_TO_LMSTAT@
gl/Makefile:PATH_TO_LMSTAT =
lib/Makefile.in:PATH_TO_LMSTAT = @PATH_TO_LMSTAT@
lib/tests/Makefile.in:PATH_TO_LMSTAT = @PATH_TO_LMSTAT@
lib/tests/Makefile:PATH_TO_LMSTAT =
lib/Makefile:PATH_TO_LMSTAT =
Makefile:PATH_TO_LMSTAT =
Makefile.in:PATH_TO_LMSTAT = @PATH_TO_LMSTAT@
perlmods/Makefile.in:PATH_TO_LMSTAT = @PATH_TO_LMSTAT@
perlmods/Makefile:PATH_TO_LMSTAT =
plugins/Makefile.in:PATH_TO_LMSTAT = @PATH_TO_LMSTAT@
plugins/Makefile:PATH_TO_LMSTAT =
plugins-root/Makefile.in:PATH_TO_LMSTAT = @PATH_TO_LMSTAT@
plugins-root/Makefile:PATH_TO_LMSTAT =
plugins-scripts/Makefile.in:PATH_TO_LMSTAT = @PATH_TO_LMSTAT@
plugins-scripts/utils.pm.in:$PATH_TO_LMSTAT = "@PATH_TO_LMSTAT@" ;
plugins-scripts/check_flexlm.pl:my $lmstat = $utils::PATH_TO_LMSTAT ;
plugins-scripts/Makefile:PATH_TO_LMSTAT =
plugins-scripts/utils.pm:$PATH_TO_LMSTAT = "" ;
plugins-scripts/check_flexlm:my $lmstat = $utils::PATH_TO_LMSTAT ;
tap/Makefile.in:PATH_TO_LMSTAT = @PATH_TO_LMSTAT@
tap/Makefile:PATH_TO_LMSTAT = 

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

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

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________________
Nagios Plugin Development Mailing List [email protected]
Unsubscribe at https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
::: Please include plugins version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.