[Nagiosplug-devel] [ nagiosplug-Bugs-1250967 ] broken awk script subst.in

SourceForge.net noreply at sourceforge.net
Fri Dec 8 20:48:01 CET 2006


Bugs item #1250967, was opened at 2005-08-03 14:53
Message generated for change (Comment added) made by blackraven1977
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: Olexandr Davydenko (blackraven1977)
Date: 2006-12-08 21: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