{"id":2363,"date":"2015-02-19T03:41:04","date_gmt":"2015-02-19T05:41:04","guid":{"rendered":"http:\/\/www.viazap.com.br\/?p=2363"},"modified":"2015-02-19T03:41:55","modified_gmt":"2015-02-19T05:41:55","slug":"how-to-monitor-network-with-ntop-on-ubuntu-e-debian-and-mikrotik","status":"publish","type":"post","link":"https:\/\/blog.clusterweb.com.br\/?p=2363","title":{"rendered":"How To Monitor Network with Ntop on Ubuntu e debian and Mikrotik"},"content":{"rendered":"<div>Install Ntop<\/div>\n<div><\/div>\n<div>$sudo apt-get install ntop<\/div>\n<div><\/div>\n<div>Next, Configure Ntop<\/div>\n<div><\/div>\n<div>Set Admin Password<\/div>\n<div><\/div>\n<div>$sudo ntop &#8211;set-admin-password<\/div>\n<div><\/div>\n<div>Restart Ntop Service<\/div>\n<p>$sudo \/etc\/init.d\/ntop restart<\/p>\n<div><\/div>\n<div>Then check if your ntop already running by visiting<\/div>\n<div><\/div>\n<div>http:\/\/[your_ntop_server_ip]:3000 (without [ ])<\/div>\n<div><!--more--><\/div>\n<div>Next, we configure ntop to receive Mikrotik&#8217;s traffic flow<\/div>\n<div><\/div>\n<div>Select Menu: Plugin -&gt; NetFlow -&gt; Activate<\/div>\n<div>Select Menu: Plugin -&gt; NetFlow -&gt; Configure<\/div>\n<div>Edit the Netflow Name = Mikrotik (activate)<\/div>\n<div>Edit Local Collector UDP Port = 2055<\/div>\n<div>Edit Virtual NetFlow Interface Network Address = [your_mikrotik_ip_in_cidr_format]<\/div>\n<div>Select Admin -&gt; Switch Interface -&gt; Select Mikrotik<\/div>\n<div><\/div>\n<div>If your ntop service is up and running, next step is to configure mikrotik.<\/div>\n<div><\/div>\n<div>Enable traffic-flow on mikrotik by following these steps below:<\/div>\n<div><\/div>\n<div>\n<div>[admin@Mikrotik] &gt; \/ip traffic-flow<\/div>\n<div>[admin@Mikrotik] \/ip traffic-flow&gt; set enabled=yes<\/div>\n<div>[admin@Mikrotik] \/ip traffic-flow&gt; print<\/div>\n<div>enabled: yes<\/div>\n<div>interfaces: all<\/div>\n<div>cache-entries: 4k<\/div>\n<div>active-flow-timeout: 30m<\/div>\n<div>inactive-flow-timeout: 15s<\/div>\n<div>[admin@Mikrotik] \/ip traffic-flow&gt; target<\/div>\n<div>[admin@Mikrotik] \/ip traffic-flow target&gt; add address=[your_cacti_server_ip]:2055 \\<\/div>\n<div>\\&#8230; version=9<\/div>\n<div>[admini@Mikrotik] \/ip traffic-flow target&gt; print<\/div>\n<div>Flags: X &#8211; disabled<\/div>\n<div># ADDRESS VERSION<\/div>\n<div>0 [your_cacti_server_ip]:2055 9<\/div>\n<div>[admin@Mikrotik] \/ip traffic-flow target&gt; print<\/div>\n<div>Flags: X &#8211; disabled<\/div>\n<div># ADDRESS VERSION<\/div>\n<div>0 [your_cacti_server_ip]:2055 9<\/div>\n<div><\/div>\n<\/div>\n<div>After a while your ntop will began collecting data from Mikrotik traffic Flow. Done!<\/div>\n<div><\/div>\n<div>*Update:<\/div>\n<div><\/div>\n<div>It seems that the current version of libpcap in Ubuntu 10.04 has bug in it. So I need to manually upgrade to the new version (libpcap-dev_1.1.1-2_all.deb)<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Install Ntop $sudo apt-get install ntop Next, Configure Ntop Set Admin Password $sudo ntop &#8211;set-admin-password Restart Ntop Service $sudo \/etc\/init.d\/ntop restart Then check if your ntop already running by visiting http:\/\/[your_ntop_server_ip]:3000 (without [ ])<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1,830,42,51,415,495,85,68,271,548],"tags":[832],"class_list":["post-2363","post","type-post","status-publish","format-standard","hentry","category-viazap","category-debian","category-leitura-recomendada","category-linux-linuxrs","category-mikrotik-2","category-profissional-de-ti","category-proxy","category-redes-2","category-seguranca-2","category-ubuntu-2","tag-how-to-monitor-network-with-ntop-on-ubuntu-10-04-and-mikrotik"],"_links":{"self":[{"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=\/wp\/v2\/posts\/2363","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2363"}],"version-history":[{"count":2,"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=\/wp\/v2\/posts\/2363\/revisions"}],"predecessor-version":[{"id":2365,"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=\/wp\/v2\/posts\/2363\/revisions\/2365"}],"wp:attachment":[{"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2363"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2363"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.clusterweb.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2363"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}