Re: nagios/icinga-check kaputt bekommen

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
Delete this message
Reply to this message
Author: Dirk Melchers
Date:  
To: Norman Zimmer
CC: list
New-Topics: [solved] nagios/icinga-check kaputt bekommen / perllib
Subject: Re: nagios/icinga-check kaputt bekommen
Hi,

Vermutung: icinga installiert sich perl Module per "local_lib" und die werden gegen die System-Libs gelinkt. Die haben sich durch Dein Upgrade geändert und daher ist das Linking nun kaputt.

Kann gerade nicht schauen, wo Icinga das evtl. liegen hat, aber vielleicht reicht das ja als Tipp

Tschüss,

Dirk

> Am 20.01.2021 um 09:53 schrieb Norman Zimmer <mail@???>:
>
> Hallo zusammen,
>
> bei mir funktioniert ein icinga-check nicht mehr und ich hab gerade
> keine Idee mehr, an welcher Stelle ich suchen soll... :-/
>
> Auslöser der Problems war vermutlich ein "do-release-upgrade" von Ubuntu18LTS auf
> Ubuntu20LTS. Sonst hab ich nix gemacht ;)
>
> Der Check bringt auf der Webseite (bzw im Defaut-Log) die Meldung
> "(Service check did not exit properly)"
>
> Wenn ich den Check von Hand zusammenbaue und auf der Commandline
> ausführe, dann funktioniert dieser einwandfrei (mit und ohne "sudo -u
> nagios"), gibt die richtige Meldung zurück und hat Exit-Wert 0.
>
> /usr/lib/plugins/check_ups_apc.pl -H 172.17.... -a status
>
> Im Debug-Log kommt folgende Meldung:
> [1611129065.077677] [016.0] [pid=189115] Embedded Perl failed to compile /usr/lib/nagios/plugins/check_ups_apc.pl, compile error **ePN failed to compile /usr/lib/nagios/plugins/check_ups_apc.pl: "Can't locate Params/Validate.pm in @INC
> +(you may need to install the Params::Validate module) (@INC contains: /usr/lib/icinga/../perl/lib /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5
> +/usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl) at /usr/share/perl5/Monitoring/Plugin/Functions.pm line 4,
> BEGIN failed--compilation aborted at /usr/share/perl5/Monitoring/Plugin/Functions.pm line 11.
> Compilation failed in require at /usr/share/perl5/Monitoring/Plugin.pm line 3.
> BEGIN failed--compilation aborted at /usr/share/perl5/Monitoring/Plugin.pm line 3.
> Compilation failed in require at (eval 1) line 55.
> BEGIN failed--compilation aborted at (eval 1) line 55." at /usr/lib/icinga/p1.pl line 159.
> - skipping plugin
>
> Ein Versuch das vermeindlich fehlende Paket "libparams-validate-perl"
> nachzuinstallieren meldet, dass dies schon in der neusten Version
> (1.29-3) installiert ist...
>
> Hat hier noch jemand irgendwelche Ideen???
>
>
> Viele Grüße
>
> Norman
>
> --
> Norman "bigboss" Zimmer
> GnuPG-ID: 0x1842A431
>
> Packets don't lie, but they may not tell everything if captured by a misconfigured filter.
>
> --
> Mailing-Liste der Linux User Schwabach (LUSC) e.V.
> Vor und beim Posten bitte
> => http://lusc.de/List-Netiquette < und
> => http://lusc.de/List-Howto < beachten. Danke!
>