ERROR: opening '/usr/share/cacti/site/rra.....

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

Moderators: Developers, Moderators

Post Reply
LuCkYaN
Posts: 4
Joined: Tue Jul 26, 2005 9:11 am

ERROR: opening '/usr/share/cacti/site/rra.....

Post by LuCkYaN »

Code: Select all

ERROR: opening '/usr/share/cacti/site/rra/eth1_mem_buffers_24.rrd': No such file or directory
ERROR: opening '/usr/share/cacti/site/rra/eth1_hdd_free_29.rrd': No such file or directory
ERROR: opening '/usr/share/cacti/site/rra/eth1_hdd_free_30.rrd': No such file or directory
ERROR: opening '/usr/share/cacti/site/rra/eth1_hdd_free_31.rrd': No such file or directory
ERROR: opening '/usr/share/cacti/site/rra/eth1_hdd_free_32.rrd': No such file or directory
ERROR: opening '/usr/share/cacti/site/rra/eth1_load_1min_26.rrd': No such file or directory
ERROR: opening '/usr/share/cacti/site/rra/eth1_users_27.rrd': No such file or directory
ERROR: opening '/usr/share/cacti/site/rra/eth1_hdd_free_33.rrd': No such file or directory
ERROR: opening '/usr/share/cacti/site/rra/eth1_proc_28.rrd': No such file or directory
ERROR: opening '/usr/share/cacti/site/rra/eth1_hdd_free_29.rrd': No such file or directory
ERROR: opening '/usr/share/cacti/site/rra/eth1_mem_buffers_24.rrd': No such file or directory
ERROR: opening '/usr/share/cacti/site/rra/eth1_hdd_free_30.rrd': No such file or directory
ERROR: opening '/usr/share/cacti/site/rra/eth1_hdd_free_32.rrd': No such file or directory
ERROR: opening '/usr/share/cacti/site/rra/eth1_hdd_free_33.rrd': No such file or directory
ERROR: opening '/usr/share/cacti/site/rra/eth1_hdd_free_31.rrd': No such file or directory
ERROR: opening '/usr/share/cacti/site/rra/eth1_load_1min_26.rrd': No such file or directory
ERROR: opening '/usr/share/cacti/site/rra/eth1_users_27.rrd': No such file or directory
ERROR: opening '/usr/share/cacti/site/rra/eth1_proc_28.rrd': No such file or directory
ERROR: opening '/usr/share/cacti/site/rra/eth1_hdd_free_29.rrd': No such file or directory
ERROR: opening '/usr/share/cacti/site/rra/eth1_hdd_free_30.rrd': No such file or directory
rrd/ is empty i don't knmow why .. i have rddtool i have php ..
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Have you at least ran the poller once? Have you set it up to run from Cron like the install instructions say?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
LuCkYaN
Posts: 4
Joined: Tue Jul 26, 2005 9:11 am

Post by LuCkYaN »

Code: Select all

www:~# more /etc/crontab
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file.
# This file also has a username field, that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

*/5 * * * * www-data php /usr/share/cacti/site/poller.php >/dev/null 2>&1
and when i run poller.php:

Code: Select all

www:/usr/share/cacti/site# ./poller.php

Fatal error: Call to undefined function:  mysql_connect() in /usr/share/cacti/site/lib/adodb/drivers/adodb-mysql.inc.php on line 339
www:/usr/share/cacti/site#
LuCkYaN
Posts: 4
Joined: Tue Jul 26, 2005 9:11 am

Post by LuCkYaN »

web page is : http://cacti.luckyan.ro

user : guest
pass: guest
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Ok, for some reason, the php you are using for the poller does not have mysql support. But the on being used by the webserver does have mysql support. I would start your investigation there.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
LuCkYaN
Posts: 4
Joined: Tue Jul 26, 2005 9:11 am

Post by LuCkYaN »

in www:/etc/php4/apache2# nano php.ini i have :
extension=mysql.so
extension=snmp.so
.....
mysql.allow_persistent = On
mysql.max_persistent = -1
mysql.max_links = -1
mysql.default_port =
mysql.default_socket =
mysql.default_host =
mysql.default_user =
mysql.default_password =
mysql.connect_timeout = 60
mysql.trace_mode = Off
msql.allow_persistent = On
msql.max_persistent = -1
msql.max_links = -1
hjan
Posts: 1
Joined: Sat Jul 30, 2005 10:35 am
Contact:

Post by hjan »

Enable mysql.so extension under /etc/php4/cli/php.ini
hjan
elnino
Cacti User
Posts: 205
Joined: Tue Mar 08, 2005 9:51 pm

Post by elnino »

LuCkYaN, what linux distribution are you using? I think that is the same error I was getting on CentOS before I disabled SELinux.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests