The command is 

command[check_disks]=/usr/lib/nagios/plugins/check_disk -w 20% -c 07%

But the interesting thing is:
sudo -u nagios /usr/lib/nagios/plugins/check_disk -w 20% -c 07% 
does not have the problem.

If nrpe is started during boot, I have the problem.


After systemctl restart nagios-nrpe-server.service the problem is gone.


After 
systemctl stop [email protected]
systemctl stop nagios-nrpe-server.service
systemctl start nagios-nrpe-server.service
systemctl start [email protected]

the problem is back again




-----Ursprüngliche Nachricht-----
Von: Sebastiaan Couwenberg <[email protected]> 
Gesendet: Sonntag, 15. Februar 2026 07:30
An: Andreas Sachs <[email protected]>; [email protected]
Betreff: Re: [Pkg-nagios-devel] Bug#1128004: nagios-nrpe-server: Check disk 
reports permission problem after reboot.

Control: tags -1 unreproducible

This issue doesn't occur on any of the trixie systems I run NRPE on.

On 2/15/26 2:32 AM, Andreas Sachs wrote:
> after a reboot check_disk running from nrpe always reports

To reproduce the issue we'll need the exact command definition.

> /run/credentials/[email protected] is not accessible: Permission denied
> I can reproduce the error after every reboot.
> The error is not visible with sudo -u nagios check_disk...
> 
> After restarting nagios-nrpe-server the error is gone.
> 
> I have the problem on 5 servers.
> 
> According to chatgpt the problem is related to [email protected]
> in the systemd service file.

Use `systemctl edit nagios-nrpe-server` to create a service override.

Or update the command definition to ignore /run/credentials or all tmpfs 
filesystems.

Kind Regards,

Bas

-- 
  PGP Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1

Reply via email to