Missing var declaration

This commit is contained in:
Calvo 2023-10-25 13:22:46 +02:00
parent 5f4c0fcad4
commit 078081be4e
1 changed files with 3 additions and 2 deletions

View File

@ -6674,12 +6674,13 @@ sub pandora_installation_monitoring($$) {
my $data_size = get_db_value($dbh, 'SELECT SUM(data_length)/(1024*1024) FROM information_schema.TABLES'); my $data_size = get_db_value($dbh, 'SELECT SUM(data_length)/(1024*1024) FROM information_schema.TABLES');
my $index_size = get_db_value($dbh, 'SELECT SUM(index_length)/(1024*1024) FROM information_schema.TABLES'); my $index_size = get_db_value($dbh, 'SELECT SUM(index_length)/(1024*1024) FROM information_schema.TABLES');
my $writes = $insert->{'Value'} + $update->{'Value'} + $replace->{'Value'} + $delete->{'Value'} ; my $writes = $insert->{'Value'} + $update->{'Value'} + $replace->{'Value'} + $delete->{'Value'} ;
my $reads = $select->{'Value'};
# Mysql Questions - Reads # Mysql Questions - Reads
$reads = 0 unless defined($reads); my $reads = 0 unless defined($reads);
$module->{'name'} = "mysql_questions_reads"; $module->{'name'} = "mysql_questions_reads";
$module->{'description'} = 'MySQL: Questions - Reads (#): Number of read questions'; $module->{'description'} = 'MySQL: Questions - Reads (#): Number of read questions';
$module->{'data'} = $select->{'Value'}; $module->{'data'} = $reads;
$module->{'unit'} = 'qu/s'; $module->{'unit'} = 'qu/s';
$module->{'type'} = 'generic_data_inc'; $module->{'type'} = 'generic_data_inc';
push(@modules, $module); push(@modules, $module);