From 66f6024d2ff5d4918e1ddc2f7023d919126a8066 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 21 Dec 2004 19:41:36 +0000 Subject: Add ntop package. And the crowd goes wild! --- packages/ntop/ntop.xml | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 packages/ntop/ntop.xml (limited to 'packages') diff --git a/packages/ntop/ntop.xml b/packages/ntop/ntop.xml new file mode 100644 index 00000000..23175507 --- /dev/null +++ b/packages/ntop/ntop.xml @@ -0,0 +1,49 @@ + + + ntop + true + yes + Change + + + NTop + ntop is a network probe that shows network usage in a way similar to what top does for processes. In interactive mode, it displays the network status on the user's terminal. In Web mode, it acts as a Web server, creating an HTML dump of the network status. It sports a NetFlow/sFlow emitter/collector, an HTTP-based client interface for creating ntop-centric monitoring applications, and RRD for persistently storing traffic statistics. +
Diagnostics
+
+ + + + NTOP Admin Password + password + Enter the password for the NTOP Web GUI. Minimum 5 characters. + input + + + NTOP Admin Password AGAIN + passwordagain + input + + + + if($_POST['password'] == $_POST['passwordagain']) { + system("/usr/local/bin/ntop --set-admin-password=" . $_POST['password']); + system("killall ntop 2>/dev/null"); + system("/usr/local/etc/rc.d/ntop.sh"); + } else { + echo "Passwords do not match!"; + exit; + } + + + mwexec("/usr/bin/killall ntop"); + + + system("rm /usr/local/etc/rc.d/ntop.sh"); + $fout = fopen("/usr/local/etc/rc.d/ntop.sh","w"); + fwrite($fout, "#!/bin/sh\n\n"); + fwrite($fout, "/usr/local/bin/ntop -u root -d --ipv4 -M\n\n"); + fclose($fout); + system("chmod 555 /usr/local/etc/rc.d/ntop.sh"); + +
\ No newline at end of file -- cgit v1.2.3