diff --git a/lib/Core/WatchOutput.pm b/lib/Core/WatchOutput.pm
index 1bc2e95d533c033e7ecee434de051c00074cb081..e84aa08eddd3875fa82bffc0cf26ef204c4ba3ea 100644
--- a/lib/Core/WatchOutput.pm
+++ b/lib/Core/WatchOutput.pm
@@ -64,8 +64,8 @@ sub handler {
     my $command = $self->{command};
 
     my $output = run_command($command);
-    my $status = $? >> 8;
     chomp $output;
+    my $status = $? >> 8;
 
     return {
         "output" => [$self->{check_name}, "s"],