diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-22 22:02:41 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-22 22:02:41 +0100 |
commit | ac4ec3b6bb4e14eaac2218250198d2c83b4701de (patch) | |
tree | 855b1036665c8ac12d4a782957b63f8a023074bf | |
parent | aba68cbb1cd0a423af21532e6b9d3985fc1340fb (diff) | |
download | vserver-monitoring-old-1.4.tar.gz vserver-monitoring-old-1.4.tar.bz2 vserver-monitoring-old-1.4.zip |
check_load: fix taint modeold-1.4
-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; |