[Nagiosplug-devel] [ nagiosplug-Bugs-1250967 ] broken awk script subst.in
SourceForge.net
noreply at sourceforge.net
Tue Jun 5 14:07:09 CEST 2007
Bugs item #1250967, was opened at 2005-08-03 13:53
Message generated for change (Comment added) made by psychotrahe
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1250967&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: Parsing problem
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: nsturm (nsturm)
Assigned to: Nobody/Anonymous (nobody)
Summary: broken awk script subst.in
Initial Comment:
The script plugins-scripts/subst.in does things in the wrong order
resulting in broken pathnames. As an example look at check_rpc.pl.
First "use lib utils.pm;" is substituted by the full path name to utils.pm,
but then the first name component is stripped off again (at least on
OpenBSD where /usr/local/libexec/nagios/utils.pm becomes just
nagios/utils.pm)
This is on OpenBSD-current with plugins 1.4 and 1.4.1. Diff attached.
----------------------------------------------------------------------
>Comment By: Matthias Eble (psychotrahe)
Date: 2007-06-05 14:07
Message:
Logged In: YES
user_id=1694341
Originator: NO
Hi all,
I have tried to reproduce this case on freebsd 6.2. But the lines were
substituted correctly.
use lib PREFIX/libexec
use utils (...
I tried 1.4.1, 1.4.3 and 1.4.5. Could you please test if this issue
perstists with the latest version (1.4.9 or cvs snapshot)?
Matthias
----------------------------------------------------------------------
Comment By: Olexandr Davydenko (blackraven1977)
Date: 2006-12-08 20:48
Message:
Logged In: YES
user_id=1526665
Originator: NO
Similar problem on FreeBSD 6.2-RC1 and nagios-plugins-1.4.5 .
For example: in nagios-plugins-1.4.3 string in check_mailq.pl "use lib
utils.pm;" substituted with full path in installed check_mailq "use lib
"/usr/local/libexec/nagios";", but in nagios-plugins-1.4.5 it substituted
as "use lib "nagios";" and check_mailq plugin cannot find utils.pm .
Patch patch-plugins-scripts_subst_in fix this.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1250967&group_id=29880
More information about the Devel
mailing list