poller.php failing with "File size limit exceeded"

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
roger69
Posts: 19
Joined: Mon Apr 04, 2005 2:05 pm

poller.php failing with "File size limit exceeded"

Post by roger69 »

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
roger69
Posts: 19
Joined: Mon Apr 04, 2005 2:05 pm

Figured it out

Post by roger69 »

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
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Opps!!
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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 dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
aerce
Posts: 18
Joined: Sat Mar 19, 2005 8:24 am

Post by aerce »

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.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Well, check the size of you cacti.log and well, delete it. It's to large.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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 dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
dmojica
Posts: 16
Joined: Thu Dec 27, 2007 6:44 pm
Location: colombia

Post by dmojica »

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
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

This error should not occur on latest cacti 087b; poller_output is truncated prior to any new polling cycle. Please confirm
Reinhard
dmojica
Posts: 16
Joined: Thu Dec 27, 2007 6:44 pm
Location: colombia

Post by dmojica »

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!!
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

This is not yet supported. You may find http://docs.cacti.net/node/435 useful until then.
Reinhard
msw1970
Cacti User
Posts: 206
Joined: Tue Jan 09, 2007 8:28 am
Location: London, UK

Post by msw1970 »

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
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?
msw1970
Cacti User
Posts: 206
Joined: Tue Jan 09, 2007 8:28 am
Location: London, UK

Post by msw1970 »

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
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.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Why does the poller crash when it can't write to the log, anyway?
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
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!)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest