Page 1 of 1

NRPE Warning: Cannot open log file for writing

Posted: Fri Jul 22, 2022 5:41 am
by WallaceM
NRPE v4.0.3 (Server and Client)
If I start NRPE on the command line with

Code: Select all

/usr/sbin/nrpe -c /etc/nagios/nrpe.cfg  -d
It creates and writes to the logfile specified in the config file (log_file) and a remote command to check disk space works.

If I start NRPE using the service command I get the warning in the subject.

Code: Select all

$ service nrpe start
Starting nrpe Warning: Cannot open log file 'nrpe.log' for writing
                                                           [ OK ]
It fails to write any logs and a remote command to check disk space fails with the following message.

Code: Select all

DISK CRITICAL - /somedisk is not accessible: Permission denied
Which was why I wanted to logging in the first place.