git-svn-id: http://svn.centreon.com/Plugins/Dev@2490 6bcd3966-0018-0410-8128-fd23d134de7e
This commit is contained in:
parent
de32d3097f
commit
82de1fc05d
|
@ -128,7 +128,7 @@ sub main($$) {
|
|||
GetOptions("f|file=s" => \$opt_f, "m|man=s" => \$opt_m);
|
||||
|
||||
if (!$opt_f || !$opt_m) {
|
||||
print "fill_trapDB.pl : Usage : ./fill_trapDB -f configuration_file -m manufacturer_id\n";
|
||||
print "fill_trapDB : Usage : ./fill_trapDB -f configuration_file -m manufacturer_id\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ sub main() {
|
|||
$sth->finish();
|
||||
my $NAGIOS_TRAPS = $conf[0]."traps/";
|
||||
|
||||
$sth = $dbh->prepare("SELECT id, name from inventory_manufacturer");
|
||||
$sth = $dbh->prepare("SELECT id, name from traps_vendor");
|
||||
$sth->execute();
|
||||
my $snmpttIni = "";
|
||||
while (my ($man_id, $man_name) = $sth->fetchrow_array()) {
|
||||
|
|
Loading…
Reference in New Issue