probe that shows the network usage, similar to what the popular top Unix command does. ntopng is based on libpcap and it has been written in a portable way in order to virtually run on every Unix platform, MacOSX and on Windows as well. ntopng users can use a a web browser to navigate through ntop (that acts as a web server) traffic information and get a dump of the network status. In the latter case, ntopng can be seen as a simple RMON-like agent with an embedded web interface. The use of: * a web interface. * limited configuration and administration via the web interface. * reduced CPU and memory usage (they vary according to network size and traffic)
26 lines
498 B
Bash
26 lines
498 B
Bash
#!@RCD_SCRIPTS_SHELL@
|
|
#
|
|
# $NetBSD: ntopng.sh,v 1.1 2016/04/08 16:59:07 adam Exp $
|
|
#
|
|
# PROVIDE: ntopng
|
|
# REQUIRE: DAEMON network
|
|
# KEYWORD: shutdown
|
|
|
|
if [ -f /etc/rc.subr ]; then
|
|
. /etc/rc.subr
|
|
fi
|
|
|
|
name="ntopng"
|
|
rcvar=$name
|
|
# XXX must be in tmp, because ntopng runs as nobody
|
|
pidfile="@VARBASE@/tmp/$name.pid"
|
|
command="@PREFIX@/bin/$name"
|
|
command_args="-e -G $pidfile"
|
|
|
|
if [ -f /etc/rc.subr ]; then
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|
|
else
|
|
echo -n "${name}"
|
|
@SU@ -c "${command}"
|
|
fi
|