Graph not Generating

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

Moderators: Developers, Moderators

Post Reply
freebird
Posts: 4
Joined: Fri Mar 23, 2007 7:00 am

Graph not Generating

Post by freebird »

Hello..
I am newbie to Linux as well as cacti.I have installed cacti in cent os 4.4, when, Intially i was getting error in debug mode saying directory not found...now that has gone but still this problem presist.The problem is there for all the graph.
RRDtool 1.2
Net-SNMP 5
perl
Image

Help me out, Before installing cacti, i installed MRTg...is it due to it?


Regards
freebird
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

did you add a crontab entry for the poller ?

If yes, can you run it once by hand ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
freebird
Posts: 4
Joined: Fri Mar 23, 2007 7:00 am

Post by freebird »

*/5 * * * * cacti php /var/www/html/cacti/poller.php > /dev/null 2>&1


I have added this in crontab...but it doest show's any crontab running for user cacti nor root....

Guide me to run it manually...

Regards
frrebird
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Log in as 'cactiuser', and run :

Code: Select all

$ php /var/www/html/cacti/poller.php
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
freebird
Posts: 4
Joined: Fri Mar 23, 2007 7:00 am

Post by freebird »

php /var/www/html/cacti/poller.php
Content-type: text/html
X-Powered-By: PHP/4.3.9

03/24/2007 09:35:43 AM - POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting.
03/24/2007 09:35:43 AM - SYSTEM STATS: Time:293.3940 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:16 RRDsProcessed:0
PHP Warning: pclose(): 45 is not a valid stream resource in /var/www/html/cacti/lib/rrd.php on line 48


Getting this error while running "php /var/www/html/cacti/poller.php" and graph has changed to.Image



Regards
freebird
freebird
Posts: 4
Joined: Fri Mar 23, 2007 7:00 am

Post by freebird »

freebird wrote:php /var/www/html/cacti/poller.php
Content-type: text/html
X-Powered-By: PHP/4.3.9

03/24/2007 09:35:43 AM - POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting.
03/24/2007 09:35:43 AM - SYSTEM STATS: Time:293.3940 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:16 RRDsProcessed:0
PHP Warning: pclose(): 45 is not a valid stream resource in /var/www/html/cacti/lib/rrd.php on line 48


Getting this error while running "php /var/www/html/cacti/poller.php" and graph has changed to.Image



Regards
freebird

Can Anyone help me out please

Regards
freebird
gfeghali
Posts: 2
Joined: Fri Mar 16, 2007 1:36 am

cacti .8j does not like PHP-4xx

Post by gfeghali »

I have came problem,
Seems that cacti 0.8j does not like PHP 4.xx !!!
Any ideas why ? Or any patches ?
TimmiT.nl
Posts: 4
Joined: Thu Mar 03, 2005 11:50 am
Location: Netherlands
Contact:

Post by TimmiT.nl »

same problem here
dgaudette
Posts: 1
Joined: Thu Apr 05, 2007 1:17 pm

Post by dgaudette »

changed the command to:

php5 /var/www/html/cacti/poller.php

and it seems to work now.
TimmiT.nl
Posts: 4
Joined: Thu Mar 03, 2005 11:50 am
Location: Netherlands
Contact:

Post by TimmiT.nl »

The problem went a way...
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest