In the event others find this useful: I've attached a portion of an apache configuration that wraps around the actual ntop server (enabling me to upgrade to SSL). This much has been done many times before, but I added a shortcut URL for graphs that might be of interest to somebody.
The shortcut URL removes the search string (question mark, ampersands, and equals signs), making it more wieldy for emails and wikis. It uses the form /graph/START:END/TITLE.png using START, END, and TITLE as described at http://ntop:3000/plugins/rrdPlugin/arbgraph.html#. Pluses in the TITLE become spaces. Example: https://ntop/graph/now-1h:now/Network+Load+in+Last+Hour.png
# This proxies apache connections through to ntop's own server while hiding # the actual ntop server. The first RewriteRule enables a nice shortcut URL # in the form /graph/START:END/TITLE.png where START and END are times as noted # on http://ntop:3000/plugins/rrdPlugin/arbgraph.html and TITLE is the graph # title (also noted on that page). Pluses in the TITLE become spaces. # Example: https://ntop/graph/now-1h:now/Network+Load+in+Last+Hour.png # I use the proxy to wrap the site in SSL too. RewriteEngine On # You need to change arbiface below if you use something other than eth1 RewriteRule ^/graph/([^/]+):([^/]+)/(.*)\.png$ http://localhost:3000/plugins/rrdPlugin?action=arbreq&arbiface=eth1&arbfile=throughput&start=$1&end=$2&title=$3 [L,P,QSA] RewriteRule ^/graph/ /thptStats.html RewriteRule ^/graph$ /thptStats.html RewriteRule ^/?(.*)$ http://localhost:3000/$1 [P,L]
_______________________________________________ Ntop mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop
