Bug 199890

Summary: Wrong libpath in perl based plugins
Product: [Fedora] Fedora Reporter: Roy-Magne Mo <rmo>
Component: nagios-pluginsAssignee: Mike McGrath <imlinux>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 5CC: extras-qa
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-07-24 02:18:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch to remove some unneeded functionality none

Description Roy-Magne Mo 2006-07-24 01:59:10 UTC
Description of problem:
The script subst, which is a awk script, messes up just substitued lib path

Version-Release number of selected component (if applicable):
nagios-plugins-1.4.3-12.fc5

How reproducible:
always

Steps to Reproduce:
1.
2.
3.
  
Actual results:
the full path in seems to be cut short

Expected results:
to see the full path to the directory where utils.pm is

Additional info:
You'll find that debian has a similar approach at
http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/2005-September/001035.html

Comment 1 Roy-Magne Mo 2006-07-24 01:59:10 UTC
Created attachment 132893 [details]
patch to remove some unneeded functionality

Comment 2 Mike McGrath 2006-07-24 02:06:24 UTC
I'm not quite following what the issue is.  Are Nagios plugins failing or
returning bad results as a result of this?  If so which scripts?  

Comment 3 Roy-Magne Mo 2006-07-24 02:13:26 UTC
If you for example look at the subpackage nagios-plugins-breeze, you'll find a
"use lib" line like this:
use lib "nagios/plugins" ;

For embperl to function, you'll have to have a complete path to the directory
where utils.pm is kept, which is /usr/lib/nagios/plugins (at least on 32 bit
systems). This correct replacement is supposed to happen in the subst
awk-script, but the part I commented out seems to mess things up.

The way it is now, the perl script can't compile because it can't find utils.pm

Comment 4 Mike McGrath 2006-07-24 02:18:06 UTC
Got'cha.  This has been reported but not yet fixed.  Please see but #196356 for
more information.  I'm hoping to fix this very soon.  Thanks for reporting it.

*** This bug has been marked as a duplicate of 196356 ***