Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

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

    Scheduled Pinned Locked Moved General pfSense Questions
    9 Posts 3 Posters 1.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T Offline
      tof
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • D Offline
        doktornotor Banned
        last edited by

        Upgrade to 2.2.1

        1 Reply Last reply Reply Quote 0
        • T Offline
          tof
          last edited by

          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 ?

          1 Reply Last reply Reply Quote 0
          • D Offline
            doktornotor Banned
            last edited by

            Where did you get perl?

            1 Reply Last reply Reply Quote 0
            • T Offline
              tof
              last edited by

              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 ?

              1 Reply Last reply Reply Quote 0
              • T Offline
                tof
                last edited by

                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 ???

                1 Reply Last reply Reply Quote 0
                • T Offline
                  tof
                  last edited by

                  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 ?

                  1 Reply Last reply Reply Quote 0
                  • mario.qM Offline
                    mario.q
                    last edited by

                    @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

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      tof
                      last edited by

                      I used  :
                      pkg install perl5.20-5.20.2

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.