|
|
| Author |
Message |
etc
Joined: 19 Apr 2007 Posts: 49
|
Posted: Fri Apr 20, 2007 4:13 pm Post subject: Basic installations problems |
|
|
From the INSTALL file, it's not clear what "your full Cacti path" is. Is it here Cacti is installed?
Also, when I go to the http://cacti_server/cacti, all I get is an Index page with nothing on it. Certainly no login prompt.
I made sure that httpd was started. This is on Linux Advanced Server 4.
7. Add a line to your /etc/crontab file similar to:
*/5 * * * * cactiuser php /var/www/html/cacti/poller.php > /dev/null 2>&1
Replace cactiuser with the valid user specified in the previous step.
Replace /var/www/html/cacti/ with your full Cacti path.
8. Point your web browser to:
http://your-server/cacti/
Log in the with a username/password of admin. You will be required to
change this password immediately. Make sure to fill in all of the path
variables carefully and correctly on the following screen.
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12295 Location: Muenster, Germany
|
Posted: Sat Apr 21, 2007 6:41 am Post subject: |
|
|
Full cacti path refers to the path, where all cacti php files live in. The crontab calls poller.php, so you must enter the full path to that very file.
Reinhard |
|
| Back to top |
|
 |
etc
Joined: 19 Apr 2007 Posts: 49
|
Posted: Mon Apr 23, 2007 8:38 am Post subject: |
|
|
OK, I put the exact path in the crontab entry, where the php files are.
To test, I su'ed to the cacti user and tried to execute it manually and here is what I got, it doesn't look right. And there is nothing on the web page when I go to it.
[cacti@bizcacti ~]$ /usr/local/cacti-0.8.6j/poller.php
sh: -: command not found
|
|
| Back to top |
|
 |
Rael Cacti User
Joined: 05 Apr 2007 Posts: 128
|
Posted: Mon Apr 23, 2007 9:55 am Post subject: |
|
|
| etc wrote: | OK, I put the exact path in the crontab entry, where the php files are.
To test, I su'ed to the cacti user and tried to execute it manually and here is what I got, it doesn't look right. And there is nothing on the web page when I go to it.
[cacti@bizcacti ~]$ /usr/local/cacti-0.8.6j/poller.php
sh: -: command not found
|
Of course it wouldn't look right, you're trying to execute the php script as a shell script.
type `php /usr/local/cacti-0.8.6j/poller.php` to initiate the php processor |
|
| Back to top |
|
 |
etc
Joined: 19 Apr 2007 Posts: 49
|
Posted: Mon Apr 23, 2007 10:30 am Post subject: |
|
|
What does this mean?
| Code: |
root:/usr/local/cacti-0.8.6j # php /usr/local/cacti-0.8.6j/poller.php
sh: -: command not found
Content-type: text/html
X-Powered-By: PHP/4.3.9
04/23/2007 05:24:59 AM - POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting.
04/23/2007 05:24:59 AM - SYSTEM STATS: Time:293.1492 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
PHP Warning: pclose(): 44 is not a valid stream resource in /usr/local/cacti-0.8.6j/lib/rrd.php on line 48 |
|
|
| Back to top |
|
 |
etc
Joined: 19 Apr 2007 Posts: 49
|
Posted: Mon Apr 23, 2007 11:06 am Post subject: |
|
|
I think it's making progress as it's a more meaningful error message.
# php /usr/local/cacti-0.8.6j/poller.php
Content-type: text/html
X-Powered-By: PHP/4.3.9
04/23/2007 06:03:54 AM - CMDPHP: Poller[0] FATAL: Cannot connect to MySQL server on 'bizcacti'. Please make sure you have specified a valid MySQL database name in 'include/config.php'.
sh: -: command not found
|
|
| Back to top |
|
 |
egarnel Cacti Pro User
Joined: 21 Nov 2002 Posts: 630 Location: Austin, TX
|
Posted: Mon Apr 23, 2007 12:00 pm Post subject: |
|
|
| etc wrote: | I think it's making progress as it's a more meaningful error message.
# php /usr/local/cacti-0.8.6j/poller.php
Content-type: text/html
X-Powered-By: PHP/4.3.9
04/23/2007 06:03:54 AM - CMDPHP: Poller[0] FATAL: Cannot connect to MySQL server on 'bizcacti'. Please make sure you have specified a valid MySQL database name in 'include/config.php'.
sh: -: command not found
|
change bizcacti to localhost (assuming you are not connecting to mysql on another box) |
|
| Back to top |
|
 |
etc
Joined: 19 Apr 2007 Posts: 49
|
Posted: Mon Apr 23, 2007 1:28 pm Post subject: |
|
|
Yes, MySQL is on the same box. Still having issues with authentication - could it be the password is not synced?
# php /usr/local/cacti-0.8.6j/poller.php
Content-type: text/html
X-Powered-By: PHP/4.3.9
04/23/2007 08:22:48 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'.
sh: -: command not found
04/23/2007 08:27:41 AM - POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting.
04/23/2007 08:27:41 AM - SYSTEM STATS: Time:292.8034 Method:cmd.php Processes:1 Threads:N/A Hosts:1 HostsPerProcess:1 DataSources: RRDsProcessed:0
PHP Warning: pclose(): 23 is not a valid stream resource in /usr/local/cacti-0.8.6j/lib/rrd.php on line 48
|
|
| Back to top |
|
 |
egarnel Cacti Pro User
Joined: 21 Nov 2002 Posts: 630 Location: Austin, TX
|
Posted: Mon Apr 23, 2007 1:54 pm Post subject: |
|
|
| the password in config.php must match that of the mysql user who can manage the cacti database. |
|
| Back to top |
|
 |
arevelo
Joined: 07 Aug 2008 Posts: 6 Location: ecuador
|
Posted: Thu Aug 07, 2008 8:26 pm Post subject: poller.php iisn't working??? |
|
|
Please help me
how can i know if the poller.php is working ?, I ran from cli:
[root@localhost cacti]# php poller.php
Content-type: text/html
X-Powered-By: PHP/4.3.9
but i didn't have another line that told if all is ok. I don''t known if it's de reason why I can't do any graph with cacti , allways recive the same error:
RRDTool Says:
ERROR: opening '/opt/lampp/htdocs/cacti/rra/switch_gestion_mplsatm_snmp_oid_12.rrd': No such file or directory
thanks |
|
| Back to top |
|
 |
|