Skip to content

Commit

Permalink
output NRPE message "root needed" on stdout
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nirgal authored Nov 13, 2017
1 parent ceb40a9 commit a8e187b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion needrestart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit a8e187b

Please sign in to comment.