my $oracle_connector = Monitoring::Plugin->new( shortname => 'File attente STATUS =', usage => 'Usage : %s [ -t|--table= ] [ -k|--condition= ] [ -c|--critical= ] [ -w|--warning= ]', ); $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");