From 959f67b23ea8f594cdcba150dd88e6b8aabb9251 Mon Sep 17 00:00:00 2001 From: jim-p Date: Tue, 12 Aug 2014 16:33:03 -0400 Subject: Some blind changes to correct for ntopng differences. --- config/ntopng/ntop.xml | 119 +++++++++++++++++++++++-------------------------- 1 file changed, 57 insertions(+), 62 deletions(-) (limited to 'config/ntopng/ntop.xml') diff --git a/config/ntopng/ntop.xml b/config/ntopng/ntop.xml index 4db9e9c8..20582c86 100644 --- a/config/ntopng/ntop.xml +++ b/config/ntopng/ntop.xml @@ -7,9 +7,9 @@ /* $Id$ */ /* ========================================================================== */ /* - authng.xml + ntopng.xml part of pfSense (http://www.pfSense.com) - Copyright (C) 2008 Scott Ullrich + Copyright (C) 2014 ESF, LLC All rights reserved. */ /* ========================================================================== */ @@ -38,50 +38,50 @@ /* ========================================================================== */ ]]> - ntop - 3.0 - Diagnostics: ntop Settings + ntopng + 1.1 v0.1 + Diagnostics: ntopng Settings Change - pkg_edit.php?xml=ntop.xml&id=0 + pkg_edit.php?xml=ntopng.xml - ntop Settings - Set ntop settings such as password and port. + ntopng Settings + Set ntopng settings such as password and port.
Diagnostics
- /pkg_edit.php?xml=ntop.xml&id=0 + /pkg_edit.php?xml=ntopng.xml&id=0
- ntop - Access ntop + ntopng + Access ntopng
Diagnostics
- http://$myurl:3000 - ntop + https://$myurl:3001 + ntopng
- ntop - ntop.sh - ntop - NTOP bandwidth monitoring/graphing + ntopng + ntopng.sh + ntopng + ntopng bandwidth monitoring/graphing - ntop Settings + ntopng Settings /pkg_edit.php?xml=ntop.xml&id=0 - Access ntop - http://$myurl:3000 + Access ntopng + https://$myurl:3001 - ntop Admin Password + ntopng Admin Password password - Enter the password for the NTOP Web GUI. Minimum 5 characters. + Enter the password for the ntopng GUI. Minimum 5 characters, defaults to admin. password - ntop Admin Password AGAIN + Confirm ntopng Admin Password passwordagain password @@ -93,83 +93,78 @@ lan true - - Allow merging interfaces<br>(Def: Do not merge) - allowmerge - checkbox - "ntop.sh", + "file" => "ntopng.sh", "start" => $start, - "stop" => "/usr/bin/killall ntop" + "stop" => "/usr/bin/killall ntopng" ) ); - if (is_service_running("ntop")) { - stop_service("ntop"); - // Wait for ntop to shut down cleanly. + if (is_service_running("ntopng")) { + stop_service("ntopng"); + // Wait for ntopng to shut down cleanly. sleep(20); } - if (empty($ntop_config['password'])) - $ntop_config['password'] = "admin"; - unlink_if_exists("/var/db/ntop/ntop_pw.db"); - exec("/usr/local/bin/ntop --set-admin-password={$ntop_config['password']}"); + if (empty($ntopng_config['password'])) + $ntopng_config['password'] = "admin"; + $password = md5($ntopng_config['password']); + exec("/usr/local/bin/redis-cli SET user.admin.password " . escapeshellarg($password)); sleep(2); - start_service("ntop"); + start_service("ntopng"); conf_mount_ro(); config_unlock(); } ]]> - sync_package_ntop(); + sync_package_ntopng(); - sync_package_ntop(); + sync_package_ntopng(); - sync_package_ntop(); + sync_package_ntopng(); - exec("rm /usr/local/etc/rc.d/ntop*"); + exec("rm /usr/local/etc/rc.d/ntopng*");