poller.php failing with "File size limit exceeded"
Moderators: Developers, Moderators
poller.php failing with "File size limit exceeded"
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
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
Figured it out
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
<changing the Cacti admin password to something else>
Roger
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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]
[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]
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
You should setup a logrot job to manage it's size if you want logging that high...
TheWitness
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?
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?
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.
[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.
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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]
[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]
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
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?
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
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
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
This is not yet supported. You may find http://docs.cacti.net/node/435 useful until then.
Reinhard
Reinhard
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
Anyone have any ideas what else could be causing the message?
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
And this doesn't find any files close to 2Gbfind / -type f -size +1000000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
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.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
And this doesn't find any files close to 2Gbfind / -type f -size +1000000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
Anyone have any ideas what else could be causing the message?
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
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!)
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!)
Who is online
Users browsing this forum: No registered users and 1 guest