[solved] Graphs are not being generated

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
microthorne
Posts: 6
Joined: Thu Sep 22, 2005 11:37 am

[solved] Graphs are not being generated

Post by microthorne »

Hi,

I am trying to figure out why our graphs are not being generated. Not seeing any errors in the logs. If I look at the Poller Cache, I see this:

Code: Select all

Data Source: Localhost - Memory - Free  
RRD: C:\Program Files\Apache Group\Apache2\htdocs\cacti\rra\localhost_mem_buffers_3.rrd  
Action: 1, Script: perl C:/Program Files/Apache Group/Apache2/htdocs/cacti/scripts/linux_memory.pl MemFree:
But the file does not exist in \rra. As a matter of fact, the only file in there is .placeholder. What information can I provide in order to get help with this?

Tried what was stated in this thread: http://forums.cacti.net/viewtopic.php?t ... not+module
I no longer get the php -q errors, and the scheduled task now completes with error code 0x0. However, I still do no see any graphs. On occasion, the task times out at 298 seconds.

System Configuration:
Windows 2003 Server
Apache 2.0
rrdtool 1.2.11 (cygwin)
cacti G
MySql 4.1
Perl 5.8
PHP 5.0

DEBUG Log Output (using cactid):

Code: Select all

View Cacti Log File [15 Items] 
 
09/22/2005 10:31:34 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:\cactid\cactid.exe, ARGS: 0 1]  
09/22/2005 10:31:29 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:\cactid\cactid.exe, ARGS: 0 1]  
09/22/2005 10:31:14 AM - WEBLOG: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe graph - --imgformat=PNG --start=1127323873 --end=1127410273 --title="Localhost - Processes" --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 COMMENT:"From 2005/09/21 10\:31\:13 To 2005/09/22 10\:31\:13\c" COMMENT:" \n" --vertical-label="processes" --slope-mode DEF:a="C\:/Program Files/Apache Group/Apache2/htdocs/cacti/rra/localhost_proc_7.rrd":proc:AVERAGE AREA:a#F51D30:"Running Processes" GPRINT:a:LAST:"Current\:%8.0lf" GPRINT:a:AVERAGE:"Average\:%8.0lf" GPRINT:a:MAX:"Maximum\:%8.0lf"  
09/22/2005 10:31:14 AM - WEBLOG: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe graph - --imgformat=PNG --start=1127323873 --end=1127410273 --title="Localhost - Logged in Users" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 COMMENT:"From 2005/09/21 10\:31\:13 To 2005/09/22 10\:31\:13\c" COMMENT:" \n" --vertical-label="users" --slope-mode DEF:a="C\:/Program Files/Apache Group/Apache2/htdocs/cacti/rra/localhost_users_6.rrd":users:AVERAGE AREA:a#4668E4:"Users" GPRINT:a:LAST:"Current\:%8.0lf" GPRINT:a:AVERAGE:"Average\:%8.0lf" GPRINT:a:MAX:"Maximum\:%8.0lf"  
09/22/2005 10:31:14 AM - WEBLOG: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe graph - --imgformat=PNG --start=1127323873 --end=1127410273 --title="Localhost - Load Average" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --units-exponent=0 COMMENT:"From 2005/09/21 10\:31\:13 To 2005/09/22 10\:31\:13\c" COMMENT:" \n" --vertical-label="processes in the run queue" --slope-mode DEF:a="C\:/Program Files/Apache Group/Apache2/htdocs/cacti/rra/localhost_load_1min_5.rrd":load_1min:AVERAGE DEF:b="C\:/Program Files/Apache Group/Apache2/htdocs/cacti/rra/localhost_load_1min_5.rrd":load_5min:AVERAGE DEF:c="C\:/Program Files/Apache Group/Apache2/htdocs/cacti/rra/localhost_load_1min_5.rrd":load_15min:AVERAGE CDEF:cdefg=TIME,1127409974,GT,a,a,UN,0,a,IF,IF,TIME,1127409974,GT,b,b,UN,0,b,IF,IF,TIME,1127409974,GT,c,c,UN,0,c,IF,IF,+,+ AREA:a#EACC00:"1 Minute Average" GPRINT:a:LAST:" Current\:%8.2lf\n" AREA:b#EA8F00:"5 Minute Average":STACK GPRINT:b:LAST:" Current\:%8.2lf\n" AREA:c#FF0000:"15 Minute Average":STACK GPRINT:c:LAST:"Current\:%8.2lf\n" LINE1:cdefg#000000:""  
09/22/2005 10:31:13 AM - WEBLOG: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe graph - --imgformat=PNG --start=1127323873 --end=1127410273 --title="Localhost - Memory Usage" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 COMMENT:"From 2005/09/21 10\:31\:13 To 2005/09/22 10\:31\:13\c" COMMENT:" \n" --vertical-label="kilobytes" --slope-mode DEF:a="C\:/Program Files/Apache Group/Apache2/htdocs/cacti/rra/localhost_mem_buffers_3.rrd":mem_buffers:AVERAGE DEF:b="C\:/Program Files/Apache Group/Apache2/htdocs/cacti/rra/localhost_mem_swap_4.rrd":mem_swap:AVERAGE AREA:a#FF4105:"Free" GPRINT:a:LAST:"Current\:%8.2lf %s" GPRINT:a:AVERAGE:"Average\:%8.2lf %s" GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" AREA:b#FFC73B:"Swap":STACK GPRINT:b:LAST:"Current\:%8.2lf %s" GPRINT:b:AVERAGE:"Average\:%8.2lf %s" GPRINT:b:MAX:"Maximum\:%8.2lf %s"  
09/22/2005 10:29:55 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:\cactid\cactid.exe, ARGS: 0 1]  
09/22/2005 10:29:52 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:\cactid\cactid.exe, ARGS: 0 1]
DEBUG Log Output (using cmd.php):

Code: Select all

View Cacti Log File [26 Items] 
 
09/22/2005 10:35:06 AM - WEBLOG: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe graph - --imgformat=PNG --start=1127324105 --end=1127410505 --title="Localhost - Processes" --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 COMMENT:"From 2005/09/21 10\:35\:05 To 2005/09/22 10\:35\:05\c" COMMENT:" \n" --vertical-label="processes" --slope-mode DEF:a="C\:/Program Files/Apache Group/Apache2/htdocs/cacti/rra/localhost_proc_7.rrd":proc:AVERAGE AREA:a#F51D30:"Running Processes" GPRINT:a:LAST:"Current\:%8.0lf" GPRINT:a:AVERAGE:"Average\:%8.0lf" GPRINT:a:MAX:"Maximum\:%8.0lf"  
09/22/2005 10:35:06 AM - WEBLOG: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe graph - --imgformat=PNG --start=1127324105 --end=1127410505 --title="Localhost - Logged in Users" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 COMMENT:"From 2005/09/21 10\:35\:05 To 2005/09/22 10\:35\:05\c" COMMENT:" \n" --vertical-label="users" --slope-mode DEF:a="C\:/Program Files/Apache Group/Apache2/htdocs/cacti/rra/localhost_users_6.rrd":users:AVERAGE AREA:a#4668E4:"Users" GPRINT:a:LAST:"Current\:%8.0lf" GPRINT:a:AVERAGE:"Average\:%8.0lf" GPRINT:a:MAX:"Maximum\:%8.0lf"  
09/22/2005 10:35:05 AM - WEBLOG: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe graph - --imgformat=PNG --start=1127324105 --end=1127410505 --title="Localhost - Load Average" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --units-exponent=0 COMMENT:"From 2005/09/21 10\:35\:05 To 2005/09/22 10\:35\:05\c" COMMENT:" \n" --vertical-label="processes in the run queue" --slope-mode DEF:a="C\:/Program Files/Apache Group/Apache2/htdocs/cacti/rra/localhost_load_1min_5.rrd":load_1min:AVERAGE DEF:b="C\:/Program Files/Apache Group/Apache2/htdocs/cacti/rra/localhost_load_1min_5.rrd":load_5min:AVERAGE DEF:c="C\:/Program Files/Apache Group/Apache2/htdocs/cacti/rra/localhost_load_1min_5.rrd":load_15min:AVERAGE CDEF:cdefg=TIME,1127410205,GT,a,a,UN,0,a,IF,IF,TIME,1127410205,GT,b,b,UN,0,b,IF,IF,TIME,1127410205,GT,c,c,UN,0,c,IF,IF,+,+ AREA:a#EACC00:"1 Minute Average" GPRINT:a:LAST:" Current\:%8.2lf\n" AREA:b#EA8F00:"5 Minute Average":STACK GPRINT:b:LAST:" Current\:%8.2lf\n" AREA:c#FF0000:"15 Minute Average":STACK GPRINT:c:LAST:"Current\:%8.2lf\n" LINE1:cdefg#000000:""  
09/22/2005 10:35:05 AM - WEBLOG: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe graph - --imgformat=PNG --start=1127324105 --end=1127410505 --title="Localhost - Memory Usage" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 COMMENT:"From 2005/09/21 10\:35\:05 To 2005/09/22 10\:35\:05\c" COMMENT:" \n" --vertical-label="kilobytes" --slope-mode DEF:a="C\:/Program Files/Apache Group/Apache2/htdocs/cacti/rra/localhost_mem_buffers_3.rrd":mem_buffers:AVERAGE DEF:b="C\:/Program Files/Apache Group/Apache2/htdocs/cacti/rra/localhost_mem_swap_4.rrd":mem_swap:AVERAGE AREA:a#FF4105:"Free" GPRINT:a:LAST:"Current\:%8.2lf %s" GPRINT:a:AVERAGE:"Average\:%8.2lf %s" GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" AREA:b#FFC73B:"Swap":STACK GPRINT:b:LAST:"Current\:%8.2lf %s" GPRINT:b:AVERAGE:"Average\:%8.2lf %s" GPRINT:b:MAX:"Maximum\:%8.2lf %s"  
09/22/2005 10:34:57 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:\php\php-win.exe, ARGS: -q c:/program files/apache group/apache2/htdocs/cacti/cmd.php 0 1]
Last edited by microthorne on Thu Sep 22, 2005 2:52 pm, edited 1 time in total.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) Cacti doesn't like spaces in your file paths, so change it to something like C:\website\cacti

2) You realize you're trying to run a script meant for linux on a windows host? That will not work.

3) Turn the polling level in cacti to debug (Settings | Polling level) for one cycle and paste the output of the log file (./cacti/log/cacti.log). If it contains WEBLOG entries, then don't bother posting since they just clutter up the log. Turn off WEBEVENTS logging and try again.
microthorne
Posts: 6
Joined: Thu Sep 22, 2005 11:37 am

Post by microthorne »

1. Spaces no longer exist in the path.
2. Just want to see any graph work... :)
3. Disabled web events logging and left Poller "Statistics, Warning and Error"

Log:

Code: Select all

09/22/2005 11:33:24 AM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.  
09/22/2005 11:30:45 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:\cactid\cactid.exe, ARGS: 0 1] 
Poller Cache:

Code: Select all

Data Source: Localhost - Load Average  
RRD: C:\apache2\Apache2\htdocs\cacti\rra\localhost_load_1min_5.rrd  
Action: 1, Script: perl C:/apache2/Apache2/htdocs/cacti/scripts/loadavg_multi.pl
Still no graphs (broken images shown instead.)

AHA! Switched to cmd.php as the poller and I am now seeing graphs!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest