Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 616092 - net-analyzer/nrpe-3.1.0 version bump
Summary: net-analyzer/nrpe-3.1.0 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sysadmin Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-20 08:52 UTC by Tomáš Mózes
Modified: 2017-05-13 19:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
nrpe-3.1.0.ebuild (nrpe-3.1.0.ebuild,1.35 KB, text/plain)
2017-04-22 21:44 UTC, Michael Orlitzky
Details
nrpe-3.1.0.init (nrpe-3.1.0.init,415 bytes, text/plain)
2017-04-22 21:50 UTC, Michael Orlitzky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomáš Mózes 2017-04-20 08:52:24 UTC
New releases after a longer time. Version 3.0.0 should also fix some security issues:

SECURITY
- Fix for CVE-2014-2913

However that is disputed:
https://access.redhat.com/security/cve/cve-2014-2913
Comment 1 Michael Orlitzky gentoo-dev 2017-04-22 21:44:49 UTC
Created attachment 470694 [details]
nrpe-3.1.0.ebuild
Comment 2 Michael Orlitzky gentoo-dev 2017-04-22 21:50:35 UTC
Created attachment 470696 [details]
nrpe-3.1.0.init

Give these a try...

We had a bunch of nonstandard patches, and it would take a long time to port them all to v3.1.0, so I didn't =)

As a result, the TCP wrappers are not optional, command arguments aren't allowed, the daemon is always installed, and the nrpe_check_control tool isn't there.

I don't know if anyone will miss those features -- if not, we can just leave things as-is. If people do miss them...

  * The patch to make the daemon and tcp wrappers optional should go upstream.

  * The command args can simply be re-enabled, but we should probably mask
    the flag because it's a security risk.

  * The nrpe_check_control tool should be updated to use the paths from the
    build system.
Comment 3 Tomáš Mózes 2017-04-24 08:26:05 UTC
Thanks, will try and report back.
Comment 4 Tomáš Mózes 2017-04-24 10:51:30 UTC
Updating on some 20 servers went fine, but it seems you need to update all your instances to use new nrpe, because some nrpe checks failed (Invalid packet type received from server) and for some there is a log entry on the server (Error: Request packet type/version was invalid! / Client request was invalid, bailing out...).
Comment 5 Michael Orlitzky gentoo-dev 2017-04-24 10:55:58 UTC
(In reply to Tomáš Mózes from comment #4)
> Updating on some 20 servers went fine, but it seems you need to update all
> your instances to use new nrpe, because some nrpe checks failed

Did you upgrade the server or the clients first? I just found this in the Changelog, which makes it sound like you should do the server first:

- Added support for version 3 variable sized packets up to 64KB. nrpe will
  accept either version from check_nrpe. check_nrpe will try to send a
  version 3 packet first, and fall back to version 2. check_nrpe can be forced
  to only send version 2 packets if the switch `-2` is used. (John Frickson)
Comment 6 Tomáš Mózes 2017-04-24 12:03:37 UTC
(In reply to Michael Orlitzky from comment #5)
> (In reply to Tomáš Mózes from comment #4)
> > Updating on some 20 servers went fine, but it seems you need to update all
> > your instances to use new nrpe, because some nrpe checks failed
> 
> Did you upgrade the server or the clients first? I just found this in the
> Changelog, which makes it sound like you should do the server first:
> 
> - Added support for version 3 variable sized packets up to 64KB. nrpe will
>   accept either version from check_nrpe. check_nrpe will try to send a
>   version 3 packet first, and fall back to version 2. check_nrpe can be
> forced
>   to only send version 2 packets if the switch `-2` is used. (John Frickson)

Started with the monitoring server (the one that checks others via check_nrpe). As it tried sending v3 packets, the servers being monitoring with nrpe 2.15 were confused and produced such errors/warnings. Maybe we should put a message in the ebuild.
Comment 7 Tomáš Mózes 2017-04-28 08:01:40 UTC
Installed on 100 machines, seems to be working ok in my case.
Comment 8 Michael Orlitzky gentoo-dev 2017-05-12 21:58:03 UTC
Thanks for testing. I committed this with an elog warning against mixing major versions on the client/server.
Comment 9 Tomáš Mózes 2017-05-13 19:36:17 UTC
Thanks