nrpe - log_on_failure options

This forum is intended for the discussion of Nagios Core development. Feature requests, patches, bug fixes, and all types of development-related discussions are welcome!

NOTE: The SourceForge.net nagios-devel mailing list has been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

nrpe - log_on_failure options

Postby thanstra » Tue Aug 14, 2018 9:23 am

Can someone point me to information on how log_on_failure works and what options there might be for it?

Every piece of documentation which I see uses this line:

log_on_failure += USERID

But I don't know what that means, especially the USERID part.

The underlying reason I'm looking into this is that I am running into times when nrpe loses connection with my Nagios server and it seems to be related in some way to authentication on the server itself. I don't follow how authentication errors can effect NRPE connections except, perhaps, though this log_on_failure piece of the puzzle.

Anyone have ideas?
thanstra
 
Posts: 6
Joined: Thu Feb 06, 2014 2:17 pm

Re: nrpe - log_on_failure options

Postby cdienger » Wed Aug 15, 2018 2:48 pm

https://linux.die.net/man/5/xinetd:

...
log_on_failure

determines what information is logged

when a server cannot be started (either because of a lack of resources or because of access control restrictions). The service id is always included in the log entry along with the reason for failure. Any combination of the following values may be specified:

...

USERID

logs the user id of the remote user using the RFC 1413 identification protocol. This option is available only for multi-threaded stream services.


...

It would seem that the server cannot get started. Is there anything of interest in /var/log/messages during times of failure?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
cdienger
Support Tech
 
Posts: 1885
Joined: Tue Feb 07, 2017 11:26 am

Re: nrpe - log_on_failure options

Postby thanstra » Fri Aug 17, 2018 2:27 pm

All I get on failure is the usual "cannot complete handshake" errors. Nothing more to help me understand what is going on.
thanstra
 
Posts: 6
Joined: Thu Feb 06, 2014 2:17 pm

Re: nrpe - log_on_failure options

Postby cdienger » Fri Aug 17, 2018 4:17 pm

What version of the agent and check? On the XI side:

/usr/local/nagios/libexec/check_nrpe -V

on the agent:

/usr/local/nagios/bin/nrpe -V

updating the agent and/or check may help if you suspect this is something to do with either of these, otherwise system logs in the client's /var/log, may have other useful details. Is the system experiencing other issues(high load, slowness, errors, etc..) when this is occurring?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
cdienger
Support Tech
 
Posts: 1885
Joined: Tue Feb 07, 2017 11:26 am


Return to Nagios Core Development

Who is online

Users browsing this forum: No registered users and 2 guests