[Ntop] ntop running as daemon, but I can't connect

Kurt Buff KBuff at zetron.com
Tue Nov 23 00:55:16 CET 2004


All,

I'm sure I'm just being blind, but would really appreciate a clue.

I've just put up a new NTOP box, running FreeBSD 5.3-Release, and NTOP 3.0.

It all seems to have installed correctly, and started, but when I try to
connect to it with my browser (firefox 0.9.2 under Windows, both Win2k Pro
and Windows Server 2003) I get a popup alert saying:

"The connection was refused when attempting to contact ntop:3000"

I've run through the man page several times, and don't see what I'm doing
wrong.

I've looked at /var/log/messages and haven't seen anything that strikes me,
and ntop.access.log is zero-length, even after trying to contact the app
with my browser.

Here's my copy of ntop.sh:

----------begin ntop.sh----------
#!/bin/sh

interfaces='xl0'
userid='ntop'
http_port='3000'
https_port='3001'
logdir='/home/ntop/ntop'
additional_args='-m 192.168.0.0/16,10.0.0.0/8 -P /home/ntop/ntop'

args='-d -L --set-pcap-nonblocking'

[ ! -z $interfaces ] && args="$args -i $interfaces"
[ ! -z $http_port ] && args="$args -w $http_port"
[ ! -z $https_port ] && args="$args -W $https_port"
[ ! -z $logdir ] && args="$args -a ${logdir}/ntop.access.log"
[ ! -z $userid ] && args="$args -u $userid"
[ ! -z "$additional_args" ] && args="$args $additional_args"

case "$1" in
start)
  if [ -d $logdir ]; then
    touch ${logdir}/ntop.access.log
    chown $userid ${logdir}/ntop.access.log
  fi
  if [ -x /usr/local/bin/ntop ]; then
    /usr/local/bin/ntop $args > /dev/null 2>&1 &
    echo -n ' ntop'
  fi
  ;;
stop)
  killall ntop > /dev/null 2>&1 && echo -n ' ntop'
  ;;
*)
  echo "Usage: `basename $0` {start|stop}" >&2
  exit 64
  ;;
esac

exit 0
----------end ntop.sh----------


Thanks,

Kurt


  



More information about the Ntop mailing list