NRPE Remote host debug logging

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
awilson
Posts: 224
Joined: Mon Mar 21, 2016 1:20 pm

NRPE Remote host debug logging

Post by awilson »

Which log file does nrpe write to?

Code: Select all

How to go about debugging other problems...
When debugging problems it may be useful to edit the NRPE configuration file and change the debug=0
entry to debug=1. Once you do that, restart the NRPE daemon if it is running as a standalone daemon.
After you try using the check_nrpe plugin again, you should be able to see some debugging information in
the log files of the remote host. Check your logs carefully – they should be able to help provide clues as to
where the problem lies...
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: NRPE Remote host debug logging

Post by npolovenko »

@awilson, Should be in the syslog facility. Usually, /var/log/messages or /var/log/syslog depending on the OS.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
awilson
Posts: 224
Joined: Mon Mar 21, 2016 1:20 pm

Re: NRPE Remote host debug logging

Post by awilson »

Thanks. I was hoping that I could configure logging to a local file that could be limited to a small size so that there would be a record of the last few minutes before the agent hangs or dies. We get failed service checks on servers that were previously fine. Trying to identify what is causing this intermittent behavior.

Since it is using syslog, I can't guarantee that it won't chew up space.

Any ideas on another path get an agent to tell us why it is under duress and operate normally otherwise?

Thanks.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: NRPE Remote host debug logging

Post by npolovenko »

@awilson, Got it. I don't think nrpe debug log particularly eats up too much space, it's not nearly as space consuming as the nagos debug log.
But to answer your question, NPRE doesn't have the option to write logs to a custom file. The only way around this is to create a custom filter in the rsyslog configuration that will forward nrpe logs to a different file.

You said nrpe agent is dying? Usually, if you run:
systemctl nrpe status
It'll show that it stopped and the reason for it. But otherwise, syslog would be the only place to check.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
awilson
Posts: 224
Joined: Mon Mar 21, 2016 1:20 pm

Re: NRPE Remote host debug logging

Post by awilson »

Thanks!

You can close this. I'll look into it.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NRPE Remote host debug logging

Post by scottwilkerson »

awilson wrote:Thanks!

You can close this. I'll look into it.
great!

Locking
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked