Hi all - I seem to get errors when-ever I have RRD enabled for history
however :)  Here's the log of what happens after I restart ntop (with rrd
enabled).  Any ideas?  See bottom of log.

[code]
May 29 17:31:40 home ntop[4475]:   THREADMGMT[t3073803968]: ntop RUNSTATE:
PREINIT(1)
May 29 17:31:40 home ntop[4475]:   THREADMGMT[t3073803968]: ntop RUNSTATE:
INIT(2)
May 29 17:31:40 home ntop[4475]:   ntop v.3.3 (Dag Apt RPM Repository)
May 29 17:31:40 home ntop[4475]:   Configured on Oct  2 2007  1:09:11, built
on Oct  2 2007 01:10:31.
May 29 17:31:40 home ntop[4475]:   Copyright 1998-2007 by Luca Deri <
[EMAIL PROTECTED]>
May 29 17:31:40 home ntop[4475]:   Get the freshest ntop from
http://www.ntop.org/
May 29 17:31:40 home ntop[4475]:   NOTE: ntop is running from 'ntop'
May 29 17:31:40 home ntop[4475]:   NOTE: (but see warning on man page for
the --instance parameter)
May 29 17:31:40 home ntop[4475]:   NOTE: ntop libraries are in '/usr/lib'
May 29 17:31:40 home ntop[4475]:   Initializing ntop
May 29 17:31:40 home ntop:    Processing file /etc/ntop.conf for
parameters...
May 29 17:31:40 home ntop: Thu May 29 17:31:40 2008  NOTE: Interface merge
enabled by default
May 29 17:31:40 home ntop: Thu May 29 17:31:40 2008  Initializing gdbm
databases
May 29 17:31:40 home kernel: device eth0 entered promiscuous mode
May 29 17:31:40 home kernel: audit(1212046300.167:54): dev=eth0 prom=256
old_prom=0 auid=4294967295
May 29 17:31:40 home ntop[4475]:   Checking eth0 for additional devices
May 29 17:31:40 home ntop[4475]:   Resetting traffic statistics for device
eth0
May 29 17:31:40 home ntop[4475]:   Initializing device eth0 (0)
May 29 17:31:40 home ntop[4475]:   DLT: Device 0 [eth0] is 1, mtu 1514,
header 14
May 29 17:31:40 home ntop[4475]:   Initializing gdbm databases
May 29 17:31:40 home ntop[4475]:   VENDOR: Loading MAC address table.
May 29 17:31:40 home ntop[4475]:   VENDOR: Checking for MAC address table
file
May 29 17:31:40 home ntop[4475]:   VENDOR: File
'/etc/ntop/specialMAC.txt.gz' does not need to be reloaded
May 29 17:31:40 home ntop[4475]:   VENDOR: ntop continues ok
May 29 17:31:40 home ntop[4475]:   VENDOR: Checking for MAC address table
file
May 29 17:31:40 home ntop[4475]:   VENDOR: File '/etc/ntop/oui.txt.gz' does
not need to be reloaded
May 29 17:31:40 home ntop[4475]:   VENDOR: ntop continues ok
May 29 17:31:40 home ntop[4475]:   Fingerprint: Loading signature file
May 29 17:31:40 home ntop[4475]:   Fingerprint: Checking for Fingerprint
file... file
May 29 17:31:40 home ntop[4475]:   Fingerprint: Loading file
'/etc/ntop/etter.finger.os.gz'
May 29 17:31:40 home ntop[4475]:   Fingerprint: ...loaded 1765 records
May 29 17:31:40 home ntop[4476]:   INIT: Bye bye: I'm becoming a daemon...
May 29 17:31:40 home ntop: NOTE: --use-syslog, no facility specified, using
default value.  Did you forget the =?
May 29 17:31:40 home ntop[4476]:   THREADMGMT[t3073803968]: Now running as a
daemon
May 29 17:31:40 home ntop[4476]:   ASN: Checking for Autonomous System
Number table file
May 29 17:31:40 home ntop[4476]:   **WARNING** ASN: Unable to open file
'AS-list.txt'
May 29 17:31:40 home ntop[4475]:   INIT: Parent process is exiting (this is
normal)
May 29 17:31:40 home ntop[4476]:   I18N: Default language (from ntop host)
is 'en_US'
May 29 17:31:40 home ntop: NOTE: --use-syslog, no facility specified, using
default value.  Did you forget the =?
May 29 17:31:40 home ntop[4476]:   I18N: This instance of ntop supports 0
additional language(s)
May 29 17:31:40 home ntop: ntop startup succeeded
May 29 17:31:40 home ntop[4476]:   IP2CC: Checking for IP address <->
Country Code mapping file
May 29 17:31:40 home ntop[4476]:   IP2CC: Loading file
'/etc/ntop/p2c.opt.table.gz'
May 29 17:31:40 home ntop[4476]:   IP2CC: ...found 52395 lines
May 29 17:31:40 home ntop[4476]:   Database support not compiled into ntop
May 29 17:31:40 home ntop[4476]:   Initializing external applications
May 29 17:31:40 home ntop[4476]:   THREADMGMT[t3049458592]: NPA: Started
thread for network packet analyzer (eth0)
May 29 17:31:40 home ntop[4476]:   THREADMGMT[t3038968736]: SFP: Started
thread for fingerprinting
May 29 17:31:40 home ntop[4476]:   THREADMGMT[t3028478880]: SIH: Started
thread for idle hosts detection
May 29 17:31:40 home ntop[4476]:   THREADMGMT[t3017989024]: DNSAR(1):
Started thread for DNS address resolution
May 29 17:31:40 home ntop[4476]:   THREADMGMT[t3007499168]: DNSAR(2):
Started thread for DNS address resolution
May 29 17:31:40 home ntop[4476]:   THREADMGMT[t3049458592]: NPA: network
packet analyzer (packet processor) thread running [p4476]
May 29 17:31:40 home ntop[4476]:   THREADMGMT[t3038968736]: SFP: Fingerprint
scan thread starting [p4476]
May 29 17:31:40 home ntop[4476]:   THREADMGMT[t3028478880]: SIH: Idle host
scan thread starting [p4476]
May 29 17:31:40 home ntop[4476]:   THREADMGMT[t3017989024]: DNSAR(1):
Address resolution thread running
May 29 17:31:40 home ntop[4476]:   THREADMGMT[t3007499168]: DNSAR(2):
Address resolution thread running
May 29 17:31:40 home ntop[4476]:   THREADMGMT[t2997009312]: DNSAR(3):
Address resolution thread running
May 29 17:31:40 home ntop[4476]:   THREADMGMT[t2997009312]: DNSAR(3):
Started thread for DNS address resolution
May 29 17:31:40 home ntop[4476]:   Calling plugin start functions (if any)
May 29 17:31:40 home ntop[4476]:   SSL is present but https is disabled: use
-W <https port> for enabling it
May 29 17:31:40 home ntop[4476]:   INITWEB: Initializing web server
May 29 17:31:40 home ntop[4476]:   INITWEB: Initializing TCP/IP socket
connections for web server
May 29 17:31:40 home ntop[4476]:   INITWEB: Initialized socket, port 3000,
address (any)
May 29 17:31:40 home ntop[4476]:   INITWEB: Waiting for HTTP connections on
port 3000
May 29 17:31:40 home ntop[4476]:   INITWEB: Starting web server
May 29 17:31:40 home ntop[4476]:   THREADMGMT[t2986519456]: INITWEB: Started
thread for web server
May 29 17:31:40 home ntop[4476]:   Listening on [eth0]
May 29 17:31:40 home ntop[4476]:   Loading Plugins
May 29 17:31:40 home ntop[4476]:   Searching for plugins in
/usr/lib/ntop/plugins
May 29 17:31:40 home ntop[4476]:   LASTSEEN: Welcome to Host Last Seen. (C)
1999 by Andrea Marangoni
May 29 17:31:40 home ntop[4476]:   NETFLOW: Welcome to NetFlow.(C) 2002-07
by Luca Deri
May 29 17:31:40 home ntop[4476]:   THREADMGMT[t2986519456]: WEB: Server
connection thread starting [p4476]
May 29 17:31:40 home ntop[4476]:   Note: SIGPIPE handler set (ignore)
May 29 17:31:40 home ntop[4476]:   THREADMGMT[t2986519456]: WEB: Server
connection thread running [p4476]
May 29 17:31:40 home ntop[4476]:   WEB: ntop's web server is now processing
requests
May 29 17:31:40 home ntop[4476]:   SFLOW: Welcome to sFlow.(C) 2002-04 by
Luca Deri
May 29 17:31:40 home ntop[4476]:   PDA: Welcome to PDA. (C) 2001-2005 by
L.Deri and W.Brock
May 29 17:31:40 home ntop[4476]:   RRD: Welcome to Round-Robin Databases.
(C) 2002-07 by Luca Deri.
May 29 17:31:40 home ntop[4476]:   ICMP: Welcome to ICMP Watch. (C)
1999-2005 by Luca Deri
May 29 17:31:40 home ntop[4476]:   Remote: Welcome to Remote. (C) 2006-07 by
L.Deri
May 29 17:31:40 home ntop[4476]:   Calling plugin start functions (if any)
May 29 17:31:40 home ntop[4476]:   RRD: Welcome to the RRD plugin
May 29 17:31:40 home ntop[4476]:   RRD: Mask for new directories is 0700
May 29 17:31:40 home ntop[4476]:   RRD: Mask for new files is 0066
May 29 17:31:40 home ntop[4476]:   RRD_DEBUG: Parameters:
May 29 17:31:40 home ntop[4476]:   RRD_DEBUG:     dumpInterval 300 seconds
May 29 17:31:40 home ntop[4476]:   RRD_DEBUG:     dumpShortInterval 10
seconds
May 29 17:31:40 home ntop[4476]:   RRD_DEBUG:     dumpHours 72 hours by 300
seconds
May 29 17:31:40 home ntop[4476]:   RRD_DEBUG:     dumpDays 90 days by hour
May 29 17:31:40 home ntop[4476]:   RRD_DEBUG:     dumpMonths 36 months by
day
May 29 17:31:40 home ntop[4476]:   RRD_DEBUG:     dumpDomains yes
May 29 17:31:40 home ntop[4476]:   RRD_DEBUG:     dumpFlows no
May 29 17:31:40 home ntop[4476]:   RRD_DEBUG:     dumpHosts yes
May 29 17:31:40 home ntop[4476]:   RRD_DEBUG:     dumpInterfaces yes
May 29 17:31:40 home ntop[4476]:   RRD_DEBUG:     dumpASs yes
May 29 17:31:40 home ntop[4476]:   RRD_DEBUG:     dumpMatrix no
May 29 17:31:40 home ntop[4476]:   RRD_DEBUG:     dumpDetail high
May 29 17:31:40 home ntop[4476]:   RRD_DEBUG:     hostsFilter
May 29 17:31:40 home ntop[4476]:   RRD_DEBUG:     rrdPath /var/ntop/rrd
May 29 17:31:40 home ntop[4476]:   RRD_DEBUG:     umask 0066
May 29 17:31:40 home ntop[4476]:   RRD_DEBUG:     DirPerms 0700
May 29 17:31:40 home ntop[4476]:   THREADMGMT: RRD: Started thread
(t2975706016) for data collection
May 29 17:31:40 home ntop[4476]:   INIT: Created pid file
(/var/run/ntop.pid)
May 29 17:31:40 home ntop[4476]:   THREADMGMT[t2975706016]: RRD: Data
collection thread starting [p4476]
May 29 17:31:40 home ntop[4476]:   THREADMGMT[t3073803968]: ntop RUNSTATE:
INITNONROOT(3)
May 29 17:31:40 home ntop[4476]:   Now running as requested user 'ntop'
(419:420)
May 29 17:31:40 home ntop[4476]:   Note: Reporting device initally set to 0
[eth0] (merged)
May 29 17:31:40 home ntop[4476]:   THREADMGMT[t3073803968]: ntop RUNSTATE:
RUN(4)
May 29 17:31:40 home ntop[4476]:   THREADMGMT[t2965216160]: NPS(1): Started
thread for network packet sniffing [eth0]
May 29 17:31:40 home ntop[4476]:   THREADMGMT[t3038968736]: SFP: Fingerprint
scan thread running [p4476]
May 29 17:31:40 home ntop[4476]:   THREADMGMT[t2965216160]: NPS(eth0):
pcapDispatch thread starting [p4476]
May 29 17:31:40 home ntop[4476]:   THREADMGMT[t2965216160]: NPS(eth0):
pcapDispatch thread running [p4476]
May 29 17:31:40 home ntop[4476]:   THREADMGMT[t3028478880]: SIH: Idle host
scan thread running [p4476]
May 29 17:31:50 home ntop[4476]:   THREADMGMT[t2937547680]: RRD: Started
thread for throughput data collection
May 29 17:31:50 home ntop[4476]:   THREADMGMT[t2975706016]: RRD: Data
collection thread running [p4476]
May 29 17:31:50 home ntop[4476]:   THREADMGMT[t2937547680]: RRD: Throughput
data collection: Thread starting [p4476]
May 29 17:31:50 home ntop[4476]:   THREADMGMT[t2937547680]: RRD: Throughput
data collection: Thread running [p4476]
May 29 17:32:08 home dnsmasq[3220]: DHCPINFORM(eth1) 10.1.1.15900:16:e6:4f:a9:26
May 29 17:32:08 home dnsmasq[3220]: DHCPACK(eth1)
10.1.1.15900:16:e6:4f:a9:26 greg-6b5fc2d66f
May 29 17:32:11 home dnsmasq[3220]: DHCPINFORM(eth1) 10.1.1.15900:16:e6:4f:a9:26
May 29 17:32:11 home dnsmasq[3220]: DHCPACK(eth1)
10.1.1.15900:16:e6:4f:a9:26 greg-6b5fc2d66f
May 29 17:32:29 home ntop[4476]:   RRD: Shutting down, locking mutex (may
block for a little while)
May 29 17:32:29 home ntop[4476]:   RRD: Locked mutex, continuing shutdown
May 29 17:32:29 home ntop[4476]:   THREADMGMT[t2986519456]: RRD:
killThread(rrdThread) succeeded
May 29 17:32:29 home ntop[4476]:   THREADMGMT[t2986519456]: RRD:
killThread(rrdTrafficThread) succeeded
May 29 17:32:29 home ntop[4476]:   THREADMGMT[t2986519456]: RRD: Plugin
shutdown continuing
May 29 17:32:29 home ntop[4476]:   RRD: Thanks for using the rrdPlugin
May 29 17:32:29 home ntop[4476]:   RRD: Done
May 29 17:32:30 home ntop[4476]:   **ERROR** accessMutex() called 'rrd_last'
with an UN-INITIALIZED mutex [t2937547680 m0xb15fde20 @rrdPlugin.c:2050]
May 29 17:32:30 home ntop[4476]:   **ERROR** releaseMutex() called with an
UN-INITIALIZED mutex [t2937547680 m0xb15fde20 @rrdPlugin.c:2059]
May 29 17:32:30 home ntop[4476]:   **ERROR** accessMutex() called
'rrd_update' with an UN-INITIALIZED mutex [t2937547680 m0xb15fde20
@rrdPlugin.c:2318]
May 29 17:32:30 home ntop[4476]:   **ERROR** releaseMutex() called with an
UN-INITIALIZED mutex [t2937547680 m0xb15fde20 @rrdPlugin.c:2426]
May 29 17:32:40 home ntop[4476]:   **ERROR** accessMutex() called 'rrd_last'
with an UN-INITIALIZED mutex [t2937547680 m0xb15fde20 @rrdPlugin.c:2050]
May 29 17:32:40 home ntop[4476]:   **ERROR** releaseMutex() called with an
UN-INITIALIZED mutex [t2937547680 m0xb15fde20 @rrdPlugin.c:2059]
May 29 17:32:40 home ntop[4476]:   **ERROR** accessMutex() called
'rrd_update' with an UN-INITIALIZED mutex [t2937547680 m0xb15fde20
@rrdPlugin.c:2318]
May 29 17:32:40 home ntop[4476]:   **ERROR** releaseMutex() called with an
UN-INITIALIZED mutex [t2937547680 m0xb15fde20 @rrdPlugin.c:2426]
[/code]



On Sun, May 25, 2008 at 1:59 PM, Greg Hauptmann <
[EMAIL PROTECTED]> wrote:

>
> On Sat, May 24, 2008 at 11:33 PM, James Lay <[EMAIL PROTECTED]>
> wrote:
>
>> Su to root, cd to /var/ntop/rrd/ then chmod 0777 * and restart ntop.
>>
>
>
> Hi all - I seem to be collecting data now with RRD I think, BUT I'm still
> getting warnings and still confused about to tackle the following if you can
> help: how to get ntop helping me out here:
>
> [1] Where is a report that summarises my family's internet bandwidth usage
> (on ppp0) per internal IP address/PC, per day, per upload/download?   Note I
> don't have any plugins installed except rrd.
>
> [2] As a bonus it would be great if the report [1] above could also be
> configured to break down the traffic based on hours of the day, i.e. to
> compare against the ISP Peak & OffPeak bandwidth limits.  Is this possible
> with RRD or NTOP?  If this is what I wanted is there another linux tool that
> would be better suited to solve [1] and [2] for me?
>
> [3] Under RRD config, what is the minimal set of "Data to Dump" for this.
> Currently I've just selected: Domains, Hosts, Interfaces, ASx.
>
> [4] BTW - I'm still getting some periodic warnings coming through in the
> logs?  See example below.  Any ideas?
>
>
>
> May 25 12:55:08 home ntop[29571]:   **WARNING** RRD:
> rrd_update(/var/ntop/rrd/interfaces/eth0/hosts/58/100/112/195/totPeersSent.rrd)
> error: illegal attempt to update using time 1211684108 when last update time
> is 1211684108 (minimum one second step)
> May 25 12:55:08 home ntop[29571]:   **WARNING** RRD:
> rrd_update(/var/ntop/rrd/interfaces/eth0/hosts/83/32/171/83/totPeersSent.rrd)
> error: illegal attempt to update using time 1211684108 when last update time
> is 1211684108 (minimum one second step)
> May 25 12:55:08 home ntop[29571]:   **WARNING** RRD:
> rrd_update(/var/ntop/rrd/interfaces/eth0/hosts/221/5/8/115/totPeersSent.rrd)
> error: illegal attempt to update using time 1211684108 when last update time
> is 1211684108 (minimum one second step)
> May 25 12:55:08 home ntop[29571]:   **WARNING** RRD:
> rrd_update(/var/ntop/rrd/interfaces/eth0/hosts/82/226/146/178/pktSent.rrd)
> error: illegal attempt to update using time 1211684108 when last update time
> is 1211684108 (minimum one second step)
> May 25 12:55:08 home ntop[29571]:   **WARNING** RRD:
> rrd_update(/var/ntop/rrd/interfaces/eth0/hosts/82/226/146/178/bytesSent.rrd)
> error: illegal attempt to update using time 1211684108 when last update time
> is 1211684108 (minimum one second step)
> May 25 12:55:08 home ntop[29571]:   **WARNING** RRD:
> rrd_update(/var/ntop/rrd/interfaces/eth0/hosts/82/226/146/178/bytesLocSent.rrd)
> error: illegal attempt to update using time 1211684108 when last update time
> is 1211684108 (minimum one second step)
> May 25 12:55:08 home ntop[29571]:   **WARNING** RRD:
> rrd_update(/var/ntop/rrd/interfaces/eth0/hosts/82/226/146/178/ipBytesSent.rrd)
> error: illegal attempt to update using time 1211684108 when last update time
> is 1211684108 (minimum one second step)
> May 25 12:55:08 home ntop[29571]:   **WARNING** RRD:
> rrd_update(/var/ntop/rrd/interfaces/eth0/hosts/82/226/146/178/udpLocSent.rrd)
> error: illegal attempt to update using time 1211684108 when last update time
> is 1211684108 (minimum one second step)
> May 25 12:55:08 home ntop[29571]:   **WARNING** RRD:
> rrd_update(/var/ntop/rrd/interfaces/eth0/hosts/82/226/146/178/totPeersSent.rrd)
> error: illegal attempt to update using time 1211684108 when last update time
> is 1211684108 (minimum one second step)
> May 25 12:55:08 home ntop[29571]:   **WARNING** RRD:
> rrd_update(/var/ntop/rrd/interfaces/eth0/hosts/89/122/136/4/totPeersSent.rrd)
> error: illegal attempt to update using time 1211684108 when last update time
> is 1211684108 (minimum one second step)
>
> Thanks
>
>
_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to