From a8e187b2e4005a45b59f6d593491001d3b163ade Mon Sep 17 00:00:00 2001 From: nirgal Date: Mon, 13 Nov 2017 18:05:24 +0100 Subject: [PATCH] output NRPE message "root needed" on stdout Messages on stderr are ignored by NRPE protocol. That message was never transmitted to the caller. Caller just said "Unable to read output". See https://bugs.debian.org/881043 --- needrestart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/needrestart b/needrestart index 2581a25..4c97061 100755 --- a/needrestart +++ b/needrestart @@ -199,7 +199,7 @@ print STDERR "$LOGPREF needrestart v$NeedRestart::VERSION\n" if($nrconf{verbosit my $uid = $<; if($uid) { if($opt_p) { - print STDERR "UNKN - This plugin needs to be run as root!\n"; + print "UNKN - This plugin needs to be run as root!\n"; exit 3; }