I installed rrdtool and cacti on our SME Server (7.5.1), but cannot get the login from the browser. I installed the programs following the directions here:
http://wiki.contribs.org/Cacti , but have when I try to login with the browser from a client machine on the network,
https://sm1.slbc.local/cacti, I get the following:
"Fatal: Cannot connect to MySQL server on localhost. Please make sure you have specified a valid MySQL database name in include/config.php."
Doing a search on config.php, I found two relevant places:
/etc/e-smith/templates/opt/cacti/include/config.php/config.php
/opt/cacti/include/config.php
In the second one, which seemed to be the most likely one that was being referred to in the error message, I have the following:
/* make sure these values refect your actual database/host/user/password */
$database_type = "mysql";
$database_default = "cacti_sme";
$database_hostname = "localhost";
$database_username = "root";
$database_password = [long password here - removed for security]
$database_port = "3306";
/* Default session name - Session name must contain alpha characters */
#$cacti_session_name = "Cacti";
Any suggestions as to how to get Cacti to run would be much appreciated.
-Greg