summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6d0d396)
raw | patch | inline | side by side (parent: 6d0d396)
author | Chris Lundquist <chris.lundquist@bluebox.net> | |
Wed, 27 Feb 2013 20:54:25 +0000 (12:54 -0800) | ||
committer | Chris Lundquist <chris.lundquist@bluebox.net> | |
Wed, 27 Feb 2013 20:54:25 +0000 (12:54 -0800) |
bindings/perl/lib/Collectd/Plugins/OpenVZ.pm | patch | blob | history |
diff --git a/bindings/perl/lib/Collectd/Plugins/OpenVZ.pm b/bindings/perl/lib/Collectd/Plugins/OpenVZ.pm
index c8e64f5f18c020166077f18d102e463d3ea95317..fb397d4cd41775ad85ada96f600adc4ab49a25df 100644 (file)
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) {