Cacti Problem

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
waeltec
Posts: 7
Joined: Thu Aug 14, 2008 2:32 am

Cacti Problem

Post by waeltec »

Hi Dears,

I have installed cacti and i have the following problems, and i need your urgent support:

_host status is unknown while i have no snmp error
_graphs are not generated and while trying to run poller by hand i got the following errors:

08/14/2008 10:30:20 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'.
PHP Warning: array_merge(): Argument #2 is not an array in /usr/share/cacti/poller.php on line 61
PHP Warning: Invalid argument supplied for foreach() in /usr/share/cacti/poller.php on line 115
08/14/2008 10:30:20 AM - SYSTEM STATS: Time:0.0119 Method:cmd.php Processes:1 Threads:N/A Hosts:0 HostsPerProcess:0 DataSourc
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Re: Cacti Problem

Post by streaker69 »

waeltec wrote:Hi Dears,

I have installed cacti and i have the following problems, and i need your urgent support:

_host status is unknown while i have no snmp error
_graphs are not generated and while trying to run poller by hand i got the following errors:

08/14/2008 10:30:20 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'.
PHP Warning: array_merge(): Argument #2 is not an array in /usr/share/cacti/poller.php on line 61
PHP Warning: Invalid argument supplied for foreach() in /usr/share/cacti/poller.php on line 115
08/14/2008 10:30:20 AM - SYSTEM STATS: Time:0.0119 Method:cmd.php Processes:1 Threads:N/A Hosts:0 HostsPerProcess:0 DataSourc
You need to resolve that problem before you move on with anything else.
[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
waeltec
Posts: 7
Joined: Thu Aug 14, 2008 2:32 am

Re: Cacti Problem

Post by waeltec »

Dear I checked the file carefully and every thing is ok, also i logged to mysql successfully with the same user/password and the same database nam, is there any solution for such problem
streaker69 wrote:
waeltec wrote:Hi Dears,

I have installed cacti and i have the following problems, and i need your urgent support:

_host status is unknown while i have no snmp error
_graphs are not generated and while trying to run poller by hand i got the following errors:

08/14/2008 10:30:20 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'.
PHP Warning: array_merge(): Argument #2 is not an array in /usr/share/cacti/poller.php on line 61
PHP Warning: Invalid argument supplied for foreach() in /usr/share/cacti/poller.php on line 115
08/14/2008 10:30:20 AM - SYSTEM STATS: Time:0.0119 Method:cmd.php Processes:1 Threads:N/A Hosts:0 HostsPerProcess:0 DataSourc
You need to resolve that problem before you move on with anything else.
waeltec
Posts: 7
Joined: Thu Aug 14, 2008 2:32 am

Re: Cacti Problem

Post by waeltec »

Dear I checked the file carefully and every thing is ok, also i logged to mysql successfully with the same user/password and the same database nam, is there any solution for such problem


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

Post by gandalf »

You will have to pay great attention to the correct permissions in MySQL. E.g. when permitting accesss against the IP@ of the MySQL host versus permitting against 127.0.0.1
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests