summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcheck_load5
1 files changed, 5 insertions, 0 deletions
diff --git a/check_load b/check_load
index 6ef76fb..6970af7 100755
--- a/check_load
+++ b/check_load
@@ -77,6 +77,11 @@ sub get_load($$) {
}
+# fix taint mode
+if ($0 =~ m/(\w[\w\/]*\w)/) {
+ $ENV{'NAGIOS_PLUGIN'} = $1;
+}
+
my $n = init_nagios_plugin();
$n->getopts();
alarm $n->opts->timeout;