[Pkg-nagios-devel] Bug#1110265: check_users uses utmp which is deprecated in trixie

Paul Slootman paul at debian.org
Sat Aug 2 14:22:51 BST 2025


Package: monitoring-plugins-standard
Version: 2.4.0-3
Severity: normal

$ who
paul     sshd pts/0   2025-08-02 15:15 (10.0.4.1)
$ /usr/lib/nagios/plugins/check_users -c 3 -w 1
USERS OK - 0 users currently logged in |users=0;1;3;0

strace shows:

access("/var/run/utmpx", F_OK)          = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/var/run/utmp", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
access("/var/run/utmpx", F_OK)          = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/var/run/utmp", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(0x88, 0), ...}) = 0
write(1, "USERS OK - 0 users currently log"..., 54USERS OK - 0 users currently logged in |users=0;1;3;0

Perhaps the easiest way to fix is to call 'who -q' and process that
output:

$ who -q
paul
# users=1


Thanks,
Paul



More information about the Pkg-nagios-devel mailing list