diff options
-rwxr-xr-x | check_load | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |