Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package nrpe for openSUSE:Factory checked in 
at 2021-02-15 23:15:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/nrpe (Old)
 and      /work/SRC/openSUSE:Factory/.nrpe.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "nrpe"

Mon Feb 15 23:15:40 2021 rev:14 rq:871264 version:4.0.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/nrpe/nrpe.changes        2021-01-29 
14:57:49.605573805 +0100
+++ /work/SRC/openSUSE:Factory/.nrpe.new.28504/nrpe.changes     2021-02-15 
23:17:42.703522291 +0100
@@ -1,0 +2,11 @@
+Thu Feb  4 16:35:12 UTC 2021 - Lars Vogdt <[email protected]>
+
+- added nrpe-4.0.4-silence_wrong_package_version_messages.patch
+  NRPE logs 'packet version was invalid' and 'Could not read request
+  from client' if the NRPE version on the client does not match the
+  one on the server side. 
+  This patch reduces the importance of the log entry to be just 
+  informal, which should silent most client logs, while it makes 
+  it still available for debugging.
+
+-------------------------------------------------------------------

New:
----
  nrpe-4.0.4-silence_wrong_package_version_messages.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ nrpe.spec ++++++
--- /var/tmp/diff_new_pack.nU3wRe/_old  2021-02-15 23:17:43.483523457 +0100
+++ /var/tmp/diff_new_pack.nU3wRe/_new  2021-02-15 23:17:43.483523457 +0100
@@ -65,6 +65,8 @@
 Patch6:         nrpe-static_dh_parameters.patch
 # PATCH-FIX-openSUSE disable chkconfig call in Makefile
 Patch7:         nrpe-disable-chkconfig_in_Makefile.patch
+# PATCH-FIX-UPSTREAM this fills up the logs on the clients without real need
+Patch8:         nrpe-4.0.4-silence_wrong_package_version_messages.patch
 BuildRequires:  monitoring-plugins-common
 BuildRequires:  nagios-rpm-macros
 Requires(pre):  grep
@@ -154,6 +156,7 @@
 install -m644 %{SOURCE14} include/dh.h
 %endif
 %patch7 -p1
+%patch8 -p1
 cp -a %{SOURCE10} .
 cp -a %{SOURCE12} .
 %if 0%{?suse_version} >= 1210

++++++ nrpe-4.0.4-silence_wrong_package_version_messages.patch ++++++
Index: nrpe-4.0.3/src/nrpe.c
===================================================================
--- nrpe-4.0.3.orig/src/nrpe.c
+++ nrpe-4.0.3/src/nrpe.c
@@ -1764,7 +1764,7 @@ void handle_connection(int sock)
        /* recv() error or client disconnect */
        if (rc <= 0) {
                /* log error */
-               logit(LOG_ERR, "Could not read request from client %s, bailing 
out...", remote_host);
+               logit(LOG_INFO, "Could not read request from client %s, bailing 
out...", remote_host);
                if (v3_receive_packet)
                        free(v3_receive_packet);
 #ifdef HAVE_SSL
@@ -2114,7 +2114,7 @@ int read_packet(int sock, void *ssl_ptr,
 
                packet_ver = ntohs(v2_pkt->packet_version);
                if (packet_ver != NRPE_PACKET_VERSION_2 && packet_ver != 
NRPE_PACKET_VERSION_4) {
-                       logit(LOG_ERR, "Error: (use_ssl == false): Request 
packet version was invalid!");
+                       logit(LOG_INFO, "Error: (use_ssl == false): Request 
packet version was invalid!");
                        return -1;
                }
 
@@ -2198,7 +2198,7 @@ int read_packet(int sock, void *ssl_ptr,
 
                packet_ver = ntohs(v2_pkt->packet_version);
                if (packet_ver != NRPE_PACKET_VERSION_2 && packet_ver != 
NRPE_PACKET_VERSION_4) {
-                       logit(LOG_ERR, "Error: (use_ssl == true): Request 
packet version was invalid!");
+                       logit(LOG_INFO, "Error: (use_ssl == true): Request 
packet version was invalid!");
                        return -1;
                }
 

Reply via email to