From 095a6defb25e81cd6867e3822f1d29c02901900c Mon Sep 17 00:00:00 2001 From: Chris Lundquist Date: Wed, 27 Feb 2013 12:54:25 -0800 Subject: [PATCH] [perl_openvz] use hostname over veid --- bindings/perl/lib/Collectd/Plugins/OpenVZ.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/bindings/perl/lib/Collectd/Plugins/OpenVZ.pm b/bindings/perl/lib/Collectd/Plugins/OpenVZ.pm index c8e64f5f..fb397d4c 100644 --- a/bindings/perl/lib/Collectd/Plugins/OpenVZ.pm +++ b/bindings/perl/lib/Collectd/Plugins/OpenVZ.pm @@ -202,6 +202,7 @@ sub openvz_read { foreach $veid (@veids) { ($name = `$vzlist -Ho name $veid`) =~ s/^\s*(.*?)\s*$/$1/; + ($name = `$vzlist -Ho hostname $veid`) =~ s/^\s*(.*?)\s*$/$1/ if($name =~ /^-$/); $name = $veid if ($name =~ /^-$/); if($enable_interface) { -- 2.11.0