summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f710030)
raw | patch | inline | side by side (parent: f710030)
author | Scott Sanders <jssjr@github.com> | |
Fri, 19 Sep 2014 14:31:18 +0000 (10:31 -0400) | ||
committer | Florian Forster <octo@collectd.org> | |
Mon, 22 Sep 2014 06:55:29 +0000 (08:55 +0200) |
Pull-Request: #741
Signed-off-by: Florian Forster <octo@collectd.org>
Signed-off-by: Florian Forster <octo@collectd.org>
contrib/exec-nagios.px | patch | blob | history |
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)
{