git-svn-id: http://svn.centreon.com/Plugins/Dev@2490 6bcd3966-0018-0410-8128-fd23d134de7e

This commit is contained in:
Mat Sugumaran 2007-06-19 14:29:04 +00:00
parent 1e20aba230
commit f1fd09b7c6
2 changed files with 2 additions and 2 deletions

View File

@ -128,7 +128,7 @@ sub main($$) {
GetOptions("f|file=s" => \$opt_f, "m|man=s" => \$opt_m); GetOptions("f|file=s" => \$opt_f, "m|man=s" => \$opt_m);
if (!$opt_f || !$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; exit;
} }

View File

@ -59,7 +59,7 @@ sub main() {
$sth->finish(); $sth->finish();
my $NAGIOS_TRAPS = $conf[0]."traps/"; 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(); $sth->execute();
my $snmpttIni = ""; my $snmpttIni = "";
while (my ($man_id, $man_name) = $sth->fetchrow_array()) { while (my ($man_id, $man_name) = $sth->fetchrow_array()) {