NRPE Warning: Cannot open log file for writing
Posted: Fri Jul 22, 2022 5:41 am
NRPE v4.0.3 (Server and Client)
If I start NRPE on the command line with
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.
It fails to write any logs and a remote command to check disk space fails with the following message.
Which was why I wanted to logging in the first place.
If I start NRPE on the command line with
Code: Select all
/usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d
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 ]
Code: Select all
DISK CRITICAL - /somedisk is not accessible: Permission denied