I come to see no graphs

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
ingenious
Posts: 7
Joined: Wed Jul 02, 2008 8:13 am

I come to see no graphs

Post by ingenious »

Hello,

I've installed Cacti 0.8.7b on a SUSE Linux 10.1 (X86-64) with 2.6.20.21-071108a kernel. Some more system information:

/usr/bin/php5 -v
PHP 5.1.2 with Suhosin-Patch 0.9.6 (cli) (built: Dec 12 2007 02:15:51)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

/usr/bin/rrdtool -v
RRDtool 1.2.12 Copyright 1997-2005 by Tobias Oetiker <tobi@oetiker.ch>
Compiled May 2 2006 08:52:38

In the cacti graphic interface I get [OK: FILE FOUND] for everything(except for spine of course) in settings > paths. It also displays that Devices > Localhost is up and I see the snmp information about localhost. I'va added couple of graphs I'd like to observe, but I only get e.g. Localhost - Memory Usage, and no image at all.
When I disable polling and run the poller.php mannualy I get the following:
php5 poller.php
07/30/2008 10:16:07 AM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '364', Max Runtime '298', Poller Runs: '1'
07/30/2008 10:16:07 AM - POLLER: Poller[0] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 364 seconds have passed since the last poll!
07/30/2008 10:16:07 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php5, ARGS: -q /srv/www/vhosts/b-wise.info/subdomains/cacti/httpdocs/cmd.php 0 0]
sh: /php5: No such file or directory
07/30/2008 10:16:07 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php5, ARGS: -q /srv/www/vhosts/b-wise.info/subdomains/cacti/httpdocs/cmd.php 1 1]
sh: /php5: No such file or directory
PHP Warning: putenv(): Safe Mode warning: Cannot set environment variable 'RRD_DEFAULT_FONT' - it's not in the allowed list in /srv/www/vhosts/b-wise.info/subdomains/cacti/httpdocs/lib/rrd.php on line 37
Waiting on 2/2 pollers.
sh: /rrdtool: No such file or directory
Waiting on 2/2 pollers.
Waiting on 2/2 pollers.
Waiting on 2/2 pollers.
Waiting on 2/2 pollers.
Waiting on 2/2 pollers.
Waiting on 2/2 pollers.
Waiting on 2/2 pollers.
...

And I'm pretty much lost. I'd appreciate any help at all :)
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You are either jailed by your hosting company or PHP is running in safe mode. You have to resolve that.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
ingenious
Posts: 7
Joined: Wed Jul 02, 2008 8:13 am

Post by ingenious »

TheWitness wrote:You are either jailed by your hosting company or PHP is running in safe mode. You have to resolve that.

TheWitness
phpinfo() says:
safe_mode Off(local) On(master)

so I guess it's not it. What do you mean "jailed" ?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Your messages indicate otherwise. Is this your own server, or are you running on a Hosting Companies hardware? If on someone else's hardware, talk to them about your problem. Let us know how it goes. If it's your own environment, your /etc/php.ini file controls PHP's behavior. Look for the words "safe". Make the appropriate changes and restart Apache.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
ingenious
Posts: 7
Joined: Wed Jul 02, 2008 8:13 am

Post by ingenious »

it's a server of my own more or less... It's a server at the company I work for.

There is a /etc/php5/apache2/php.ini and it says
safe_mode = On
and that's the master value from my phpinfo() ( http://cacti.b-wise.info/phpinfo.php )
But still the safe_mode should've been disabled for the current subdomain... I'll keep poking around for a little while ... probably I'll get the people at the office to agree we should disable safe_mode globally...
anyway, thanks a lot !
ingenious
Posts: 7
Joined: Wed Jul 02, 2008 8:13 am

Post by ingenious »

I think I've fixed it:

I've added a local php.ini file with

Code: Select all

safe_mode = Off
and an .htaccess with

Code: Select all

php_flag safe_mode off
and now I get
php5 poller.php
07/30/2008 01:13:41 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '390', Max Runtime '298', Poller Runs: '1'
07/30/2008 01:13:41 PM - POLLER: Poller[0] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 390 seconds have passed since the last poll!
07/30/2008 01:13:41 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php5, ARGS: -q /srv/www/vhosts/b-wise.info/subdomains/cacti/httpdocs/cmd.php 0 0]
07/30/2008 01:13:41 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php5, ARGS: -q /srv/www/vhosts/b-wise.info/subdomains/cacti/httpdocs/cmd.php 1 1]
Waiting on 1/2 pollers.
07/30/2008 01:13:42 PM - SYSTEM STATS: Time:1.2578 Method:cmd.php Processes:2 Threads:N/A Hosts:2 HostsPerProcess:1 DataSources:0 RRDsProcessed:0
Loop Time is: 1.260073184967
Sleep Time is: 298.7374329567
Total Time is: 1.2625670433044


So I guess I'll be seeing graphs in just a couple of minutes :) thanks for the help one more time !
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests