NRPE Warning: Cannot open log file for writing

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Post Reply
WallaceM
Posts: 1
Joined: Fri Jul 22, 2022 5:16 am

NRPE Warning: Cannot open log file for writing

Post 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.
Post Reply