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

    Pull pfsense-packages, please!

    Scheduled Pinned Locked Moved Development
    14 Posts 4 Posters 5.9k 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.
    • N Offline
      namezero111111
      last edited by

      I added sudo, because I needed to execute shell PHP scripts with ./php. I wasn't sure how to make the sudo.tbz "appear" in the pfsense download files for packages, so I was told to add the build_port_path variables and fill stuff out in there.
      I'm now waiting for this to build sudo.tbz so I can commit the rest of the package and monitoring scripts for everyone to use.

      1 Reply Last reply Reply Quote 0
      • jimpJ Offline
        jimp Rebel Alliance Developer Netgate
        last edited by

        Well running scripts isn't really a problem if the program calling the script is running as root, but I don't remember if the nrpe package runs as root or some other user (or how easy that is to change).

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • N Offline
          namezero111111
          last edited by

          The package runs as user nagios (which I'm sure isn't a terrible idea by itself), I don't know what the developing team's security policy is there.
          But take a look at the changes proposed if you get around to it and let me think if you think that there is a problem!

          1 Reply Last reply Reply Quote 0
          • B Offline
            Briantist
            last edited by

            Have you detailed the changes in NRPEv2 anywhere? I posted a bounty a few years back to have several fixes made, so I'm really interested in any updates/improvements to the package.

            1 Reply Last reply Reply Quote 0
            • N Offline
              namezero111111
              last edited by

              All I did was write a bunch of scripts that monitor certain areas of Nagios, such as DNS, CARP, Logs files, VPN statuses, and many more. They're in PHP and I just customized the Nagios interface with a "sudo" box because that's what it needs to run php from the command line.

              If you're interested, I can send them to you. Although it'd be awesome having them in that package install because it's a couple steps to get it up and running.

              1 Reply Last reply Reply Quote 0
              • marcellocM Offline
                marcelloc
                last edited by

                Isn't it already running as root?

                I think if you remove the sudo, it will be easier to commit.

                Briantist,
                What kind of issues are you getting with nrpe?

                Treinamentos de Elite: http://sys-squad.com

                Help a community developer! ;D

                1 Reply Last reply Reply Quote 0
                • B Offline
                  Briantist
                  last edited by

                  @marcelloc:

                  Isn't it already running as root?

                  I think if you remove the sudo, it will be easier to commit.

                  Briantist,
                  What kind of issues are you getting with nrpe?

                  I believe that namezero is correct in that nrpe2 runs as user 'nagios' and not as root.

                  Marcello, I'm not having any issues with NRPE; but since I use it I was curious about the changes were. It sounds like these are extra scripts to allow better monitoring of pfSense's actual components, and that sounds really wonderful! I'm looking forward to this.

                  1 Reply Last reply Reply Quote 0
                  • N Offline
                    namezero111111
                    last edited by

                    Yes they are extra scripts.
                    Look at the attached png for an example of monitored hosts as seen from centreon.

                    If there is a way to run the scripts as non root without sudo, that'd be fine too, but they use the PFSense webgui code to determine a few things, and except for the manual deployment it's working great!

                    I've all since given up on getting this committed, but I can upload them here with the installation instructions of you're interested.

                    example.png
                    example.png_thumb

                    1 Reply Last reply Reply Quote 0
                    • N Offline
                      namezero111111
                      last edited by

                      Two more example screens

                      example2.png
                      example2.png_thumb
                      example3.png
                      example3.png_thumb

                      1 Reply Last reply Reply Quote 0
                      • B Offline
                        Briantist
                        last edited by

                        Sure, I'd like to see the scripts and the instructions. Thanks!

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