X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=contrib%2Fexec-nagios.px;h=ec13b0a0753798bad5883c03cdd199374d308c68;hb=8aad55ab7d737a97d5927458b2b00885e27cae4d;hp=c7f18c58c022daef4f9f239005ca7bfd3fc27678;hpb=3faf514fd9b869cadda0f895e14e5036313c7781;p=collectd.git diff --git a/contrib/exec-nagios.px b/contrib/exec-nagios.px index c7f18c58..ec13b0a0 100755 --- a/contrib/exec-nagios.px +++ b/contrib/exec-nagios.px @@ -442,7 +442,7 @@ sub execute_script close ($fh); # Save the exit status of the check in $state - $state = $?; + $state = $? >> 8; if ($state == 0) {