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

    nrpe 3.1_6 service control broken on pfSense 2.7.0

    Scheduled Pinned Locked Moved pfSense Packages
    6 Posts 3 Posters 1.1k 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
      TomTheOne
      last edited by

      Hi all

      nrpe 3.1_5 works smooth on pfSense 2.7.0, after the upgrade to nrpe 3.1_6 the service can not be controled anymore via "Status" > "Services".

      [2.7.0-RELEASE][admin@firewall.somedomain.local]/root: /usr/local/etc/rc.d/nrpe3.sh start
      /usr/local/etc/rc.d/nrpe3.sh: WARNING: run_rc_command: cannot run /usr/local/sbin/nrpe3
      

      The start command is not anymore located at /usr/local/sbin/nrpe3.

      [2.7.0-RELEASE][admin@wmthuwall.weiers.local]/root: find / -name nrpe | grep -i /usr/local/sbin
      /usr/local/sbin/nrpe
      

      Changing the path in /usr/local/etc/rc.d/nrpe3.sh makes NRPE startable, but the "Status" > "Services" page does still not show NRPE as started.

      Did not find out how to solve this; just found out, the PID file is reference is correct.

      Any ideas?

      Regards
      Tom

      D 1 Reply Last reply Reply Quote 0
      • D
        dneuhaeuser @TomTheOne
        last edited by dneuhaeuser

        I have the same problem here!

        For the status to work again, in config.xml you need to change the executable line in nrpe service section as well:

                        <service>
                                <name>nrpe</name>
                                <rcfile>nrpe3.sh</rcfile>
                                <executable>nrpe</executable>
                                <description><![CDATA[Nagios NRPE Daemon]]></description>
                        </service>
        
        
        matyi.szabolcsM 1 Reply Last reply Reply Quote 0
        • matyi.szabolcsM
          matyi.szabolcs @dneuhaeuser
          last edited by matyi.szabolcs

          @dneuhaeuser

          Unfortunately, it still does not start from the NRPE Service Web interface. I edited the config.xml file to no avail.
          As a further attempt, I also edited the file /usr/local/etc/rc.d/nrpe3.sh from nrpe3 to nrpe, but it does not start on the web interface.

          nrpe3_enable=${nrpe3_enable-"YES"}
          name="nrpe3"
          rcvar="${name}_enable"
          
          command="/usr/local/sbin/nrpe3"
          
          

          The file "/usr/local/sbin/nrpe3" does not exist:

          [2.7.0-RELEASE][root@local]/root: ls /usr/local/sbin/nrpe3
          ls: /usr/local/sbin/nrpe3: No such file or directory
          
          

          It can only be started from the CLI with the following command:

          /usr/local/etc/rc.d/nrpe onestart
          

          But then the web interface still shows that it is not running!

          A solution can be found here, but there is no patch yet, and an update is unlikely within a few months.
          redmine.pfsense.org/issues/14560

          D 1 Reply Last reply Reply Quote 1
          • D
            dneuhaeuser @matyi.szabolcs
            last edited by dneuhaeuser

            nrpe 4.1 is available now and seems to fix all issues!

            matyi.szabolcsM 1 Reply Last reply Reply Quote 0
            • matyi.szabolcsM
              matyi.szabolcs @dneuhaeuser
              last edited by matyi.szabolcs

              @dneuhaeuser

              -1

              No, there is nrpe 4.1 in version 2.7.0 CE and this is the problem.
              The pfSense Plus version (23.05) has nrpe3, which I don't understand because it is also FreeBSD 14.0 (no problem here).

              There was an update that solved the problem.
              Bildschirmfoto_2023-07-17_11-32-24.png

              nrpe3.sh has been deleted and now there is only nrpe.

              [2.7.0-RELEASE][root@lb2-redir.domain-robot.org]/root: cat /usr/local/etc/rc.d/nr
              nrpe*    nrpe.sh*
              

              Thanks to the developers!

              D 1 Reply Last reply Reply Quote 0
              • D
                dneuhaeuser @matyi.szabolcs
                last edited by

                seems that the service entry in config.xml is not updated automatically.

                on an untouched system, after update to nrpe 4.1, config.xml still looked like this:

                <service>
                                        <name>nrpe</name>
                                        <rcfile>nrpe3.sh</rcfile>
                                        <executable>nrpe3</executable>
                

                with this the service was not starting.
                after removing the "3"s I can start the service from web gui.

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