[solved] Graphs shown as broken image Links

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

Moderators: Developers, Moderators

Post Reply
CrysiX
Posts: 4
Joined: Tue Jan 28, 2014 8:00 am

[solved] Graphs shown as broken image Links

Post by CrysiX »

Hi There :D

I am an absolute Newbie regarding cacti, and it is my first try to install cacti on a Server.

Now my Problem is that cacti is only showing broken Image Links where the graphs should be.

Afterwards you will find my software and the versions i use.

Server OS: Windows Server 2003 Standard SP2
Webserver: Apache 2.2.17 (xampp)
Cacti: 0.8.8a
Spine: 0.8.8a
MySQL: 5.5.8 (xampp)
PHP: 5.3.5 (xampp)
RRDtool: 1.3.8 Win32
NetSNMP: 5.6.1.1

As is said above the Problem i have is that Cacti is only showing borken image Links instead of graphs. afterwards you can see the RRDtool Output from the debug mode and the cacti Log File Output (debug).

Here is the Output from the Log File:
03/10/2014 12:10:02 PM - SYSTEM STATS: Time:2.5193 Method:spine Processes:1 Threads:1 Hosts:3 HostsPerProcess:3 DataSources:1 RRDsProcessed:1
03/10/2014 12:10:02 PM - SPINE: Poller[0] Time: 2.4530 s, Threads: 1, Hosts: 3
03/10/2014 12:10:02 PM - SPINE: Poller[0] DEBUG: Net-SNMP Close Completed
03/10/2014 12:10:02 PM - SPINE: Poller[0] DEBUG: MYSQL Free & Close Completed
03/10/2014 12:10:02 PM - SPINE: Poller[0] DEBUG: Allocated Variable Memory Freed
03/10/2014 12:10:02 PM - SPINE: Poller[0] DEBUG: PHP Script Server Pipes Closed
03/10/2014 12:10:02 PM - SPINE: Poller[0] DEBUG: Thread Cleanup Complete
03/10/2014 12:10:02 PM - POLLER: Poller[0] CACTI2RRD: D:/Cactisoftware/RRDtool/rrdtool.exe update D:\Cactisoftware\xampp\htdocs\cacti\rra\test_5min_cpu_8.rrd --template 5min_cpu 1394449802:U
03/10/2014 12:10:02 PM - SPINE: Poller[0] DEBUG: The Value of Active Threads is 0
03/10/2014 12:10:02 PM - SPINE: Poller[0] Host[3] TH[1] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
03/10/2014 12:10:02 PM - SPINE: Poller[0] Host[3] TH[1] Total Time: 0 Seconds
03/10/2014 12:10:02 PM - SPINE: Poller[0] Host[3] TH[1] DS[8] SNMP: v1: 159.103.86.33, dsname: 5min_cpu, oid: .1.3.6.1.4.1.9.2.1.58.0, value: U
03/10/2014 12:10:02 PM - SPINE: Poller[0] Host[3] TH[1] NOTE: There are '1' Polling Items for this Host
03/10/2014 12:10:02 PM - SPINE: Poller[0] Host[3] TH[1] Host has no information for recache.
03/10/2014 12:10:02 PM - SPINE: Poller[0] Host[3] SNMP Result: Host responded to SNMP
03/10/2014 12:10:02 PM - SPINE: Poller[0] Host[3] DEBUG: Entering SNMP Ping
03/10/2014 12:10:02 PM - SPINE: Poller[0] DEBUG: The Value of Active Threads is 1
03/10/2014 12:10:02 PM - SPINE: Poller[0] DEBUG: Valid Thread to be Created
03/10/2014 12:10:02 PM - SPINE: Poller[0] DEBUG: In Poller, About to Start Polling of Host
03/10/2014 12:10:02 PM - SPINE: Poller[0] DEBUG: The Value of Active Threads is 0
03/10/2014 12:10:02 PM - SPINE: Poller[0] Host[2] TH[1] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
03/10/2014 12:10:02 PM - SPINE: Poller[0] Host[2] TH[1] Total Time: 2.1 Seconds
03/10/2014 12:10:02 PM - SPINE: Poller[0] Host[2] SNMP Result: Host did not respond to SNMP
03/10/2014 12:10:02 PM - SPINE: Poller[0] Host[2] SNMP Ping Error: Unknown error: 2
03/10/2014 12:10:00 PM - SPINE: Poller[0] Host[2] DEBUG: Entering SNMP Ping
03/10/2014 12:10:00 PM - SPINE: Poller[0] DEBUG: The Value of Active Threads is 1
03/10/2014 12:10:00 PM - SPINE: Poller[0] DEBUG: In Poller, About to Start Polling of Host
03/10/2014 12:10:00 PM - SPINE: Poller[0] DEBUG: Valid Thread to be Created
03/10/2014 12:10:00 PM - SPINE: Poller[0] DEBUG: The Value of Active Threads is 0
03/10/2014 12:10:00 PM - SPINE: Poller[0] Host[0] TH[1] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
03/10/2014 12:10:00 PM - SPINE: Poller[0] Host[0] TH[1] Total Time: 0 Seconds
03/10/2014 12:10:00 PM - SPINE: Poller[0] DEBUG: The Value of Active Threads is 1
03/10/2014 12:10:00 PM - SPINE: Poller[0] DEBUG: In Poller, About to Start Polling of Host
03/10/2014 12:10:00 PM - SPINE: Poller[0] DEBUG: Valid Thread to be Created
03/10/2014 12:10:00 PM - SPINE: Poller[0] DEBUG: Initial Value of Active Threads is 0
03/10/2014 12:10:00 PM - SPINE: Poller[0] NOTE: Spine is behaving in a 0.8.7g+ manner
03/10/2014 12:10:00 PM - SPINE: Poller[0] NOTE: Spine will support multithread device polling.
03/10/2014 12:10:00 PM - SPINE: Poller[0] SPINE: Initializing PHP Script Server(s)
03/10/2014 12:10:00 PM - SPINE: Poller[0] DEBUG: Issues with SNMP Header Version information, assuming old version of Net-SNMP.
03/10/2014 12:10:00 PM - SPINE: Poller[0] SPINE: Initializing Net-SNMP API
03/10/2014 12:10:00 PM - SPINE: Poller[0] DEBUG: MySQL is Thread Safe!
03/10/2014 12:10:00 PM - SPINE: Poller[0] Version 0.8.8a starting
03/10/2014 12:10:00 PM - SPINE: Poller[0] DEBUG: The Maximum SNMP OID Get Size is 10
03/10/2014 12:10:00 PM - SPINE: Poller[0] DEBUG: The PHP Script Server is Not Required
03/10/2014 12:10:00 PM - SPINE: Poller[0] DEBUG: StartHost='0', EndHost='3', TotalPHPScripts='0'
03/10/2014 12:10:00 PM - SPINE: Poller[0] DEBUG: The number of php script servers to run is 1
03/10/2014 12:10:00 PM - SPINE: Poller[0] DEBUG: The script timeout is 25
03/10/2014 12:10:00 PM - SPINE: Poller[0] DEBUG: The number of concurrent processes is 1
03/10/2014 12:10:00 PM - SPINE: Poller[0] DEBUG: The polling interval is 300 seconds
03/10/2014 12:10:00 PM - SPINE: Poller[0] DEBUG: The threads variable is 1
03/10/2014 12:10:00 PM - SPINE: Poller[0] DEBUG: The log_pstats variable is 0
03/10/2014 12:10:00 PM - SPINE: Poller[0] DEBUG: The boost_redirect variable is 0
03/10/2014 12:10:00 PM - SPINE: Poller[0] DEBUG: The log_pwarn variable is 0
03/10/2014 12:10:00 PM - SPINE: Poller[0] DEBUG: The log_perror variable is 1
03/10/2014 12:10:00 PM - SPINE: Poller[0] DEBUG: The snmp_retries variable is 3
03/10/2014 12:10:00 PM - SPINE: Poller[0] DEBUG: The ping_timeout variable is 400
03/10/2014 12:10:00 PM - SPINE: Poller[0] DEBUG: The ping_retries variable is 1
03/10/2014 12:10:00 PM - SPINE: Poller[0] DEBUG: The ping_method variable is 2
03/10/2014 12:10:00 PM - SPINE: Poller[0] DEBUG: The ping_failure_count variable is 2
03/10/2014 12:10:00 PM - SPINE: Poller[0] DEBUG: The ping_recovery_count variable is 3
03/10/2014 12:10:00 PM - SPINE: Poller[0] DEBUG: The availability_method variable is 2
03/10/2014 12:10:00 PM - SPINE: Poller[0] DEBUG: The path_php variable is D:/Cactisoftware/xampp/php/php.exe
03/10/2014 12:10:00 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: D:/Cactisoftware/spine/spine.exe, ARGS: 0 3]
03/10/2014 12:10:00 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Scheduled Task Int: '300', Time Since Last: '300', Max Runtime '298', Poller Runs: '1'
And Here is the Output from the graph debug mode:
D:/Cactisoftware/RRDtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="test - CPU Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit="0" \
--vertical-label="percent" \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a="D\:/Cactisoftware/xampp/htdocs/cacti/rra/test_5min_cpu_8.rrd":"5min_cpu":AVERAGE \
AREA:a#FF0000FF:"CPU Usage" \
GPRINT:a:LAST:"Current\:%8.0lf" \
GPRINT:a:AVERAGE:"Average\:%8.0lf" \
GPRINT:a:MAX:"Maximum\:%8.0lf\n"

RRDTool Says:

OK
If you need any additional Information just tell me, so i can give it to you.
thanks in advance :)

Kind Regards

CrysiX
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Graphs shown as broken image Links

Post by BSOD2600 »

1) use cmd.php instead of spine until you need the performance boost.
2) unless 159.103.86.33 is a cisco device, that template will not work for cpu collection. Notice the output is U in cacti.log? that means nothing was collected.
CrysiX
Posts: 4
Joined: Tue Jan 28, 2014 8:00 am

Re: Graphs shown as broken image Links

Post by CrysiX »

Ok i will try it. i will tell if it worked afterwards. Thanks for the reply in Advance :)

Kind Regards

CrysiX
CrysiX
Posts: 4
Joined: Tue Jan 28, 2014 8:00 am

Re: Graphs shown as broken image Links

Post by CrysiX »

Ok i now use the PHP Poller. It is indeed a cisco device but i now tried to graph the Interface Traffic (inbound / outbound bytes with max. bandwith). i created Graphs for 6 Interfaces now and let 3 polling cycles go by. But the graphs are still shown as broken image Links. afterwards again the Output from the Cacti Log File and from the graph debug Mode of one of the graphs.

Log File Output:
03/11/2014 09:15:02 AM - SYSTEM STATS: Time:2.2017 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:13 RRDsProcessed:7
03/11/2014 09:15:02 AM - POLLER: Poller[0] CACTI2RRD: D:/Cactisoftware/RRDtool/rrdtool.exe update D:\Cactisoftware\xampp\htdocs\cacti\rra\test_traffic_in_15.rrd --template traffic_out:traffic_in 1394525700:3351253588:2861804264
03/11/2014 09:15:02 AM - CMDPHP: Poller[0] Time: 2.0591 s, Theads: N/A, Hosts: 2
03/11/2014 09:15:02 AM - CMDPHP: Poller[0] Host[3] DS[15] SNMP: v1: 159.103.86.33, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.17338368, output: 3351253588
03/11/2014 09:15:02 AM - CMDPHP: Poller[0] Host[3] DS[15] SNMP: v1: 159.103.86.33, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.17338368, output: 2861804264
03/11/2014 09:15:02 AM - POLLER: Poller[0] CACTI2RRD: D:/Cactisoftware/RRDtool/rrdtool.exe update D:\Cactisoftware\xampp\htdocs\cacti\rra\test_traffic_in_14.rrd --template traffic_in:traffic_out 1394525700:3816755660:2762643048
03/11/2014 09:15:02 AM - CMDPHP: Poller[0] Host[3] DS[14] SNMP: v1: 159.103.86.33, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.17330176, output: 2762643048
03/11/2014 09:15:02 AM - CMDPHP: Poller[0] Host[3] DS[14] SNMP: v1: 159.103.86.33, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.17330176, output: 3816755660
03/11/2014 09:15:01 AM - POLLER: Poller[0] CACTI2RRD: D:/Cactisoftware/RRDtool/rrdtool.exe update D:\Cactisoftware\xampp\htdocs\cacti\rra\test_traffic_in_13.rrd --template traffic_out:traffic_in 1394525700:3052376:2263864
03/11/2014 09:15:01 AM - CMDPHP: Poller[0] Host[3] DS[13] SNMP: v1: 159.103.86.33, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.17326080, output: 3052376
03/11/2014 09:15:01 AM - CMDPHP: Poller[0] Host[3] DS[13] SNMP: v1: 159.103.86.33, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.17326080, output: 2263864
03/11/2014 09:15:01 AM - POLLER: Poller[0] CACTI2RRD: D:/Cactisoftware/RRDtool/rrdtool.exe update D:\Cactisoftware\xampp\htdocs\cacti\rra\test_traffic_in_12.rrd --template traffic_in:traffic_out 1394525700:3151998168:845425188
03/11/2014 09:15:01 AM - CMDPHP: Poller[0] Host[3] DS[12] SNMP: v1: 159.103.86.33, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.17321984, output: 845425188
03/11/2014 09:15:01 AM - CMDPHP: Poller[0] Host[3] DS[12] SNMP: v1: 159.103.86.33, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.17321984, output: 3151998168
03/11/2014 09:15:01 AM - POLLER: Poller[0] CACTI2RRD: D:/Cactisoftware/RRDtool/rrdtool.exe update D:\Cactisoftware\xampp\htdocs\cacti\rra\test_traffic_in_11.rrd --template traffic_out:traffic_in 1394525700:3432278000:1735091948
03/11/2014 09:15:01 AM - CMDPHP: Poller[0] Host[3] DS[11] SNMP: v1: 159.103.86.33, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.17313792, output: 3432278000
03/11/2014 09:15:01 AM - CMDPHP: Poller[0] Host[3] DS[11] SNMP: v1: 159.103.86.33, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.17313792, output: 1735091948
03/11/2014 09:15:01 AM - POLLER: Poller[0] CACTI2RRD: D:/Cactisoftware/RRDtool/rrdtool.exe update D:\Cactisoftware\xampp\htdocs\cacti\rra\test_traffic_in_10.rrd --template traffic_in:traffic_out 1394525700:3817239156:3764598864
03/11/2014 09:15:01 AM - CMDPHP: Poller[0] Host[3] DS[10] SNMP: v1: 159.103.86.33, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.17309696, output: 3764598864
03/11/2014 09:15:00 AM - CMDPHP: Poller[0] Host[3] DS[10] SNMP: v1: 159.103.86.33, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.17309696, output: 3817239156
03/11/2014 09:15:00 AM - POLLER: Poller[0] CACTI2RRD: D:/Cactisoftware/RRDtool/rrdtool.exe update D:\Cactisoftware\xampp\htdocs\cacti\rra\test_snmp_oid_9.rrd --template snmp_oid 1394525700:U
03/11/2014 09:15:00 AM - CMDPHP: Poller[0] Host[3] DS[9] SNMP: v1: 159.103.86.33, dsname: snmp_oid, oid: , output: U
03/11/2014 09:15:00 AM - CMDPHP: Poller[0] Host[3] DS[9] WARNING: Result from SNMP not valid. Partial Result: U
03/11/2014 09:15:00 AM - CMDPHP: Poller[0] Host[3] RECACHE DQ[1] OID: .1.3.6.1.2.1.1.3.0, output: 1624528701
03/11/2014 09:15:00 AM - CMDPHP: Poller[0] Host[3] RECACHE DQ[1] OID: .1.3.6.1.2.1.1.3.0
03/11/2014 09:15:00 AM - CMDPHP: Poller[0] Host[3] RECACHE: Processing 1 items in the auto reindex cache for '159.103.86.33'.
03/11/2014 09:15:00 AM - CMDPHP: Poller[0] Host[3] SNMP: Host responded to SNMP
03/11/2014 09:15:00 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: D:/Cactisoftware/xampp/php/php.exe, ARGS: -q "d:/cactisoftware/xampp/htdocs/cacti/cmd.php" 0 3]
03/11/2014 09:15:00 AM - POLLER: Poller[0] NOTE: Poller Int: '300', Scheduled Task Int: '300', Time Since Last: '300', Max Runtime '298', Poller Runs: '1'
i realise that there is an invalid result from Data Source 9, but this shouldn't be a problem for the other 5 Graphs?

Graph Debug Mode DS 12:
D:/Cactisoftware/RRDtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="test - Traffic - fc2/10" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit="0" \
--vertical-label="bytes per second" \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a="D\:/Cactisoftware/xampp/htdocs/cacti/rra/test_traffic_in_15.rrd":"traffic_in":AVERAGE \
DEF:b="D\:/Cactisoftware/xampp/htdocs/cacti/rra/test_traffic_in_15.rrd":"traffic_out":AVERAGE \
AREA:a#00CF00FF:"Inbound" \
GPRINT:a:LAST:" Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
COMMENT:"Total In\: 3.7 MB\n" \
LINE1:b#002A97FF:"Outbound" \
GPRINT:b:LAST:"Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n" \
COMMENT:"Total Out\: 408.72 KB\n"

RRDTool Says:

OK

thanks again for Help.

Kind Regards

CrysiX
CrysiX
Posts: 4
Joined: Tue Jan 28, 2014 8:00 am

Re: Graphs shown as broken image Links

Post by CrysiX »

OK

I Finally figured out the Problem i had. It kinda looks like the RRDtool version i used was kinda f***** Up. i installed a different Version of it, and it works now.

Thanks for your help :)

/close
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest