Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support
It is currently Mon May 21, 2012 9:31 am


ATTENTION: All users passwords have been cleared.
Please use the "Forgot Password" feature to reset your password.


All times are UTC - 5 hours




Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: poller.php failing with "File size limit exceeded"
PostPosted: Fri Jun 10, 2005 2:15 pm 
Offline

Joined: Mon Apr 04, 2005 2:05 pm
Posts: 19
This is a new problem. It started happening prior to 6am today. All graphs stopped working, and my root email on the box is full of errors like this:

Subject: Cron <cacti@monitor2> php /var/www/html/cacti/poller.php > /dev/null 2>&1
X-Cron-Env: <SHELL=/bin/bash>
X-Cron-Env: <PATH=/sbin:/bin:/usr/sbin:/usr/bin>
X-Cron-Env: <MAILTO=root>
X-Cron-Env: <HOME=/>
X-Cron-Env: <LOGNAME=cacti>
X-Cron-Env: <USER=cacti>

/bin/bash: line 1: 3313 File size limit exceededphp /var/www/html/cacti/poller.php >/dev/null 2>&1

What on earth is causing this? Nothing has changed on the server. I hadn't added any new hosts to Cacti for several days prior to this problem.

Any help ASAP appreciated, as no hosts are being graphed at this point.

Roger


Top
 Profile  
 
 Post subject: Figured it out
PostPosted: Fri Jun 10, 2005 2:32 pm 
Offline

Joined: Mon Apr 04, 2005 2:05 pm
Posts: 19
Someone had turned full log debugging on without bothering to tell anyone. Log had filled up to 2gb filesize.

<changing the Cacti admin password to something else>

Roger


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 10, 2005 2:53 pm 
Offline
Developer/Forum Admin
User avatar

Joined: Mon Nov 17, 2003 6:35 pm
Posts: 5901
Location: Michigan, USA
Opps!!

_________________
Tony Roman
Experience is what causes a person to make new mistakes instead of old ones.
There are only 3 way to complete a project: Good, Fast or Cheap, pick two.
With age comes wisdom, what you choose to do with it determines whether or not you are wise.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 13, 2005 4:29 pm 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14861
Location: MI, USA
You should setup a logrot job to manage it's size if you want logging that high...

TheWitness

_________________
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
Gandalfs Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 15, 2005 8:46 pm 
Offline

Joined: Sat Mar 19, 2005 8:24 am
Posts: 18
I experience the same problem when I try to run cactid

[root@cacti cactid]# ./cactid
CACTID: Using cactid config file [cactid.conf]
CACTID: Non Window envrionment, running as root, ICMP Ping available
CACTID: Version 0.8.6d starting
File size limit exceeded

Since yesterday, my cacti can't poll at all.
How can I solve this problem? If I must make the debug off, how to do that?

Thank you.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 16, 2005 8:00 am 
Offline
Developer/Forum Admin
User avatar

Joined: Mon Nov 17, 2003 6:35 pm
Posts: 5901
Location: Michigan, USA
Well, check the size of you cacti.log and well, delete it. It's to large.

_________________
Tony Roman
Experience is what causes a person to make new mistakes instead of old ones.
There are only 3 way to complete a project: Good, Fast or Cheap, pick two.
With age comes wisdom, what you choose to do with it determines whether or not you are wise.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 16, 2005 10:49 pm 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14861
Location: MI, USA
Of course, you know that you are supposed to be running "php poller.php". You will likely have to run the following to clean up your mysql database:

mysql -u root -p cacti
> truncate table poller_output;
> quit

TheWitness

_________________
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
Gandalfs Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 30, 2008 8:35 pm 
Offline

Joined: Thu Dec 27, 2007 6:44 pm
Posts: 16
Location: colombia
File size limit exceededphp /var/www/html/cacti/poller.php
if the solution is these:

mysql -u root -p cacti
> truncate table poller_output;
> quit

the cuestion about this solucion is:

how i can change in the configuration to prevent or correct it automatically this event.??


my apologies for my english

say hello from Colombia


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 01, 2008 3:02 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 20544
Location: Muenster, Germany
This error should not occur on latest cacti 087b; poller_output is truncated prior to any new polling cycle. Please confirm
Reinhard

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 06, 2008 11:52 pm 
Offline

Joined: Thu Dec 27, 2007 6:44 pm
Posts: 16
Location: colombia
The solution for this incident is: clear the cacti.log :) al last...!
some body knows where is i can configure the size of the cacti.log?
thanks!!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 07, 2008 2:56 am 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 20544
Location: Muenster, Germany
This is not yet supported. You may find http://docs.cacti.net/node/435 useful until then.
Reinhard

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 23, 2010 8:06 am 
Offline
Cacti User

Joined: Tue Jan 09, 2007 8:28 am
Posts: 202
Location: London, UK
Hi

I've just started seeing this also, I've checked the size of cacti.log and it's nowhere near the 2Gb limit.

I've run the following

Quote:
find / -type f -size +1000000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'


And this doesn't find any files close to 2Gb

Anyone have any ideas what else could be causing the message?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 23, 2010 8:15 am 
Offline
Cacti User

Joined: Tue Jan 09, 2007 8:28 am
Posts: 202
Location: London, UK
msw1970 wrote:
Hi

I've just started seeing this also, I've checked the size of cacti.log and it's nowhere near the 2Gb limit.

I've run the following

Quote:
find / -type f -size +1000000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'


And this doesn't find any files close to 2Gb

Anyone have any ideas what else could be causing the message?


Scratch that.... Just re-run the find command and did find a 2Gb file.... php_log. Deleted that and the messages have stopped.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 23, 2010 8:58 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 4184
Location: United Kingdom
Why does the poller crash when it can't write to the log, anyway?

_________________
Weathermap 0.97a is out! & QuickTree 0.2. Superlinks is over there now.
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)

My System: CentOS5 64 bit, 4 2GHz cores (Intel E5405), 8GB, Cacti 0.8.7e, Spine 0.8.7e, Weathermap 0.98dev, Superlinks 0.8, ReportIt 0.7.1, THold 0.3.9hj, Explain 0.1, Uptime 0.4hj, Realtime 0.36hj, QuickTree 0.2 - 17000 DS, 320 Hosts. 150 seconds poll.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Google [Bot], paulbeard206, shomy41 and 4 guests


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 post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group