MySQL Problem - table poller_ouput

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

Moderators: Developers, Moderators

arkand
Posts: 27
Joined: Wed Oct 13, 2004 10:12 am
Location: Spain

MySQL Problem - table poller_ouput

Post by arkand »

Hi !

When cacti is in use abaout 2 weeks, graphs no updating.

I use strace ( in linux ) to find this problem.

I use MySQL Administrator and MySQL Control Center to see the cacti database, and see that table poller_output not updating

I use strace ( in linux ) to find this problem.

The problem fix with empty the table poller_ouput.

This is a problem of mysql ?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Maybe, but not typically...

Try deleting all the rows in poller_output, this may fix your issue.
[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]
arkand
Posts: 27
Joined: Wed Oct 13, 2004 10:12 am
Location: Spain

Post by arkand »

This is the forth time that i empty the table.

Each 2 or 3 weeks, when arrive at work , i see the principal graphs and i see
that graph no updating.

After use Mysql administrador and look that the table poller_output , not updating and empty the table.

Is rare.

Any idea for fix that ?

Sorry for my English.
royce
Cacti User
Posts: 79
Joined: Wed Dec 29, 2004 7:37 am
Location: Sweden

Post by royce »

mysql> select count(*) from poller_output;
+----------+
| count(*) |
+----------+
| 9785768 |
+----------+
1 row in set (0.00 sec)


Seems that I have the same problem.
royce
Cacti User
Posts: 79
Joined: Wed Dec 29, 2004 7:37 am
Location: Sweden

Post by royce »

Well, lets se if

mysql> TRUNCATE TABLE poller_output;
Query OK, 0 rows affected (0.41 sec)


helps ...
chicago
Posts: 19
Joined: Fri Jul 09, 2004 9:52 am
Contact:

Post by chicago »

I have the same issue


TRUNCATE TABLE poller_output;

will fix the problem but It comes back in a few hours
royce
Cacti User
Posts: 79
Joined: Wed Dec 29, 2004 7:37 am
Location: Sweden

Post by royce »

TRUNCATE TABLE and regenerate your poller-cache.

/Christofer
jrichardson
Cacti User
Posts: 66
Joined: Tue Mar 22, 2005 10:11 am

Post by jrichardson »

Was this issue every resolved or identified? If so, in what version is this fixed?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

A crashed poller can cause this problem....

His exact issue, no, but more importantly, what is your issue?
[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]
jrichardson
Cacti User
Posts: 66
Joined: Tue Mar 22, 2005 10:11 am

Post by jrichardson »

rony wrote:A crashed poller can cause this problem....

His exact issue, no, but more importantly, what is your issue?
To be honest, I dont know for sure 100%... After about a 7-10 days of running without issues, my cacti stops updating the RRD files (it polls fine) I get tons (> 500,000) items in my poller_output table that I must "truncate" before things start working again.

I have a sneaky feeling that php was running out of memory, it was configured via the php.ini file to use only 8M, I've since increased it to 64M to see if the issue goes away.

I'm also looking into upgrading my cacti version from 0.8.6c to 0.8.6g. I was really curious if this had been resolved and in what version so I could take a look at it in the code.

Thanks,
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

That upgrade would be a very good idea, not only for security fixes, but features as well.

Remember to run a check/repair on your database before you upgrade.
[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]
jrichardson
Cacti User
Posts: 66
Joined: Tue Mar 22, 2005 10:11 am

Post by jrichardson »

I'm not so worried about the security features, it's running in a pretty secure internal only env, I just want it to not stop updating after running for days.
User avatar
pestilence
Cacti User
Posts: 207
Joined: Fri Jul 25, 2003 10:37 am
Location: Athens/Greece
Contact:

Post by pestilence »

jrichardson wrote:I'm not so worried about the security features, it's running in a pretty secure internal only env, I just want it to not stop updating after running for days.
A quick hack would be to create a shell script that would truncate the table every now and then untill the issue is resolved.
/* * Oops. The kernel tried to access some bad page. We'll have to * terminate things with extreme prejudice. */ die_if_kernel("Oops", regs, error_code);
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

I still suggest you upgrade, security issue or not.

Because, to be honest, it's probably an issue that has been resolved in later versions.
[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]
jrichardson
Cacti User
Posts: 66
Joined: Tue Mar 22, 2005 10:11 am

Post by jrichardson »

I am upgrading :)

And I'm not really happy with "quick hacks". I *think* i may have fixed it by increasing the php can allocate, we'll see. If not, we'll see after the upgrade.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests