File nrpe-4.0.4-silence_wrong_package_version_messages.patch of Package nrpe
Index: nrpe-4.1.0/src/nrpe.c
===================================================================
--- nrpe-4.1.0.orig/src/nrpe.c
+++ nrpe-4.1.0/src/nrpe.c
@@ -1788,7 +1788,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
@@ -2138,7 +2138,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;
}
@@ -2222,7 +2222,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;
}