diff --git a/contrib/exec-nagios.px b/contrib/exec-nagios.px
index c7f18c58c022daef4f9f239005ca7bfd3fc27678..ec13b0a0753798bad5883c03cdd199374d308c68 100755 (executable)
--- a/contrib/exec-nagios.px
+++ b/contrib/exec-nagios.px
close ($fh);
# Save the exit status of the check in $state
- $state = $?;
+ $state = $? >> 8;
if ($state == 0)
{