Any plan to move to v4 ?
Luca
On Jul 29, 2010, at 1:58 PM, Gregory Guthrie wrote:
> Thanks; good idea, that's certainly what the errors say, but it looks OK to
> me.
> This is what I have (below) – does it look right?
> I'm not sure why there are mixed permissions on the various rrd files, but
> since ntop runs as itself ("ntop" user), it all seems OK.
>
> I also get a lot of these, in /var/log/daemon.log:
> Jul 29 06:52:08 alpha ntop[28839]: **ERROR** RRD: rrd_graph() call failed,
> rc -1, the RRD does not contain an RRA matching the chosen CF
> Jul 29 06:52:08 alpha ntop[28839]: RRD: Failing file in graphCounter() is
> /var/lib/ntop/rrd/interfaces/eth0/IP_SSHBytes.rrd
> Jul 29 06:54:10 alpha ntop[28839]: **ERROR** RRD: rrd_graph() call failed,
> rc -1, the RRD does not contain an RRA matching the chosen CF
> Jul 29 06:54:10 alpha ntop[28839]: RRD: Failing file in graphCounter() is
> /var/lib/ntop/rrd/interfaces/eth0/IP_HTTPBytes.rrd
> Jul 29 06:54:10 alpha ntop[28839]: **ERROR** RRD: rrd_graph() call failed,
> rc -1, the RRD does not contain an RRA matching the chosen CF
> Jul 29 06:54:10 alpha ntop[28839]: RRD: Failing file in graphCounter() is
> /var/lib/ntop/rrd/interfaces/eth0/IP_DNSBytes.rrd
> Jul 29 06:54:10 alpha ntop[28839]: **ERROR** RRD: rrd_graph() call failed,
> rc -1, the RRD does not contain an RRA matching the chosen CF
> Jul 29 06:54:10 alpha ntop[28839]: RRD: Failing file in graphCounter() is
> /var/lib/ntop/rrd/interfaces/eth0/IP_NBios-IPBytes.rrd
> Jul 29 06:54:10 alpha ntop[28839]: **ERROR** RRD: rrd_graph() call failed,
> rc -1, the RRD does not contain an RRA matching the chosen CF
> Jul 29 06:54:10 alpha ntop[28839]: RRD: Failing file in graphCounter() is
> /var/lib/ntop/rrd/interfaces/eth0/IP_SSHBytes.rrd
>
> Permissions::
> –––––––––––––––
> # ls –al /var/lib/ntop
> total 4004
> drwxr-x--- 4 ntop root 4096 Jul 27 22:10 .
> drwxr-xr-x 72 root root 4096 Jul 27 21:58 ..
> -rw-r--r-- 1 ntop root 33293 Jul 29 06:32 LsWatch.db
> -rw-r----- 1 root root 13808 Jul 29 06:32 addressQueue.db
> -rw-r--r-- 1 ntop root 2613331 Jul 29 06:30 dnsCache.db
> -rw-r--r-- 1 ntop root 247804 Jul 27 22:10 fingerprint.db
> -rw-r--r-- 1 ntop root 30 Mar 30 2009 init.cfg
> drwx------ 3 ntop ntop 4096 Mar 30 2009 interfaces
> -rw-r--r-- 1 ntop root 1110238 Jul 24 22:21 macPrefix.db
> -rw------- 1 ntop ntop 5 Mar 30 2009 ntop.pid
> -rw-r--r-- 1 ntop root 12546 Mar 29 2009 ntop_pw.db
> -rw-r--r-- 1 ntop root 13169 Jul 27 22:10 prefsCache.db
> drwx------ 5 ntop root 4096 Mar 29 2009 rrd
> # ls -l /var/lib/ntop/rrd
> total 12
> drwx------ 2 ntop root 4096 Mar 29 2009 flows
> drwx------ 2 ntop root 4096 Jul 29 06:33 graphics
> drwx------ 3 ntop root 4096 Mar 29 2009 interfaces
>
> d# ls -lR /var/lib/ntop/rrd/interfaces
> interfaces:
> total 4
> drwx------ 3 ntop root 4096 Jul 25 15:23 eth0
>
> interfaces/eth0:
> total 2960
> drw-r--r-- 31 ntop ntop 4096 Jul 25 15:23 AS
> -rw-r--r-- 1 ntop root 35292 Jul 29 06:31 IGMP.rrd
> -rw-r--r-- 1 ntop root 35292 Jul 29 06:31 IP_DHCP-BOOTPBytes.rrd
> -rw-r--r-- 1 ntop root 35292 Jul 29 06:31 IP_DHCP-BOOTPFlows.rrd
> …
> interfaces/eth0/AS:
> total 180
> drwx------ 2 ntop ntop 4096 Oct 31 2009 1
> drwxr-xr-x 2 ntop ntop 4096 Jul 25 15:08 11486
> drwx------ 2 ntop ntop 4096 Sep 17 2009 12133
> drwx------ 2 ntop ntop 4096 Sep 24 2009 1239
> drwx------ 2 ntop ntop 4096 Sep 29 2009 13445
> drwx------ 2 ntop ntop 4096 Aug 19 2009 14
> drwxr-xr-x 2 ntop ntop 4096 Jul 25 15:03 14116
> ...
> interfaces/eth0/AS/1:
> total 128
> -rw------- 1 ntop ntop 59776 Oct 31 2009 ifInOctets.rrd
> -rw------- 1 ntop ntop 59776 Oct 31 2009 ifInPkts.rrd
>
> interfaces/eth0/AS/11486:
> total 256
> -rw-r--r-- 1 ntop ntop 59776 Jul 25 17:33 ifInOctets.rrd
> -rw-r--r-- 1 ntop ntop 59776 Jul 25 17:33 ifInPkts.rrd
> -rw-r--r-- 1 ntop ntop 59776 Jul 25 17:33 ifOutOctets.rrd
> -rw-r--r-- 1 ntop ntop 59776 Jul 25 17:33 ifOutPkts.rrd
>
> interfaces/eth0/AS/12133:
> total 128
> -rw------- 1 ntop ntop 59776 Oct 7 2009 ifOutOctets.rrd
> -rw------- 1 ntop ntop 59776 Oct 7 2009 ifOutPkts.rrd
> ...
>
> -------------------------------------------
>
> From: [email protected] [mailto:[email protected]]
> Sent: Thursday, July 29, 2010 3:51 AM
> To: Gregory Guthrie
> Subject: R: [Ntop] debian ntop + rrd errors
>
> It is likely that the user from witch you run ntop does not have read/write
> permission upon the rrd directory or ntop installation directory, try
> checking the permission of /usr/local/share/ntop (the usual install dir) and
> its subdirs.
>
> Gianluca
> ----Messaggio originale----
> Da: [email protected]
> Data: 29-lug-2010 5.47 AM
> A: "[email protected]"<[email protected]>
> Ogg: [Ntop] debian ntop + rrd errors
> I installed the Debian ntop package, Version 3.3-11+b2, and it runs fine, but
> I don’t get any of the rrd graphs.
>
> In syslog I get the errors below, lots of them!!
>
> Any ideas what is wrong? The rrd data files seem to all be there.
>
> /var/log/syslog::
> Jul 28 22:16:10 alpha ntop[9284]: **WARNING** RRD:
> rrd_create(/var/lib/ntop/rrd/interfaces/eth0/AS/17/ifOutPkts.rrd) error:
> creating '/var/lib/ntop/rrd/interfaces/eth0/AS/17/ifOutPkts.rrd': strerror_r
> failed. sorry!
> Jul 28 22:16:10 alpha ntop[9284]: **WARNING** RRD:
> rrd_update(/var/lib/ntop/rrd/interfaces/eth0/AS/17/ifOutPkts.rrd) error:
> opening '/var/lib/ntop/rrd/interfaces/eth0/AS/17/ifOutPkts.rrd': strerror_r
> failed. sorry!
> Jul 28 22:16:10 alpha ntop[9284]: **WARNING** RRD:
> [path=/var/lib/ntop/rrd/interfaces/eth0/AS/14116][error=13/Permission denied]
> Jul 28 22:16:10 alpha ntop[9284]: **WARNING** RRD:
> mkdir(/var/lib/ntop/rrd/interfaces/eth0/AS/14116/), error 13 Permission denied
> Jul 28 22:16:10 alpha ntop[9284]: **WARNING** RRD:
> rrd_create(/var/lib/ntop/rrd/interfaces/eth0/AS/14116/ifInOctets.rrd) error:
> creating '/var/lib/ntop/rrd/interfaces/eth0/AS/14116/ifInOctets.rrd':
> strerror_r failed. sorry!
> Jul 28 22:16:10 alpha ntop[9284]: **WARNING** RRD:
> rrd_update(/var/lib/ntop/rrd/interfaces/eth0/AS/14116/ifInOctets.rrd) error:
> opening '/var/lib/ntop/rrd/interfaces/eth0/AS/14116/ifInOctets.rrd':
> strerror_r failed. sorry!
> Jul 28 22:16:10 alpha ntop[9284]: **WARNING** RRD:
> rrd_create(/var/lib/ntop/rrd/interfaces/eth0/AS/14116/ifInPkts.rrd) error:
> creating '/var/lib/ntop/rrd/interfaces/eth0/AS/14116/ifInPkts.rrd':
> strerror_r failed. sorry!
> Jul 28 22:16:10 alpha ntop[9284]: **WARNING** RRD:
> rrd_update(/var/lib/ntop/rrd/interfaces/eth0/AS/14116/ifInPkts.rrd) error:
> opening '/var/lib/ntop/rrd/interfaces/eth0/AS/14116/ifInPkts.rrd': strerror_r
> failed. sorry!
> …
> -------------------------------------------
>
>
>
> _______________________________________________
> Ntop mailing list
> [email protected]
> http://listgateway.unipi.it/mailman/listinfo/ntop
---
"Debugging is twice as hard as writing the code in the first place. Therefore,
if you write the code as cleverly as possible, you are, by definition, not
smart enough to debug it. - Brian W. Kernighan
_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop