From: Chris Lundquist Date: Wed, 27 Feb 2013 20:54:25 +0000 (-0800) Subject: [perl_openvz] use hostname over veid X-Git-Tag: collectd-5.5.0~251^2~5 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=095a6defb25e81cd6867e3822f1d29c02901900c;p=collectd.git [perl_openvz] use hostname over veid --- 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) {