Diagnostics: ntop Settings
ntop
3.0
Change
pkg_edit.php?xml=ntop.xml&id=0
ntop
ntop.sh
ntop
ntop Settings
/pkg_edit.php?xml=ntop.xml&id=0
Access ntop
http://$myurl:3000
ntop Admin Password
password
Enter the password for the NTOP Web GUI. Minimum 5 characters.
password
ntop Admin Password AGAIN
passwordagain
password
Interface
iface
lan
interfaces_selection
function sync_package_ntop() {
conf_mount_rw();
config_lock();
global $config;
global $input_errors;
$ntop_config =& $_POST;
$if_final = "";
if($ntop_config['password'] and $ntop_config['passwordagain']) {
if($ntop_config['password'] == $ntop_config['passwordagain']) {
$ifaces = $ntop_config['iface'];
$lan = $config['interfaces']['lan']['if'];
$if_final .= convert_friendly_interface_to_real_interface_name($if);
if(!$if_final) {
$if_final = $lan;
}
exec("/usr/local/bin/ntop --set-admin-password=" . $_POST['password'] . " &", $ntopout);
$start = "/usr/local/bin/ntop -i " . $if_final . " -u root -d --ipv4 -M -x 8102 -X 8192 &";
write_rcfile(array(
"file" => "ntop.sh",
"start" => $start,
"stop" => "/usr/bin/killall ntop"
)
);
restart_service("ntop");
} else {
$input_errors[] = "The provided passwords did not match.";
}
} else {
$input_errors[] = "You must provide (and confirm) ntop's password.";
}
conf_mount_ro();
config_unlock();
}
sync_package_ntop();
sync_package_ntop();