No Debug logging for NRPE when trying tsNRPE:Unable to read output

Litwin, Matthew mlitwin at stubhub.com
Fri Sep 11 23:07:13 CEST 2009


Looks like I am going to have to petition a change in our production
environment.

-----Original Message-----
From: Marc Powell [mailto:marc at ena.com] 
Sent: Friday, September 11, 2009 1:52 PM
To: Nagios Users mailinglist
Subject: Re: [Nagios-users] No Debug logging for NRPE when trying
tsNRPE:Unable to read output


On Sep 11, 2009, at 3:10 PM, Litwin, Matthew wrote:

> deamon.debug or *.debug are not configured. This is how our production
> environment is setup, on purpose. For the given server I can change  
> it,
> but what would be better would be to just configure the nrpe  
> instance to
> log debug output to another log file. Is that possible?

No. NRPE uses syslog for all of it's logging output; it has no code  
internally to manage logging to files.

If you are unable to change syslog.conf to log daemon.debug to a file,  
perhaps you can edit src/nrpe.c, looking for lines like

	syslog(LOG_DEBUG,"some text")'

and change LOG_DEBUG to a facility that you currently do log (LOG_INFO  
or LOG_ERR, for example).

Failing that, your only other option is to code that capability into  
nrpe.c.

--
Marc


------------------------------------------------------------------------
------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008
30-Day 
trial. Simplify your report design, integration and deployment - and
focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list