uname -a
FreeBSD spider 6.2-RELEASE-p4 FreeBSD 6.2-RELEASE-p4
cacti-0.8.6j.3_2
php5-5.2.1_3 PHP Scripting Language (Apache Module and CLI)
php5-mysql-5.2.1_3 The mysql shared extension for php
php5-pcre-5.2.1_5 The pcre shared extension for php
php5-session-5.2.1_3 The session shared extension for php
php5-snmp-5.2.1_3 The snmp shared extension for php
php5-sockets-5.2.1_3 The sockets shared extension for php
php5-xml-5.2.1_3 The xml shared extension for php
mysql-client-5.0.27 Multithreaded SQL database (client)
mysql-server-5.0.37 Multithreaded SQL database (server)
php5-mysql-5.2.1_3 The mysql shared extension for php
все по ману:
mysqladmin --user=root create cacti
mysql cacti < cacti.sql
mysql --user=root mysql
GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'somepassword';
flush privileges;
Edit include/config.php
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "somepassword";
php /usr/local/share/cacti/poller.php
07/05/2007 11:29:21 AM - CMDPHP: Poller[0] FATAL: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'.
Warning: array_merge(): Argument #2 is not an array in /usr/local/share/cacti/poller.php on line 61
Warning: Invalid argument supplied for foreach() in /usr/local/share/cacti/poller.php on line 115
07/05/2007 11:29:21 AM - SYSTEM STATS: Time:0.0033 Method:cmd.php Processes:1 Threads:N/A Hosts:0 HostsPerProcess:0 DataSources: RRDsProcessed:0
-: not found
mysql --user=cactiuser cacti -psomepassword
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 213 to server version: 5.0.37
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
Cacti on FreeBSD6.2
Moderators: Developers, Moderators
-
- Posts: 2
- Joined: Thu Jul 05, 2007 5:22 am
- Location: http://itforum.kiev.ua/
- Contact:
-
- Posts: 2
- Joined: Thu Jul 05, 2007 5:22 am
- Location: http://itforum.kiev.ua/
- Contact:
You need to work on fixing this error:
You will not be able to get very far without getting the connection to MySQL working.
Please check your MySQL user permissions:
# Create a MySQL username and password for Cacti
mysql --user=root mysql
GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'cactipassword';
GRANT ALL ON cacti.* TO cactiuser@"%" IDENTIFIED BY 'cactipassword';
flush privileges;
exit
# Edit include/config.php and specify the MySQL user, password and database for your Cacti configuration
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "cactipassword";
For my FreeBSD Cacti install instructions please see:
http://www.n3ncy.com/UNIX/FreeBSD/
and
http://www.nmsworld.com/UNIX/
Code: Select all
07/05/2007 11:29:21 AM - CMDPHP: Poller[0] FATAL: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'.
Please check your MySQL user permissions:
# Create a MySQL username and password for Cacti
mysql --user=root mysql
GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'cactipassword';
GRANT ALL ON cacti.* TO cactiuser@"%" IDENTIFIED BY 'cactipassword';
flush privileges;
exit
# Edit include/config.php and specify the MySQL user, password and database for your Cacti configuration
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "cactipassword";
For my FreeBSD Cacti install instructions please see:
http://www.n3ncy.com/UNIX/FreeBSD/
and
http://www.nmsworld.com/UNIX/
Thank you,
Ernie
http://www.NMSWorld.com
[b]Dual Zeon Dual Core 2.6Ghz / 8GB RAM / 4x15k RPM SATA RAID5[/b]
[b]Cacti Version[/b] - 0.8.7b
[b]Poller Type[/b] - cactid 0.8.7 with Boost v1.7
[b]Server Info[/b] - FreeBSD 7.0-RELEASE
[b]Web Server[/b] - Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8g DAV/2 PHP/5.2.5 mod_perl/2.0.3 Perl/v5.8.8
[b]PHP[/b] - 5.2.6
[b]MySQL[/b] - 5.0.51b Mod: poller_output ENGINE = MEMORY
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.4.1
[b]Plugins[/b] - Host Info (hostinfo - v0.2), Update Checker (update - v0.3), Network Tools (tools - v0.2), FlowView (flowview - v0.3), Read-only Devices Tab (devices - v0.4), Network Discovery (discovery - v0.8.3), Syslog Monitoring (syslog - v0.5.2), Thresholds (thold - v0.3.9), Device Monitoring (monitor - v0.8.2), PHP Network Weathermap (weathermap - v0.941), SuperLinks (superlinks - v0.72), Report Creator (reports - v0.1b)
Ernie
http://www.NMSWorld.com
[b]Dual Zeon Dual Core 2.6Ghz / 8GB RAM / 4x15k RPM SATA RAID5[/b]
[b]Cacti Version[/b] - 0.8.7b
[b]Poller Type[/b] - cactid 0.8.7 with Boost v1.7
[b]Server Info[/b] - FreeBSD 7.0-RELEASE
[b]Web Server[/b] - Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8g DAV/2 PHP/5.2.5 mod_perl/2.0.3 Perl/v5.8.8
[b]PHP[/b] - 5.2.6
[b]MySQL[/b] - 5.0.51b Mod: poller_output ENGINE = MEMORY
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.4.1
[b]Plugins[/b] - Host Info (hostinfo - v0.2), Update Checker (update - v0.3), Network Tools (tools - v0.2), FlowView (flowview - v0.3), Read-only Devices Tab (devices - v0.4), Network Discovery (discovery - v0.8.3), Syslog Monitoring (syslog - v0.5.2), Thresholds (thold - v0.3.9), Device Monitoring (monitor - v0.8.2), PHP Network Weathermap (weathermap - v0.941), SuperLinks (superlinks - v0.72), Report Creator (reports - v0.1b)
Who is online
Users browsing this forum: No registered users and 2 guests