****NTOP**** Fedora 13 [RESOLVIDO]

1. ****NTOP**** Fedora 13 [RESOLVIDO]

Joao
Mcclane

(usa Fedora)

Enviado em 19/08/2012 - 19:05h

Senhores,

Primeiramente sou novo na area dde admin. linux.

Possuo um script que chama o NTOP (executo apenas qndo meu acesso a internet esta lento), porem quando vou em IP > Trafic Directions > Local to Remote, ao invés de mostrar qual maquina está consumindo mais a minha banda apresenta a seguinte mensagem:

No Data to Display (YET)...


Script possui o seguinte comando:
#bin bash
/usr/sbin/ntop -u ntop -L -d -i eth0,eth1 --set-teste-password=teste1
ntop -i eth0,eth1

ETH0 GW saida
ETH0 GW interno


Vocês sabem o que pode estar ocorrendo?? Preciso -postar algo a+!?!?!!

Noa gaurdo.. obrigado...




  


2. Re: ****NTOP**** Fedora 13 [RESOLVIDO]

wesley santos
fed suco

(usa Fedora)

Enviado em 20/08/2012 - 11:05h

execute esse comando ntop no shell e post a saida
espero ter ajudado


3. Re: ****NTOP**** Fedora 13 [RESOLVIDO]

Thiago Penido
tp5

(usa Ubuntu)

Enviado em 20/08/2012 - 11:53h

execute esse comando ntop no shell e post a saida[2]



4. Seria isso??

Joao
mcclane

(usa Fedora)

Enviado em 20/08/2012 - 15:21h

Galera desculpme, mas seria isso??


Mon Aug 20 14:49:49 2012 NOTE: Interface merge enabled by default
Mon Aug 20 14:49:49 2012 Initializing gdbm databases
Mon Aug 20 14:49:49 2012 ntop will be started as user ntop
Mon Aug 20 14:49:49 2012 ntop v.3.3.10 Fedora RPM
Mon Aug 20 14:49:49 2012 Configured on Oct 10 2009 2:16:18, built on Oct 10 2009 02:16:22.
Mon Aug 20 14:49:49 2012 Copyright 1998-2009 by Luca Deri <deri@ntop.org>
Mon Aug 20 14:49:49 2012 Get the freshest ntop from http://www.ntop.org/
Mon Aug 20 14:49:49 2012 NOTE: ntop is running from 'ntop'
Mon Aug 20 14:49:49 2012 NOTE: (but see warning on man page for the --instance parameter)
Mon Aug 20 14:49:49 2012 NOTE: ntop libraries are in '/usr/lib'
Mon Aug 20 14:49:49 2012 Initializing ntop
Mon Aug 20 14:49:49 2012 No patterns to load: protocol guessing disabled.
Mon Aug 20 14:49:52 2012 Checking eth0 for additional devices
Mon Aug 20 14:49:52 2012 Added virtual interface: 'eth0:1'
Mon Aug 20 14:49:52 2012 Resetting traffic statistics for device eth0
Mon Aug 20 14:49:52 2012 Initializing device eth0 (0)
Mon Aug 20 14:49:52 2012 DLT: Device 0 [eth0] is 1, mtu 1514, header 14
Mon Aug 20 14:49:52 2012 **WARNING** Truncated network size (device eth1) to 1024 hosts (real netmask 255.255.248.0)
Mon Aug 20 14:49:52 2012 Checking eth1 for additional devices
Mon Aug 20 14:49:52 2012 Resetting traffic statistics for device eth1
Mon Aug 20 14:49:52 2012 Initializing device eth1 (2)
Mon Aug 20 14:49:52 2012 DLT: Device 2 [eth1] is 1, mtu 1514, header 14
Mon Aug 20 14:49:52 2012 Initializing gdbm databases
Mon Aug 20 14:49:52 2012 VENDOR: Loading MAC address table.
Mon Aug 20 14:49:52 2012 VENDOR: Checking for MAC address table file
Mon Aug 20 14:49:52 2012 VENDOR: File '/etc/ntop/specialMAC.txt.gz' does not need to be reloaded
Mon Aug 20 14:49:52 2012 VENDOR: ntop continues ok
Mon Aug 20 14:49:52 2012 VENDOR: Checking for MAC address table file
Mon Aug 20 14:49:52 2012 VENDOR: File '/etc/ntop/oui.txt.gz' does not need to be reloaded
Mon Aug 20 14:49:52 2012 VENDOR: ntop continues ok
Mon Aug 20 14:49:52 2012 Fingerprint: Loading signature file
Mon Aug 20 14:49:52 2012 Fingerprint: Checking for Fingerprint file... file
Mon Aug 20 14:49:52 2012 **WARNING** Fingerprint: Unable to open file 'etter.finger.os'
Mon Aug 20 14:49:52 2012 **ERROR** Failed to connect to MySQL: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

[localhost:root::ntop]
Mon Aug 20 14:49:52 2012 Initializing external applications
Mon Aug 20 14:49:52 2012 THREADMGMT[t3020602224]: SFP: Started thread for fingerprinting
Mon Aug 20 14:49:52 2012 THREADMGMT[t3020602224]: SFP: Fingerprint scan thread starting [p25004]
Mon Aug 20 14:49:52 2012 THREADMGMT[t3008363376]: SIH: Started thread for idle hosts detection
Mon Aug 20 14:49:52 2012 Calling plugin start functions (if any)
Mon Aug 20 14:49:52 2012 THREADMGMT[t3008363376]: SIH: Idle host scan thread starting [p25004]
Mon Aug 20 14:49:52 2012 GeoIP: loaded config file /etc/ntop/GeoLiteCity.dat
Mon Aug 20 14:49:52 2012 GeoIP: loaded ASN config file /etc/ntop/GeoIPASNum.dat
Mon Aug 20 14:49:52 2012 SSL is present but https is disabled: use -W <https port> for enabling it
Mon Aug 20 14:49:52 2012 INITWEB: Initializing web server
Mon Aug 20 14:49:52 2012 INITWEB: Initializing TCP/IP socket connections for web server
Mon Aug 20 14:49:52 2012 INITWEB: Initialized socket, port 3000, address (any)
Mon Aug 20 14:49:52 2012 INITWEB: Waiting for HTTP connections on port 3000
Mon Aug 20 14:49:52 2012 INITWEB: Starting web server
Mon Aug 20 14:49:52 2012 THREADMGMT[t2995780464]: INITWEB: Started thread for web server
Mon Aug 20 14:49:52 2012 Listening on [eth0,eth0:1,eth1]
Mon Aug 20 14:49:52 2012 THREADMGMT[t2995780464]: WEB: Server connection thread starting [p25004]
Mon Aug 20 14:49:52 2012 Loading Plugins
Mon Aug 20 14:49:52 2012 Note: SIGPIPE handler set (ignore)
Mon Aug 20 14:49:52 2012 THREADMGMT[t2995780464]: WEB: Server connection thread running [p25004]
Mon Aug 20 14:49:52 2012 Searching for plugins in /usr/lib/ntop/plugins
Mon Aug 20 14:49:52 2012 WEB: ntop's web server is now processing requests
Mon Aug 20 14:49:52 2012 NETFLOW: Welcome to NetFlow.(C) 2002-08 by Luca Deri
Mon Aug 20 14:49:52 2012 LASTSEEN: Welcome to Host Last Seen. (C) 1999 by Andrea Marangoni
Mon Aug 20 14:49:52 2012 CPACKET: Welcome to cPacket.(C) 2008 by Luca Deri
Mon Aug 20 14:49:52 2012 SFLOW: Welcome to sFlow.(C) 2002-04 by Luca Deri
Mon Aug 20 14:49:52 2012 ICMP: Welcome to ICMP Watch. (C) 1999-2005 by Luca Deri
Mon Aug 20 14:49:52 2012 RRD: Welcome to Round-Robin Database. (C) 2002-09 by Luca Deri.
Mon Aug 20 14:49:52 2012 Calling plugin start functions (if any)
Mon Aug 20 14:49:52 2012 RRD: Welcome to the RRD plugin
Mon Aug 20 14:49:52 2012 RRD: Mask for new directories is 0700
Mon Aug 20 14:49:52 2012 RRD: Mask for new files is 0066
Mon Aug 20 14:49:52 2012 RRD_DEBUG: Parameters:
Mon Aug 20 14:49:52 2012 RRD_DEBUG: dumpInterval 300 seconds
Mon Aug 20 14:49:52 2012 RRD_DEBUG: dumpShortInterval 10 seconds
Mon Aug 20 14:49:52 2012 RRD_DEBUG: dumpHours 72 hours by 300 seconds
Mon Aug 20 14:49:52 2012 RRD_DEBUG: dumpDays 90 days by hour
Mon Aug 20 14:49:52 2012 RRD_DEBUG: dumpMonths 36 months by day
Mon Aug 20 14:49:52 2012 RRD_DEBUG: dumpDomains no
Mon Aug 20 14:49:52 2012 RRD_DEBUG: dumpFlows no
Mon Aug 20 14:49:52 2012 RRD_DEBUG: dumpSubnets no
Mon Aug 20 14:49:52 2012 RRD_DEBUG: dumpHosts no
Mon Aug 20 14:49:52 2012 RRD_DEBUG: dumpInterfaces yes
Mon Aug 20 14:49:52 2012 RRD_DEBUG: dumpASs no
Mon Aug 20 14:49:52 2012 RRD_DEBUG: dumpMatrix no
Mon Aug 20 14:49:52 2012 RRD_DEBUG: dumpDetail medium
Mon Aug 20 14:49:52 2012 RRD_DEBUG: hostsFilter
Mon Aug 20 14:49:52 2012 RRD_DEBUG: rrdPath /var/lib/ntop/rrd [normal]
Mon Aug 20 14:49:52 2012 RRD_DEBUG: rrdPath /var/lib/ntop/rrd [dynamic/volatile]
Mon Aug 20 14:49:52 2012 RRD_DEBUG: umask 0066
Mon Aug 20 14:49:52 2012 RRD_DEBUG: DirPerms 0700
Mon Aug 20 14:49:52 2012 THREADMGMT: RRD: Started thread (t2983197552) for data collection
Mon Aug 20 14:49:52 2012 THREADMGMT[t2983197552]: RRD: Data collection thread starting [p25004]
Mon Aug 20 14:49:52 2012 INIT: Created pid file (/var/run/ntop.pid)
Mon Aug 20 14:49:52 2012 THREADMGMT[t3077961776]: ntop RUNSTATE: INITNONROOT(3)
Mon Aug 20 14:49:52 2012 Now running as requested user 'ntop' (497:492)
Mon Aug 20 14:49:52 2012 Note: Reporting device initally set to 0 [eth0] (merged)
Mon Aug 20 14:49:52 2012 THREADMGMT[t3077961776]: ntop RUNSTATE: RUN(4)
Mon Aug 20 14:49:52 2012 THREADMGMT[t2972707696]: NPS(1): Started thread for network packet sniffing [eth0]
Mon Aug 20 14:49:52 2012 THREADMGMT[t2972707696]: NPS(eth0): pcapDispatch thread starting [p25004]
Mon Aug 20 14:49:52 2012 THREADMGMT[t2962217840]: NPS(3): Started thread for network packet sniffing [eth1]
Mon Aug 20 14:49:52 2012 THREADMGMT[t3008363376]: SIH: Idle host scan thread running [p25004]
Mon Aug 20 14:49:52 2012 THREADMGMT[t3020602224]: SFP: Fingerprint scan thread running [p25004]
Mon Aug 20 14:49:52 2012 THREADMGMT[t2962217840]: NPS(eth1): pcapDispatch thread starting [p25004]
Mon Aug 20 14:49:52 2012 THREADMGMT[t2972707696]: NPS(eth0): pcapDispatch thread running [p25004]
Mon Aug 20 14:49:52 2012 THREADMGMT[t2962217840]: NPS(eth1): pcapDispatch thread running [p25004]
Mon Aug 20 14:49:57 2012 CHKVER: Checking current ntop version at version.ntop.org/version.xml
Mon Aug 20 14:49:57 2012 CHKVER: Version file is from 'version.ntop.org'
Mon Aug 20 14:49:57 2012 CHKVER: as of date is '2011-08-15T11:00:47'
Mon Aug 20 14:49:57 2012 CHKVER: This version of ntop is an OBSOLETE and UNSUPPORTED version - please upgrade
Mon Aug 20 14:50:02 2012 THREADMGMT[t2951727984]: RRD: Started thread for throughput data collection
Mon Aug 20 14:50:02 2012 THREADMGMT[t2951727984]: RRD: Throughput data collection: Thread starting [p25004]
Mon Aug 20 14:50:02 2012 THREADMGMT[t2983197552]: RRD: Data collection thread running [p25004]
Mon Aug 20 14:50:02 2012 THREADMGMT[t2951727984]: RRD: Throughput data collection: Thread running [p25004]
Mon Aug 20 14:50:20 2012 NOTE: -L | --use-syslog=facility not specified, child processes will log to the default (24).
Mon Aug 20 14:54:21 2012 ECONNRESET during sending of page to web client
Mon Aug 20 14:54:21 2012 EPIPE during sending of page to web client
Mon Aug 20 14:56:21 2012 ECONNRESET during sending of page to web client
Mon Aug 20 14:56:21 2012 EPIPE during sending of page to web client
Mon Aug 20 14:58:21 2012 EPIPE during sending of page to web client
Mon Aug 20 14:58:21 2012 EPIPE during sending of page to web client
Mon Aug 20 14:58:21 2012 EPIPE during sending of page to web client
Mon Aug 20 15:00:22 2012 EPIPE during sending of page to web client
Mon Aug 20 15:00:48 2012 CLEANUP[t3077961776]: ntop caught signal 2 [state=4]
Mon Aug 20 15:00:48 2012 THREADMGMT[t3077961776]: ntop RUNSTATE: SHUTDOWN(7)
Mon Aug 20 15:00:48 2012 CLEANUP[t3077961776] catching thread is unknown
Mon Aug 20 15:00:48 2012 CLEANUP: Running threads SFP SIH WEB NPS(eth0) NPS(eth1)
Mon Aug 20 15:00:48 2012 THREADMGMT[t2962217840]: NPS(eth1): pcapDispatch thread terminated [p25004]
Mon Aug 20 15:00:48 2012 STATS: 104,940 packets received by filter on eth0
Mon Aug 20 15:00:48 2012 STATS: 0 packets dropped (according to libpcap)
Mon Aug 20 15:00:48 2012 STATS: 0 packets dropped (by ntop)
Mon Aug 20 15:00:48 2012 Joining thread NPS(eth0) [t2972707696]
Mon Aug 20 15:00:48 2012 THREADMGMT[t2972707696]: NPS(eth0): pcapDispatch thread terminated [p25004]
Mon Aug 20 15:00:48 2012 CLEANUP: Locking purge mutex (may block for a little while)
Mon Aug 20 15:00:48 2012 CLEANUP: Locked purge mutex, continuing shutdown
Mon Aug 20 15:00:48 2012 CLEANUP: Continues (still running SFP SIH WEB)
Mon Aug 20 15:00:48 2012 FREE_HOST: Start, 1 device(s)
Mon Aug 20 15:00:48 2012 FREE_HOST: End, freed 0
Mon Aug 20 15:00:48 2012 FREE_HOST: Start, 1 device(s)
Mon Aug 20 15:00:48 2012 FREE_HOST: End, freed 0
Mon Aug 20 15:00:48 2012 FREE_HOST: Start, 1 device(s)
Mon Aug 20 15:00:48 2012 FREE_HOST: End, freed 0
Mon Aug 20 15:00:48 2012 PLUGIN_TERM: Unloading plugins (if any)
Mon Aug 20 15:00:48 2012 RRD: Shutting down, locking mutex (may block for a little while)
Mon Aug 20 15:00:48 2012 RRD: Locked mutex, continuing shutdown
Mon Aug 20 15:00:48 2012 THREADMGMT[t3077961776]: RRD: killThread(rrdThread) succeeded
Mon Aug 20 15:00:48 2012 THREADMGMT[t3077961776]: RRD: killThread(rrdTrafficThread) succeeded
Mon Aug 20 15:00:48 2012 THREADMGMT[t3077961776]: RRD: Plugin shutdown continuing
Mon Aug 20 15:00:48 2012 RRD: Thanks for using the rrdPlugin
Mon Aug 20 15:00:48 2012 RRD: Done
Mon Aug 20 15:00:48 2012 CLEANUP: Freeing device eth0
Mon Aug 20 15:00:48 2012 CLEANUP: Freeing device eth0:1
Mon Aug 20 15:00:48 2012 CLEANUP: Freeing device eth1
Mon Aug 20 15:00:48 2012 **WARNING** TERM: Unable to remove pid file (/var/run/ntop.pid)
Mon Aug 20 15:00:48 2012 CLEANUP: Clean up complete
Mon Aug 20 15:00:48 2012 THREADMGMT[t3077961776]: ntop RUNSTATE: TERM(8)
Mon Aug 20 15:00:48 2012 CLEANUP[t3077961776]: Still running threads SFP SIH WEB
Mon Aug 20 15:00:48 2012 ===================================
Mon Aug 20 15:00:48 2012 ntop is shutdown...
Mon Aug 20 15:00:48 2012 ===================================


5. Re: ****NTOP**** Fedora 13 [RESOLVIDO]

wesley santos
fed suco

(usa Fedora)

Enviado em 20/08/2012 - 15:26h

verifique o mysql
ERROR** Failed to connect to MySQL: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)


6. Re: ****NTOP**** Fedora 13 [RESOLVIDO]

Thiago Penido
tp5

(usa Ubuntu)

Enviado em 22/08/2012 - 11:17h

como disse o amigo acima
o erro que aparece é esse

Mon Aug 20 14:49:52 2012 **ERROR** Failed to connect to MySQL: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)


Parece que foi removido algo do seu temp, porque ele nao consegue conectar,
se pode tentar o seguinte

/scripts/restartsrv_mysql

Se não rolar

/scripts/mysqlup --force



7. Re: ****NTOP**** Fedora 13 [RESOLVIDO]

Joao
mcclane

(usa Fedora)

Enviado em 03/12/2013 - 10:51h

Senhores...

Fiz aklguns testes e nao consegui resolver. Reinstalei todo o serviço e voltou a funcionar normalmente.

Obriogado a todos que ajudaram.






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts