cacti database headache

Kept getting database errors in my log. kept running myisamchk –extended-test *.MYI, then ‘myisamchk -r’ didn’t fix shit look for repair_database.php in /var/www/cacti/cli run php repair_database.php it will get rid of your headache