collectd/collectd — pull request #741 by jssjr (2014-09-19 14:39:31+00:00)
Title: Fix exec-nagios.px return code handling

In exec-nagios.px the exit status contains the return code of the process, but does not correctly calculate the value. From http://perldoc.perl.org/functions/system.html the exit status should be shifted right by 8 to obtain the return code.

This was causing all scripts in my environment to return failure for any non-zero return code.