{
$v{'type'} = $if_instances[$key];
$v{'values'} = [ $counters[$key], $counters[$key + 8] ];
- plugin_dispatch_values($if_instances[$key], \%v);
+ plugin_dispatch_values(\%v);
}
}
{
$v{'type_instance'} = $cpu_instances[$key];
$v{'values'} = [ $counters[$key] ];
- plugin_dispatch_values('cpu', \%v);
+ plugin_dispatch_values(\%v);
}
}
$v{'type_instance'} = $val;
$v{'values'} = [ $parts[5] * ($parts[6] - $parts[7]), $parts[5] * $parts[7] ];
- plugin_dispatch_values('df', \%v);
+ plugin_dispatch_values(\%v);
}
#####################################################################
@parts = split(/ +/, `$vzctl exec $veid cat /proc/loadavg`);
$v{'values'} = [ $parts[0], $parts[1], $parts[2] ];
- plugin_dispatch_values('load', \%v);
+ plugin_dispatch_values(\%v);
#####################################################################
# processes
{
$v{'type_instance'} = $key;
$v{'values'} = [ $ps_states->{$key} ];
- plugin_dispatch_values('ps_state', \%v);
+ plugin_dispatch_values(\%v);
}
#####################################################################
@lines = split(/\n/, `$vzctl exec $veid w -h`);
$v{'values'} = [ scalar(@lines) ];
- plugin_dispatch_values('users', \%v);
+ plugin_dispatch_values(\%v);
}
return 1;