|
|
| Author |
Message |
next_gate
Joined: 17 Jul 2006 Posts: 3
|
Posted: Mon Jul 17, 2006 11:54 am Post subject: Problem with Poller.php |
|
|
Hi there, im quite new with cacti, i installed cacti in a linux server with debian but i cant see the graphics.. i see is a blank page look at the image attached... and when ruunning poller.php from shell i get this error
Warning: mysql_pconnect(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /var/www/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 356
Tried to do what says in this post but didnt work for me
http://forums.cacti.net/about11571.html
Thanks in advance
| Description: |
|
| Filesize: |
22.26 KB |
| Viewed: |
517 Time(s) |

|
|
|
| Back to top |
|
 |
gg234 Cacti User
Joined: 07 Oct 2005 Posts: 62
|
Posted: Mon Jul 17, 2006 12:05 pm Post subject: |
|
|
try to install php4-mysql and php4 packages using apt-get install
i am not sure if it helps you i am hagetting the same error in my cacti installation i fixed by installed those two packages
hope this helps
|
|
| Back to top |
|
 |
next_gate
Joined: 17 Jul 2006 Posts: 3
|
Posted: Mon Jul 17, 2006 1:31 pm Post subject: |
|
|
Theyrew already installed, when i run apt.get install it says is already the most udpated version
Thanks!
|
|
| Back to top |
|
 |
adrianmarsh Cacti User
Joined: 17 Aug 2005 Posts: 417 Location: UK
|
Posted: Mon Jul 17, 2006 2:12 pm Post subject: |
|
|
Can you verify the mysql installation?
Check that there is a mysql server listening on port 3306. I think it is as you're able to login.
After that, the only other time I see a page like that is when the poller hasn't run for that device/datasources, and so theres no .rrd file generated. This is usually taken care of on the next poller run. can you verify that the rrdtool installation is ok, and that the database files are being created?
|
|
| Back to top |
|
 |
next_gate
Joined: 17 Jul 2006 Posts: 3
|
Posted: Tue Jul 18, 2006 7:36 am Post subject: |
|
|
Well i supposed mysql installation is fine, i can login witouth problem to cacti and create devices, etc... you are right when you say about rdd files, i cant find any rdd file in my cacti folders.. and when i try to run via shell the poller.php i receive the connection problem.. how can i check the rddtool installation??
Thnaks!
|
|
| Back to top |
|
 |
fmangeant Cacti Guru User
Joined: 19 Sep 2003 Posts: 2325 Location: Sophia-Antipolis, France
|
Posted: Tue Jul 18, 2006 7:54 am Post subject: |
|
|
Hi
you need the PHP Apache module for the Cacti GUI, and the CLI version of PHP for the Cacti poller.
Can you run this in command line :
| Code: | $ mysql --user=cactiuser --password=xxxx
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4043657 to server version: 4.1.20
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> |
|
|
| Back to top |
|
 |
adrianmarsh Cacti User
Joined: 17 Aug 2005 Posts: 417 Location: UK
|
Posted: Tue Jul 18, 2006 8:36 am Post subject: |
|
|
| Quote: | | Well i supposed mysql installation is fine, i can login witouth problem to cacti and create devices, etc... you are right when you say about rdd files, i cant find any rdd file in my cacti folders.. and when i try to run via shell the poller.php i receive the connection problem.. how can i check the rddtool installation?? |
Ok so thats a good starting point then. If you open a cli session in the Cacti directory, and run "php poller.php" that should manually run the poller. Lets see the output from that. I would suspend any cron jobs first though, just so you know only one poller is running.
You might also want to switch on debug under the settings of the GUI, so that more info is given.
|
|
| Back to top |
|
 |
|