Check NRPE don't work -> pbm libutil.so.8



  • Hello all,

    I'm using pfsense and I have a problem.
    I'm trying to monitor the memory usage, over NRPE v2, by a perl script : check_mem.pl
    you can see it here : http://christophe.coiffier.com/check_mem.pl

    But when I'm trying to use it :
    ./check_mem.pl -u -w80 -c90
    I have an error :
    Shared object "libutil.so.8 not found, required by "perl"

    When I try perl -v, I have the same message.

    Where can I find this file ? Or how to do this script working ?

    my version of pfsense is :
    FreeBSD firewall.network.loc 10.1-RELEASE-p4 FreeBSD 10.1-RELEASE-p4 #0 36d7dec(releng/10.1)-dirty: Thu Jan 22 15:12:35 CST 2015    root@pfsense-22-amd64-builder:/usr/obj.amd64/usr/pfSensesrc/src/sys/pfSense_SMP.10  amd64

    Thanks for your help.


  • Banned

    Upgrade to 2.2.1



  • I did, but still the same thing…
    FreeBSD firewall.network.loc 10.1-RELEASE-p6 FreeBSD 10.1-RELEASE-p6 #0 b69ba8f(releng/10.1)-dirty: Fri Mar 13 08:37:46 CDT 2015    root@pfs22-amd64-builder:/usr/obj.amd64/usr/pfSensesrc/src/sys/pfSense_SMP.10  amd64
    and in GUI :
    2.2.1-RELEASE (amd64)
    built on Fri Mar 13 08:16:49 CDT 2015
    FreeBSD 10.1-RELEASE-p6

    When I do perl -v, still the same error.

    When I do check_nrpe -c check_mem :
    unable to read output ..

    Strange thing : in the web interface, in the version, it can't check the version : unable to check for updates
    In the updater settings, I selected default auto update url  : pfsense amd64 stable updates (current architecture).
    but the firmware auto update URL is empty.

    Any ideas ?


  • Banned

    Where did you get perl?



  • Don't know, don't remember I installed it.
    I thought it was installed with pfsense.

    Do I have to re-install it ?
    If yes how ?



  • Ok Now I'm sure Perl is ok, i reinstall it

    perl -v

    This is perl 5, version 20, subversion 2 (v5.20.2) built for amd64-freebsd-thread-multi

    But I still have the error from check_nrpe

    On pfsense :
    ./check_mem.pl -w 80 -c 90 -u
    OK - 53.8% (254952 kB) used.|TOTAL=474292KB;;;; USED=254952KB;379433;426862;; FREE=219340KB;;;; CACHES=244KB;;;;

    In nrpe.cfg :
    command[check_mem]=/usr/pbi/nrpe-amd64/libexec/nagios/check_mem.pl -w 80 -c 90 -u

    On my monitoring server (opsview)
    ./check_nrpe -H 192.168.1.254
    NRPE v2.15
    ./check_nrpe -H 192.168.1.254 -c check_mem
    NRPE: Unable to read output

    So What the …., what is wrong ???



  • After many tests, the problem seems come from perl check.
    All default nrpe are … compiled ?
    and the perl files are not.
    Does this can change something ?

    I just want to check the memory usage without the cache.
    Maybe there is another way to do this : snmp check ? or sh check ?



  • @tof:

    Ok Now I'm sure Perl is ok, i reinstall it
    perl -v
    This is perl 5, version 20, subversion 2 (v5.20.2) built for amd64-freebsd-thread-multi

    please
    which command to install-upgrade perl

    thank you



  • I used  :
    pkg install perl5.20-5.20.2


Log in to reply