no graphs being displayed (PLEASE HELP TRIED EVERYTHING)

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

Moderators: Developers, Moderators

Daveyboy
Posts: 19
Joined: Fri Jun 22, 2007 7:39 pm

no graphs being displayed (PLEASE HELP TRIED EVERYTHING)

Post by Daveyboy »

I have read ALL the posts and troubleshooting docs, and I cannot for the love of god get any graphs to display.

Ubuntu server 6.06
cacti version j
rrdtool 1.2.11
MySQL - 5.0.22
Apache2.0.55
PHP Version 5.1.2
NET-SNMP version: 5.2.1.2
PHP SNMP Support: yes
I can snmpwalk the target hosts
cacti directory is chmod'd to 777
poller=cmd.php

My problems/symptoms and steps taken;

1) There is no .rrd files in the rrd directory
- I can write a file to rra directory as cactiuser
- I ran this >"php rebuild_poller_cache.php"and then "php cmd.php" (same)
- Data source debug (below) shows no errors, yet no .rrd file

/usr/bin/rrdtool create \
/usr/share/cacti/rra/dave_proc_11.rrd \
--step 300 \
DS:proc:GAUGE:600:0:1000 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \

2) When I run poller.php manually, nothing, returns to prompt

3) When I check /var/log/apache2/error.log getting;
ERROR: opening '/usr/share/cacti/rra/dave_traffic_in_12.rrd': No such file or directory

Also, cactiuser can connect to the 'cacti' db and has full perms, can do updates no problem. Please advise.
fkzouf
Posts: 8
Joined: Mon Jun 11, 2007 8:32 am

Post by fkzouf »

Try to use poller.php instead of cmd.php

Code: Select all

vim /etc/crontab
*/5 * * * * cactiuser php5 /var/www/cacti/poller.php > /dev/null 2>&1
Daveyboy
Posts: 19
Joined: Fri Jun 22, 2007 7:39 pm

Post by Daveyboy »

I have that exact entry setup in my crontab, I am referring to the 'Settings' >'poller tab'. I tried changing the poller type on the poller tab to cactid, and had same result
Taiphun
Posts: 21
Joined: Mon Jan 08, 2007 11:44 am

Post by Taiphun »

Is Cacti configured to use RRDTool v1.0.x or v1.2.x in your "Console -> Settings" menu?
Daveyboy
Posts: 19
Joined: Fri Jun 22, 2007 7:39 pm

Post by Daveyboy »

1.2.x
mnoriega
Posts: 1
Joined: Thu Jul 05, 2007 4:27 pm

Post by mnoriega »

I was running in to the same problem. I tried switching to cactiuser and run the cron script

/usr/bin/php /usr/share/cacti/poller.php

which gave me the following error:

PHP Warning: require_once(/etc/cacti/db.php): failed to open stream: Permission denied in /usr/share/cacti/include/config.php on line 26

I solved it changing the permisions on db.php and now the rrd files were finally created.

chmod +r /etc/cacti/db.php

Hope this helps.
Daveyboy
Posts: 19
Joined: Fri Jun 22, 2007 7:39 pm

Post by Daveyboy »

My site is chmod'd to 777 so that shouldn't apply to me, however I do not have a db.php file anywhere in the cacti folder or on my system, weird.
Daveyboy
Posts: 19
Joined: Fri Jun 22, 2007 7:39 pm

Post by Daveyboy »

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

Post by rony »

mnoriega wrote:I was running in to the same problem. I tried switching to cactiuser and run the cron script

/usr/bin/php /usr/share/cacti/poller.php

which gave me the following error:

PHP Warning: require_once(/etc/cacti/db.php): failed to open stream: Permission denied in /usr/share/cacti/include/config.php on line 26

I solved it changing the permisions on db.php and now the rrd files were finally created.

chmod +r /etc/cacti/db.php

Hope this helps.
Debian only issue.
[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]
Daveyboy
Posts: 19
Joined: Fri Jun 22, 2007 7:39 pm

Post by Daveyboy »

I also made sure that the php version matched what apache was using.

root@cacti:/usr/share/cacti# php -v
PHP 5.1.2 (cli) (built: May 22 2007 20:23:21)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

from phpinfo;
Apache/2.0.55 (Ubuntu) PHP/5.1.2
iYRe
Posts: 40
Joined: Mon May 07, 2007 4:49 pm
Location: Auckland NZ
Contact:

Post by iYRe »

did you install this from package or compile from source?
If a man is in a forest, and he speaks to a tree and no woman can hear....

[i]is he still wrong?[/i]
Daveyboy
Posts: 19
Joined: Fri Jun 22, 2007 7:39 pm

Post by Daveyboy »

package;

apt-get install apache2 php5 libapache2-mod-php5 mysql-server mysql-client php5-mysql phpmyadmin
iYRe
Posts: 40
Joined: Mon May 07, 2007 4:49 pm
Location: Auckland NZ
Contact:

Post by iYRe »

hmmm

well I had this problem till i compiled by hand from the latest php, and symlinked everything to the paths I set.. then I was sure the php was right.

The problem definately appears to me to be php...
can you do a "whereis php" for me?
If a man is in a forest, and he speaks to a tree and no woman can hear....

[i]is he still wrong?[/i]
Daveyboy
Posts: 19
Joined: Fri Jun 22, 2007 7:39 pm

Post by Daveyboy »

I tried pointing the app to /usr/bin/php5 in Settings>paths , but same result

root@cacti:/usr/share/cacti/rra# whereis php
php: /usr/bin/php /usr/bin/X11/php /usr/share/php /usr/share/man/man1/php.1.gz

root@cacti:/usr/share/cacti/rra# whereis php5
php5: /usr/bin/php5 /etc/php5 /usr/lib/php5 /usr/bin/X11/php5 /usr/share/php5 /usr/share/man/man1/php5.1.gz
iYRe
Posts: 40
Joined: Mon May 07, 2007 4:49 pm
Location: Auckland NZ
Contact:

Post by iYRe »

hmm

i'd compile php and set the path to /usr/bin, I think the default is /usr/local/bin - which is ok because you can symlink /usr/bin/php to it. If you dont it will go with the highest path.

There is some issues with the debian php package, we've given up installing it from package now.
If a man is in a forest, and he speaks to a tree and no woman can hear....

[i]is he still wrong?[/i]
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests