summaryrefslogtreecommitdiffstats
path: root/check_mem
diff options
context:
space:
mode:
Diffstat (limited to 'check_mem')
-rwxr-xr-xcheck_mem1
1 files changed, 1 insertions, 0 deletions
diff --git a/check_mem b/check_mem
index 27bed7d..01288dd 100755
--- a/check_mem
+++ b/check_mem
@@ -141,6 +141,7 @@ sub handle_vserver($$$;$$) {
# fix taint mode
$ENV{PATH} = undef;
$ENV{'NAGIOS_PLUGIN'} = $1 if ($0 =~ m/(\w[\w\/]*\w)/);
+$ENV{'NAGIOS_PLUGIN'} = Nagios::Plugin::Functions::get_shortname();
my $n = init_nagios_plugin();
$n->getopts();