[Pkg-nagios-devel] Bug#879084: 879084: more info, and three possible fixes
waja at cyconet.org
Sun Jan 20 15:05:08 GMT 2019
Am 15.01.19 um 02:18 schrieb Raphaël Halimi:
> It seems that quite a bunch of plugins should suffer from this problem;
> a quick grep on "use utils" in /usr/lib/nagios/plugins/ gives:
> To fix this bug without modifying every plugin, there are several solutions:
> The one which seems the cleanest would be to modify Icinga's ePN source
> code to add /usr/lib/nagios in @INC (since that's where utils.pm is
> actually provided by monitoring-plugins-common) or even replace
> /usr/lib/icinga, since this directory contains only a single file
> "p1.pl", whose path is (correctly) set in /etc/icinga/icinga.cfg. I
> don't know what /usr/lib/icinga is used for, since on my system it only
> contains p1.pl.
[...]> leak, so I decided to trust the package maintainers' choice and
> enabled, which brings us to the third solution: the quick and dirty
> workaround I used on my system to make the plugin(s) work, which is to
> simply symlink utils.pm in /usr/lib/icinga, so that ePN would find it in
> its @INC.
> Solution 1 may have unforeseen consequences, especially if you decide to
> replace /usr/lib/icinga in @INC by /usr/lib/nagios; solution 2 may
> result in a performance loss (maybe a huge one on big installations), so
> the third one, which may look like a quick and dirty workaround, is in
> fact the less intrusive; and since icinga-core depends on icinga-common,
> which in turn depends on monitoring-plugins-basic, it would be safe for
> one of those two packages to provide such a symlink.
does this (symlink utils.pm in /usr/lib/icinga) sounds for you like a
solution that can work out?
Never write mail to <waja at spamfalle.info>, you have been warned!
-----BEGIN GEEK CODE BLOCK-----
GIT d-- s+: a C+++ UL++++ P+ L+++ E--- W+++ N+++ o++ K++ w--- O M+ V- PS
PGP++ t-- 5 X R tv- b+ DI D+ G++ e++ h---- r+++ y++++
------END GEEK CODE BLOCK------
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 801 bytes
Desc: OpenPGP digital signature
More information about the Pkg-nagios-devel