Logging of v3 nrpe

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
frank42
Posts: 1
Joined: Wed Mar 08, 2017 9:02 am

Logging of v3 nrpe

Post by frank42 »

Hi,

I updated today NRPE to v3 (yes, a bit late, I know) just to find out that this was a very bad idea.

Since the update, I get LOTS of log entries on my core server:

Code: Select all

Mar  8 14:54:04 nagios-server check_nrpe: Remote [client ip] accepted a Version 2 Packet
I have a monitoring server which is now running with nrpe v3, and lots of clients which are running with nrpe v2 - so it's impossible to 'on-the-fly' update them all to v3 as well, so I used the commandline option "-2" to stick with v2 packets.

this works fine, though, but the real problem here is the amount of logging. EVERY connect now produces the above mentioned unnecessary information on the server. I have two problems with that: a) It can not be disabled without modifying the source code and recomile it, and b) it can not be ignored since my monitoring server is watching about 2000 different services on 200 different client machines.

According to https://support.nagios.com/forum/viewto ... =7&t=41115 hacking source is the only option, but I don't think this is a wanted behaviour on the long run (I have some machines with binary distributions like suse or ubuntu, no way I'm compiling nrpe on them all manually).

Is there any chance that this is getting fixed? I don't think anyone needs these log entries - particularly not if one is not able to disable it...


Regards,
Frank
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Logging of v3 nrpe

Post by mcapra »

The re-compile is the only fix currently, but it's not as if you need to make that change in every single NRPE agent you will ever deploy. You only need to make that change within the check_nrpe plugin that Nagios Core is executing to reach out to those machines. Granted yes, once you upgrade the agents the problem will come back up.

Feel free to give this github issue a +1 for the official lasting fix:
https://github.com/NagiosEnterprises/nrpe/issues/64
Former Nagios employee
https://www.mcapra.com/
Locked