Upgraded from Cactib... to latest version and poller stopped

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
chris.y2k.r1
Posts: 31
Joined: Tue Mar 07, 2006 11:39 pm

Upgraded from Cactib... to latest version and poller stopped

Post by chris.y2k.r1 »

Did I miss something??? I upgraded from the Cacti B version to the latest and greatest version (H) and the poller.php now has errors when I try to run it.... I can't find documentation on what else might need to be upgraded... Do I need a new version of PHP? I have the originial version that was installed with the detailed linux instructions for installing cacti.??

Help!!
chris.y2k.r1
Posts: 31
Joined: Tue Mar 07, 2006 11:39 pm

Post by chris.y2k.r1 »

To be more specific when I run poller.php from the command line....

I get...

[root@localhost cacti]# . poller.php
bash: ?php: No such file or directory
bash: /bin: is a directory
bash: +-------------------------------------------------------------------------+: command not found
bash: poller.php: line 5: syntax error near unexpected token `|'
bash: poller.php: line 5: ` | Copyright (C) 2004 Ian Berry |'
[root@localhost cacti]#

Everything was cool until I upraded. I did read the upgrade instruction in the docs directory and did everything accordingly... what's going on??
chris.y2k.r1
Posts: 31
Joined: Tue Mar 07, 2006 11:39 pm

Post by chris.y2k.r1 »

From Cron,,,

From root@localhost.localdomain Sat Mar 25 23:55:02 2006
Date: Sat, 25 Mar 2006 23:55:02 -0500
From: root@localhost.localdomain (Cron Daemon)
To: root@localhost.localdomain
Subject: Cron <root@localhost> /www/php/bin/php /www/htdocs/cacti/poller.php > /dev/null 2>&1
X-Cron-Env: <SHELL=/bin/bash>
X-Cron-Env: <PATH=/sbin:/bin:/usr/sbin:/usr/bin>
X-Cron-Env: <MAILTO=root>
X-Cron-Env: <HOME=/>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>

/bin/bash: line 1: 3543 Segmentation fault /www/php/bin/php /www/htdocs/cacti/poller.php >/dev/null 2>&1

&
At EOF
&
At EOF
&
At EOF
&


NOW I can even log in to Cacti. I just get a blank page.
Exo7
Cacti User
Posts: 136
Joined: Wed Jul 13, 2005 4:50 pm

Post by Exo7 »

chris.y2k.r1 wrote: [root@localhost cacti]# . poller.php
This command actually source poller.php, which is different from executing it.
You may want to type

Code: Select all

./poller.php
instead
chris.y2k.r1
Posts: 31
Joined: Tue Mar 07, 2006 11:39 pm

Post by chris.y2k.r1 »

Exo7 wrote:
chris.y2k.r1 wrote: [root@localhost cacti]# . poller.php
This command actually source poller.php, which is different from executing it.
You may want to type

Code: Select all

./poller.php
instead
My bad, here's what happens when I run it correctly.... It's obvious that the php configuration that cacti uses is wrong. I think I gave it the wrong path when I updated.. There are several php binaries, which one am I supposes to use? /usr/bin/php or /www/php/bin/php?

./poller.php output....

[root@localhost cacti]# ./poller.php
bash: ./poller.php: Permission denied
You have new mail in /var/spool/mail/root
[root@localhost cacti]#


Permission denied??? How is that possible, I'm logged in as root!?

Come on guys, someone has to know this.. I'm a noob and I'm close to the answer. I know this is simple for most of ya all.. someone please help!!!!

PLEASE HELP ME! Hehehe...
chris.y2k.r1
Posts: 31
Joined: Tue Mar 07, 2006 11:39 pm

Post by chris.y2k.r1 »

OK Guys - here it is, mysql cannot connect because it's looking in the wrong place for the socket. The mysql.sock is in the /tmp directory. It's look here....

PHP Warning: mysql_pconnect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 355
PHP Warning: mysql_pconnect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 355
PHP Warning: mysql_pconnect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 355
PHP Warning: mysql_pconnect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 355
PHP Warning: mysql_pconnect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 355
PHP Warning: mysql_pconnect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /www/htdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 355
Segmentation fault
[root@localhost cacti]#
You have new mail in /var/spool/mail/root

How the hell can I fix this??
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests