Redirect nrpe log to local file

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Redirect nrpe log to local file

Post by rajasegar »

XI 2014R1.2
nrpe 2.15 running as daemon (not using xinetd) started using nagios id

Can you please advice how to redirect the nrpe logs to a file?
e.g: /usr/local/nagios/var/nrpe.log

Do we still need to meddle with the system log facility?

Thanks
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Redirect nrpe log to local file

Post by tmcdonald »

I haven't tested it myself, but here's a recent post from someone who modified the NRPE source to do just that:

http://support.nagios.com/forum/viewtop ... 1&p=108692
Former Nagios employee
Locked