in reply to Re^4: Creating a perl script for database monitoring
in thread Creating a perl script for database monitoring
Sorry my mistake, $data is a reference to an array-of-arrays rather than an array. Try this
pojmy @count = map {$_->[0]} @$data; my $code_retour = $oracle_connector->check_threshold( check => \@count, warning => $oracle_connector->opts->warning, critical => $oracle_connector->opts->critical, ); $oracle_connector->plugin_exit($code_retour,"File attente (@count)" );
|
|---|