diff --git a/src/traps/fill_trapDB b/src/traps/fill_trapDB index afb18dd2f..aa6932212 100644 --- a/src/traps/fill_trapDB +++ b/src/traps/fill_trapDB @@ -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; } diff --git a/src/traps/genSnmpttConfFile b/src/traps/genSnmpttConfFile index 4f40dbd35..d1e502586 100644 --- a/src/traps/genSnmpttConfFile +++ b/src/traps/genSnmpttConfFile @@ -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()) {