Pull pfsense-packages, please!
-
Dear committers, can you please pull my 7 requests for bsdperimeter / pfsense-packages ?
I'm trying to finalize the new NRPEv2 package scripts, but am waiting for these pulls to see if everything else works, first.
They've been sitting there for 19 days now.Thanks!
-Andy
-
I think part of the problem is the addition of sudo, not sure anyone has had time to look all of that over to make sure it won't be a problem. I know I haven't had time, we've been unusually busy for the past month solid it seems.
-
Ok, I just wanted to make sure it hadn't been forgotten.
If sudo is the problem (as it is for me too [getting it into the repository]), then is there a way to execute command line PHP (with ./php) and having access to the PFSense webgui php pages without being a sudo user?-Andy
-
It depends on how things are executed. I'm not sure how/why sudo was used in there (I really haven't had any time to look at it). Most everything runs as root, and most things in PHP will assume they are running as root.
-
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. -
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).
-
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! -
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.
-
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.
-
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? -
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.
-
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.
-
Two more example screens
-
Sure, I'd like to see the scripts and the instructions. Thanks!