Hi Sebstian, 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: > > /usr/lib/nagios/plugins/check_breeze > /usr/lib/nagios/plugins/check_disk_smb > /usr/lib/nagios/plugins/check_file_age > /usr/lib/nagios/plugins/check_flexlm > /usr/lib/nagios/plugins/check_ifoperstatus > /usr/lib/nagios/plugins/check_ifstatus > /usr/lib/nagios/plugins/check_ircd > /usr/lib/nagios/plugins/check_mailq > /usr/lib/nagios/plugins/check_rpc > /usr/lib/nagios/plugins/check_wave > > 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 let ePN > 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? Thanks, Jan. -- Never write mail to <w...@spamfalle.info>, you have been warned! -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GIT d-- s+: a C+++ UL++++ P+ L+++ E--- W+++ N+++ o++ K++ w--- O M+ V- PS PE Y++ PGP++ t-- 5 X R tv- b+ DI D+ G++ e++ h---- r+++ y++++ ------END GEEK CODE BLOCK------
signature.asc
Description: OpenPGP digital signature