[Pkg-nagios-devel] Bug#1128004: AW: Bug#1128004: nagios-nrpe-server: Check disk reports permission problem after reboot.
a.sachs at vsd.volley.de
a.sachs at vsd.volley.de
Sun Feb 15 11:09:19 GMT 2026
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 getty at tty1.service
systemctl stop nagios-nrpe-server.service
systemctl start nagios-nrpe-server.service
systemctl start getty at tty1.service
the problem is back again
-----Ursprüngliche Nachricht-----
Von: Sebastiaan Couwenberg <sebastic at xs4all.nl>
Gesendet: Sonntag, 15. Februar 2026 07:30
An: Andreas Sachs <as at vsd.volley.de>; 1128004 at bugs.debian.org
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/getty at tty1.service 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 Before=getty at tty1.service
> 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
More information about the Pkg-nagios-devel
mailing list