Bug 246914

Summary: [NEW PORT] net-mgmt/nrpe4: Nagios Remote Plugin Executor version 4
Product: Ports & Packages Reporter: Michael Muenz <m.muenz>
Component: Individual Port(s)Assignee: Niclas Zeising <zeising>
Status: New ---    
Severity: Affects Only Me CC: zeising
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://github.com/NagiosEnterprises/nrpe/blob/master/CHANGELOG.md
Attachments:
Description Flags
NRPEv4 none

Description Michael Muenz 2020-06-01 18:24:18 UTC
Created attachment 215138 [details]
NRPEv4

New port for NRPE4. I found this port as nrpe3 is marked as outdated but there is no new version since 2017, as only v4 receives update. V4 also introduces TLS1.3 support.

I took the Makefile from nrpe3 and adjusted to newest version.

- portlint -A is happy
- poudriere builds fine on 12.1 64bit
- poudriere testport runs fine on 12.1 64bit
- pkg installs fine and nagios checks a handled correctly

I decided to add a new port since the existing port is labeld as nrpe3, and with nrpe4 you need to add an additional parameter to make it backward compatible (which would break existing setups).
Comment 1 Michael Muenz 2020-06-01 18:26:16 UTC
zeising@, sorry for adding you CC, but since you maintain nrpe3 maybe you want to have look.
Comment 2 Niclas Zeising freebsd_committer 2020-06-01 19:26:28 UTC
(In reply to Michael Muenz from comment #1)

Don't apologize, it's ok to ask for help and reviews. :)

Is there anything in nrpe4 that breaks nrpe3 setups (I haven't looked myself).  Otherwise, it might make sense to simply update nrpe3 to this version (and rename it) rather than have both versions.  What do you think?
Comment 3 Michael Muenz 2020-06-02 04:53:06 UTC
I'm open for both options but it seems when nrpe v4 wants to contact an instance of nrpe v3 (like when when you update the package on the server and not the agents), you have to adjust the syntax to use v3 full backwards compatibility.

It should work [1] as the changelog for 4.0.0 states, but I can't test all scenarios.


[1]https://github.com/NagiosEnterprises/nrpe/blob/master/CHANGELOG.md
Comment 4 Niclas Zeising freebsd_committer 2020-06-14 09:17:22 UTC
Sorry for sitting on this, I had forgot about it.
I believe the best way is to simply update nrpe to 4.0. If anyone still needs nrpe3, a separate port for that can be created.
Comment 5 Niclas Zeising freebsd_committer 2020-08-13 16:40:15 UTC
Michael Muenz, are you OK with simply replacing NRPE3 with NRPE4?  Do you want to maintain NRPE4?
Comment 6 Michael Muenz 2020-08-24 14:57:25 UTC
Hi Niclas,

sorry for late reply, was on vacation. 

I'm not sure how this works since older port is called nrpe3. For me this sounds like creating a port "nrpe" and remove "nrpe3"? 

Again, I'm unsure if this breaks existing setups when nrpe3 will be upgraded to v4.

I can take maintainership if there are no concerns.

Best,
Michael