Welcome, Guest. Please login or register.

Author Topic: Problems with arpwatch in NeDi 1.6: solved?  (Read 2500 times)

peter.minicka

  • Newbie
  • *
  • Posts: 2
    • View Profile
Problems with arpwatch in NeDi 1.6: solved?
« 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

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2893
    • View Profile
    • NeDi
Re: Problems with arpwatch in NeDi 1.6: solved?
« Reply #1 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!
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

peter.minicka

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Problems with arpwatch in NeDi 1.6: solved?
« Reply #2 on: December 05, 2017, 05:15:12 pm »
Thank you for your great work! Makes my life much easier!