in reply to Re^2: Creating a perl script for database monitoring
in thread Creating a perl script for database monitoring
The docs say "You can specify $value as an array of values and each will be checked against the thresholds." so try without the loop.
pojmy $data = $sth->fetchall_arrayref(); $sth->finish; my $code_retour = $oracle_connector->check_threshold( check => $data, warning => $oracle_connector->opts->warning, critical => $oracle_connector->opts->critical, ); $oracle_connector->plugin_exit( $code_retour, "File attente (@$data)" +);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Creating a perl script for database monitoring
by Jeylox (Initiate) on Apr 08, 2016 at 15:23 UTC | |
by poj (Abbot) on Apr 08, 2016 at 15:41 UTC |