After running following command:
./nedi.pl -N arpwatch
I've received following error:
DBD::mysql::db selectall_arrayref failed: Table 'nedi.dns0' doesn't exist at ./inc/libdb.pm line 2002.
DBD::mysql::db selectall_arrayref failed: Table 'nedi.dns0' doesn't exist at ./inc/libdb.pm line 2002.
To solve this error I changed line 1872 in ./inc/libmisc.pm from
if($amc{$mc}{'name'} and $main::opt{'N'} !~ /-iponly$/){ db::WriteDNS($amc{$mc}{'ip'},0,0,$amc{$mc}{'name'}) }
to
if($amc{$mc}{'name'} and $main::opt{'N'} !~ /-iponly$/){ db::WriteDNS($amc{$mc}{'ip'},'',0,$amc{$mc}{'name'}) }
Is there a better solution?
Greetings Peter