X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=contrib%2Fexec-nagios.px;h=ec13b0a0753798bad5883c03cdd199374d308c68;hb=3c15b0e6fa66db107025ae08d3bbb9824d987a89;hp=c7f18c58c022daef4f9f239005ca7bfd3fc27678;hpb=400596160704146845940d7d9c4f794c0d2ddc03;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) {