MySql Table Crashed.

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

Moderators: Developers, Moderators

Post Reply
Borin
Posts: 11
Joined: Thu Dec 11, 2008 8:17 pm
Location: Cambodia
Contact:

MySql Table Crashed.

Post by Borin »

Dear All,

I have installed and use Cacti version 0.8.7a. It was working for long time, but recently I have one problem with it. When I click on User Management in the left panel of Admin, I don't see any users in the list but actually, it has 4 users in it. And then I have checked further, I click on System Utilities -->Technical Support. I found one error in MySql Table Information Section that said, "user_log | Unknown | Unknown | Table './cacti/user_log' is marked as crashed and should be repaired ". I don't know how to repair user_log table. I think may be coz of this that make all the users are hidden when I clicked on User Management.

I have attached the files that related to my problem in this also.

Anybody can help me to fix it. All your help are very much appreciated.

thanks,
Attachments
Table Crashed.JPG
Table Crashed.JPG (142.88 KiB) Viewed 2168 times
No Users Displayed.JPG
No Users Displayed.JPG (102.79 KiB) Viewed 2168 times
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

[b]Cacti Version[/b] - 0.8.7d
[b]Plugin Architecture[/b] - 2.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Linux 2.6.18-128.1.6.el5
[b]Web Server[/b] - Apache/2.2.3 (CentOS)
[b]PHP[/b] - 5.2.9
[b]MySQL[/b] - 5.0.45-log
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.3.2.2
[b]Plugins[/b]PHP Network Managing v0.6.1, Global Plugin Settings v0.6,thold v0.4.1,XMLPort v0.3.5,CactiCam v0.1.5,NetTools v0.1.5,pollperf v0.32,RRD Cleaner v1.1,sqlqueries v0.2,superlinks v0.8,syslog v0.5.2,update v0.4,discovery v0.9,zond v0.34a,hostinfo v0.2,Bloom v0.6.5,mactrack v1.1,weathermap v0.96a,mobile v0.1
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Hmm, there should be a script in cli now. Or did I create it for 088. Getting older, memories .... ahhh
Reinhard
Borin
Posts: 11
Joined: Thu Dec 11, 2008 8:17 pm
Location: Cambodia
Contact:

Thanks

Post by Borin »

Dear All,

Thanks for your kindly help. Now problem was gone away from me.

But I face one problem that I try to find solution to do but still no solution.
My problem is I want to remove graph that were not use from Graph Tree but not delete graph from Graph Management. I don't see any way to remove only graph that I don't need anymore in Graph Tree but still keep it in Graph Management.

Could you please advice me the way to do this?

Thanks,

Borin
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

You may remove any object from the tree using "Graph Tree" management. Removing a graph from the tree does NOT erase the graph itself from Cacti, only the tree entry is erased.
Reinhard
berbondac
Posts: 10
Joined: Thu Feb 25, 2010 8:21 am

Same issue, but different observations

Post by berbondac »

Hello,

Like i said in my previous post, i have inherited some cacti servers.

On one of them i have the same problem stated here. In User Management tab i see no users listed but i have 6 lines that are not showed, just like the picture posted in the original complaint of my forum colleague.

But when i go to System Utilities -> Technical Support

there is no "user_log" line in the "MySQL Table Information" part of the report.
from "user_auth_realm" line it jumps to "version" lline and all the lines show as OK.

I would very much appreciate any help with this issue since i do not have MySQL skills.
Thank you
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please use ./cli/repair_database.php
R.
Borin
Posts: 11
Joined: Thu Dec 11, 2008 8:17 pm
Location: Cambodia
Contact:

Post by Borin »

You can try this coz this is the solution I found while I met this problem too and it is really work for me

[root@ns2 /]# mysqlcheck --user=root --password=xxxx -r cacti

[root@ns2 /]# mysqlcheck --user=root --password=xxxx --auto-repair=TRUE cacti user_log

Note: I deploy it on Fedora 9. So this CLI I applied on Terminal of Fedora.

Hope this help you. :)
berbondac
Posts: 10
Joined: Thu Feb 25, 2010 8:21 am

Post by berbondac »

thank you gandalf, that worked.

I did a ##php <cactipath>\cli\repair_database.php .
after it stayed a while at the user_log table it successfully fixed it.

Thank you once again

Thank you to you too Borin for your reply.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests