FAQFAQ   SearchSearch   RegisterRegister   ProfileProfile   Log inLog in 

netflow.stats database full?

 
Post new topic   Reply to topic    CactiUsers.org Forum Index -> General
View previous topic :: View next topic  
Author Message
PrimeEvil
New User


Joined: 02 Nov 2007
Posts: 9

PostPosted: Tue Apr 29, 2008 8:43 am    Post subject: netflow.stats database full? Reply with quote

I've been running a CactiEZ (v0.1 I think) server for a couple of years now on a 10GB hard drive. I've had a few issues in the past where and mysql database corrupted and the cacti.log file fills all the remaining space on my hard drive. I ran out of HD space yesterday and so I check the cacti.log file and mysql databases. I've now got a couple of hundred megs of free space to tid me over for a short while. But when I ran my database check I got an error which is troubling me.

Code:
mysql.user                                         OK
netflow.stats
warning  : Table is marked as crashed and last repair failed
warning  : Datafile is almost full, 3921254372 of 4294967294 used
error    : Record-count is not ok; is 21739122   Should be: 0
warning  : Found 1328692940 deleted space.   Should be 0
warning  : Found 11179593 deleted blocks       Should be: 0
warning  : Found 32918730 parts                Should be: 0 parts
error    : Corrupt
syslog.syslog                                      OK


Is there some way to clean up the netflow.stats database?

*Update* - it appears this database is corrupt. But when I try to repair it I end up filling my hard drive. How do I rebuild this file?
Back to top
View user's profile
jimmy
Site Admin


Joined: 11 Nov 2004
Posts: 1495

PostPosted: Wed Apr 30, 2008 9:14 pm    Post subject: Reply with quote

That error is from ntop, if you aren't using it, just remove it and you should be fine.
Back to top
View user's profile Visit poster's website
PrimeEvil
New User


Joined: 02 Nov 2007
Posts: 9

PostPosted: Wed Apr 30, 2008 9:18 pm    Post subject: Reply with quote

Forgive me for being stupid. Remove ntop, the file, or both? This server was setup by somebody else. He's no longer with my company and I have inherited it. I think he was capturing netflows from our main router at some point. I still see the netflow commands on the router. I'm not sure what else he may have connected. How do I disable ntop?
Back to top
View user's profile
jimmy
Site Admin


Joined: 11 Nov 2004
Posts: 1495

PostPosted: Wed Apr 30, 2008 9:21 pm    Post subject: Reply with quote

PrimeEvil wrote:
Forgive me for being stupid. Remove ntop, the file, or both? This server was setup by somebody else. He's no longer with my company and I have inherited it. I think he was capturing netflows from our main router at some point. I still see the netflow commands on the router. I'm not sure what else he may have connected. How do I disable ntop?


service ntop stop
chkconfig ntop off


Then just delete the database. You can then just start it again, and it will recreate the database, or leave it off and it will not start up again if you reboot the server.
Back to top
View user's profile Visit poster's website
PrimeEvil
New User


Joined: 02 Nov 2007
Posts: 9

PostPosted: Thu May 01, 2008 7:30 am    Post subject: Reply with quote

That's funny, NTOP isn't even running. It's only programmed to run under run level 5 which I'm not using.
Back to top
View user's profile
jimmy
Site Admin


Joined: 11 Nov 2004
Posts: 1495

PostPosted: Thu May 01, 2008 11:00 pm    Post subject: Reply with quote

He must of installed something of his own on there then, as nothing else on there keeps a mysql database for netflow. Now that I think about it (I haven't ran ntop with netflow in years) Ntop actually uses a sqlite database not a mysql, so it can't be that either. You might just want to google the database name and see what pops up.

From the few searches I have done, he might have been running cflowd.
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    CactiUsers.org Forum Index -> General All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
Forums Sitemap