NeDi Community

NeDi Software Specific => Discovery => Topic started by: peter.minicka on December 05, 2017, 01:22:04 PM

Title: Problems with arpwatch in NeDi 1.6: solved?
Post by: peter.minicka on December 05, 2017, 01:22:04 PM
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

Code: [Select]
if($amc{$mc}{'name'} and $main::opt{'N'} !~ /-iponly$/){ db::WriteDNS($amc{$mc}{'ip'},0,0,$amc{$mc}{'name'}) }
to

Code: [Select]
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
Title: Re: Problems with arpwatch in NeDi 1.6: solved?
Post by: rickli on December 05, 2017, 04:04:17 PM
Nope, looks like I missed that one :) I got it right in 1.7 though...

Tx for this!
Title: Re: Problems with arpwatch in NeDi 1.6: solved?
Post by: peter.minicka on December 05, 2017, 05:15:12 PM
Thank you for your great work! Makes my life much easier!