Jeylox has asked for the wisdom of the Perl Monks concerning the following question:
my $oracle_connector = Monitoring::Plugin->new( shortname => 'File attente STATUS =', usage => 'Usage : %s [ -t|--table=<threshold> ] [ -k|--condition=<threshold +> ] [ -c|--critical=<threshold> ] [ -w|--warning=<threshold> ]', ); $oracle_connector->add_arg( spec => 'condition|k=s', help => 'Condition for the request', label => 'REQUEST', required => 0, #Argument not required ); my $condition = $oracle_connector->opts->condition; my $where = "WHERE status = '$condition'"; my $sth = $db->prepare("SELECT COUNT (*) from CONNECTOR.$table $where +");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Argument problem when using a perl script
by halfcountplus (Hermit) on Apr 12, 2016 at 14:11 UTC | |
by graff (Chancellor) on Apr 12, 2016 at 22:28 UTC |