Graphs Not displaying?
Moderators: Developers, Moderators
Graphs Not displaying?
Hey everyone, I am new to Cacti, just installed it today under Win2003 with IIS6. So far everything appears to be working except the graphs. I have read a few posts with no real answers to my problem. When I attempt to view a graph, I get a broken link, the image url looks something like this:
h**p://localhost/graph_image.php?local_graph_id=4&rra_id=0&graph_height=100&graph_width=300&graph_nolegend=true&graph_start=1125187307&graph_end=1125273707
Is there a step that I have possably overlooked, maybe setting a MIME type?
Thanks in Advance.
h**p://localhost/graph_image.php?local_graph_id=4&rra_id=0&graph_height=100&graph_width=300&graph_nolegend=true&graph_start=1125187307&graph_end=1125273707
Is there a step that I have possably overlooked, maybe setting a MIME type?
Thanks in Advance.
You're likely not collecting and valid data, hence the non-existance of the rrd files.
Turn the polling level in cacti to debug (Settings | Polling level) for one cycle and paste the output of the log file (./cacti/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.
Turn the polling level in cacti to debug (Settings | Polling level) for one cycle and paste the output of the log file (./cacti/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.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
No luck, these images are still not being displayed, here are the current logs if it helps:
08/29/2005 02:39:05 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:\php5\php-win.exe, ARGS: -q c:\inetpub\wwwroot\mrtg/cmd.php 0 5]
08/29/2005 02:39:05 AM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
08/29/2005 02:39:05 AM - PHPSVR: Poller[0] DEBUG: GETCWD: c:/inetpub/wwwroot/mrtg
08/29/2005 02:39:05 AM - PHPSVR: Poller[0] DEBUG: DIRNAM: c:/inetpub/wwwroot/mrtg
08/29/2005 02:39:05 AM - PHPSVR: Poller[0] DEBUG: FILENM: c:\Inetpub\wwwroot\MRTG\script_server.php
08/29/2005 02:39:05 AM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
08/29/2005 02:39:05 AM - CMDPHP: Poller[0] PHP Script Server Started Properly
08/29/2005 02:39:05 AM - CMDPHP: Poller[0] Host[2] SNMP: Host responded to SNMP
08/29/2005 02:39:05 AM - CMDPHP: Poller[0] Host[2] RECACHE: Processing 1 items in the auto reindex cache for '192.168.1.23'.
08/29/2005 02:39:05 AM - CMDPHP: Poller[0] Host[2] DS[10] SNMP: v1: 192.168.1.23, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, output: 64
08/29/2005 02:39:06 AM - CMDPHP: Poller[0] Host[2] DS[10] SNMP: v1: 192.168.1.23, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, output: 2243422
08/29/2005 02:39:06 AM - CMDPHP: Poller[0] Host[3] DS[13] SNMP: v1: 192.168.1.23, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.4, output: 83598301
08/29/2005 02:39:06 AM - CMDPHP: Poller[0] Host[3] DS[13] SNMP: v1: 192.168.1.23, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.4, output: 119246450
08/29/2005 02:39:06 AM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
08/29/2005 02:39:06 AM - CMDPHP: Poller[0] Time: 0.3014 s, Theads: N/A, Hosts: 4
08/29/2005 02:39:06 AM - POLLER: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe update C:\Inetpub\wwwroot\MRTG\rra\nsvr01_mail_server_traffic_in_10.rrd --template traffic_in:traffic_out 1125297545:64:2243422
08/29/2005 02:39:06 AM - POLLER: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe update C:\Inetpub\wwwroot\MRTG\rra\nsvr02_db_server_traffic_in_13.rrd --template traffic_out:traffic_in 1125297545:83598301:119246450
08/29/2005 02:39:06 AM - SYSTEM STATS: Time: 1.0747 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 5, Hosts/Process: 5, Data Sources 4, RRDs Processed 2
08/29/2005 02:39:05 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:\php5\php-win.exe, ARGS: -q c:\inetpub\wwwroot\mrtg/cmd.php 0 5]
08/29/2005 02:39:05 AM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
08/29/2005 02:39:05 AM - PHPSVR: Poller[0] DEBUG: GETCWD: c:/inetpub/wwwroot/mrtg
08/29/2005 02:39:05 AM - PHPSVR: Poller[0] DEBUG: DIRNAM: c:/inetpub/wwwroot/mrtg
08/29/2005 02:39:05 AM - PHPSVR: Poller[0] DEBUG: FILENM: c:\Inetpub\wwwroot\MRTG\script_server.php
08/29/2005 02:39:05 AM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
08/29/2005 02:39:05 AM - CMDPHP: Poller[0] PHP Script Server Started Properly
08/29/2005 02:39:05 AM - CMDPHP: Poller[0] Host[2] SNMP: Host responded to SNMP
08/29/2005 02:39:05 AM - CMDPHP: Poller[0] Host[2] RECACHE: Processing 1 items in the auto reindex cache for '192.168.1.23'.
08/29/2005 02:39:05 AM - CMDPHP: Poller[0] Host[2] DS[10] SNMP: v1: 192.168.1.23, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, output: 64
08/29/2005 02:39:06 AM - CMDPHP: Poller[0] Host[2] DS[10] SNMP: v1: 192.168.1.23, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, output: 2243422
08/29/2005 02:39:06 AM - CMDPHP: Poller[0] Host[3] DS[13] SNMP: v1: 192.168.1.23, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.4, output: 83598301
08/29/2005 02:39:06 AM - CMDPHP: Poller[0] Host[3] DS[13] SNMP: v1: 192.168.1.23, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.4, output: 119246450
08/29/2005 02:39:06 AM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
08/29/2005 02:39:06 AM - CMDPHP: Poller[0] Time: 0.3014 s, Theads: N/A, Hosts: 4
08/29/2005 02:39:06 AM - POLLER: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe update C:\Inetpub\wwwroot\MRTG\rra\nsvr01_mail_server_traffic_in_10.rrd --template traffic_in:traffic_out 1125297545:64:2243422
08/29/2005 02:39:06 AM - POLLER: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe update C:\Inetpub\wwwroot\MRTG\rra\nsvr02_db_server_traffic_in_13.rrd --template traffic_out:traffic_in 1125297545:83598301:119246450
08/29/2005 02:39:06 AM - SYSTEM STATS: Time: 1.0747 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 5, Hosts/Process: 5, Data Sources 4, RRDs Processed 2
The log looks fine. Must be something with you installation.
1) Do you have the permissions set the rrd files so the user running the scheduled task, can update the files?
2) What version of everything are you running?
1) Do you have the permissions set the rrd files so the user running the scheduled task, can update the files?
2) What version of everything are you running?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
I have an admin account running the scheduled task, I have tried several things including changing permission on the server to allow everyone full rights. No changes the images are still broken. Under graph management/template when I set the debug I get the error RRDTOOL SAYS: Access Denied (bottom image). I have tried everything as far as permissions and nothing changes.
win2003 /iis 6
PHP 5.0.4 - ISAPI
cacti 0.8.6f
mysql 4.1
rrdtool 1.0.48
Here are my current logs:
Cacti Log:
08/29/2005 03:34:04 PM - SYSTEM STATS: Time: 1.1477 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 3, Hosts/Process: 3, Data Sources 7, RRDs Processed 6
08/29/2005 03:34:04 PM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update C:\Inetpub\wwwroot\MRTG\rra\nsvr02_db_server_traffic_in_10.rrd --template traffic_in:traffic_out 1125344043:180487372:151370714
08/29/2005 03:34:04 PM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update C:\Inetpub\wwwroot\MRTG\rra\localhost_proc_7.rrd --template proc 1125344043:U
08/29/2005 03:34:04 PM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update C:\Inetpub\wwwroot\MRTG\rra\localhost_users_6.rrd --template users 1125344043:U
08/29/2005 03:34:04 PM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update C:\Inetpub\wwwroot\MRTG\rra\localhost_load_1min_5.rrd --template 1125344043:U
08/29/2005 03:34:04 PM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update C:\Inetpub\wwwroot\MRTG\rra\localhost_mem_swap_4.rrd --template mem_swap 1125344043:U
08/29/2005 03:34:04 PM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update C:\Inetpub\wwwroot\MRTG\rra\localhost_mem_buffers_3.rrd --template mem_buffers 1125344043:U
08/29/2005 03:34:04 PM - CMDPHP: Poller[0] Time: 0.5002 s, Theads: N/A, Hosts: 2
08/29/2005 03:34:04 PM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
08/29/2005 03:34:04 PM - CMDPHP: Poller[0] Host[2] DS[10] SNMP: v2: 192.168.1.23, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.4, output: 151370714
08/29/2005 03:34:04 PM - CMDPHP: Poller[0] Host[2] DS[10] SNMP: v2: 192.168.1.23, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.4, output: 180487372
08/29/2005 03:34:04 PM - CMDPHP: Poller[0] Host[2] RECACHE: Processing 1 items in the auto reindex cache for '192.168.1.23'.
08/29/2005 03:34:04 PM - CMDPHP: Poller[0] Host[2] SNMP: Host responded to SNMP
08/29/2005 03:34:04 PM - CMDPHP: Poller[0] Host[1] DS[7] CMD: perl C:\Inetpub\wwwroot\MRTG/scripts/unix_processes.pl, output: U
08/29/2005 03:34:04 PM - CMDPHP: Poller[0] Host[1] DS[7] WARNING: Result from CMD not valid. Partial Result:
08/29/2005 03:34:04 PM - CMDPHP: Poller[0] Host[1] DS[6] CMD: perl C:\Inetpub\wwwroot\MRTG/scripts/unix_users.pl, output: U
08/29/2005 03:34:04 PM - CMDPHP: Poller[0] Host[1] DS[6] WARNING: Result from CMD not valid. Partial Result:
08/29/2005 03:34:04 PM - CMDPHP: Poller[0] Host[1] DS[5] CMD: perl C:\Inetpub\wwwroot\MRTG/scripts/loadavg_multi.pl, output: U
08/29/2005 03:34:04 PM - CMDPHP: Poller[0] Host[1] DS[5] WARNING: Result from CMD not valid. Partial Result: 1min: 5min: 10
08/29/2005 03:34:03 PM - CMDPHP: Poller[0] Host[1] DS[4] CMD: perl C:\Inetpub\wwwroot\MRTG/scripts/linux_memory.pl SwapFree:, output: U
08/29/2005 03:34:03 PM - CMDPHP: Poller[0] Host[1] DS[4] WARNING: Result from CMD not valid. Partial Result:
08/29/2005 03:34:03 PM - CMDPHP: Poller[0] Host[1] DS[3] CMD: perl C:\Inetpub\wwwroot\MRTG/scripts/linux_memory.pl MemFree:, output: U
08/29/2005 03:34:03 PM - CMDPHP: Poller[0] Host[1] DS[3] WARNING: Result from CMD not valid. Partial Result:
08/29/2005 03:34:03 PM - CMDPHP: Poller[0] Host[1] No host availability check possible for '127.0.0.1'.
08/29/2005 03:34:03 PM - CMDPHP: Poller[0] Host[1] SNMP: Device does not require SNMP
08/29/2005 03:34:03 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
08/29/2005 03:34:03 PM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
08/29/2005 03:34:03 PM - PHPSVR: Poller[0] DEBUG: FILENM: c:\Inetpub\wwwroot\MRTG\script_server.php
08/29/2005 03:34:03 PM - PHPSVR: Poller[0] DEBUG: DIRNAM: c:/inetpub/wwwroot/mrtg
08/29/2005 03:34:03 PM - PHPSVR: Poller[0] DEBUG: GETCWD: c:/inetpub/wwwroot/mrtg
08/29/2005 03:34:03 PM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
08/29/2005 03:34:03 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:/php/php-win.exe, ARGS: -q c:\inetpub\wwwroot\mrtg/cmd.php 0 2]
win2003 /iis 6
PHP 5.0.4 - ISAPI
cacti 0.8.6f
mysql 4.1
rrdtool 1.0.48
Here are my current logs:
Cacti Log:
08/29/2005 03:34:04 PM - SYSTEM STATS: Time: 1.1477 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 3, Hosts/Process: 3, Data Sources 7, RRDs Processed 6
08/29/2005 03:34:04 PM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update C:\Inetpub\wwwroot\MRTG\rra\nsvr02_db_server_traffic_in_10.rrd --template traffic_in:traffic_out 1125344043:180487372:151370714
08/29/2005 03:34:04 PM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update C:\Inetpub\wwwroot\MRTG\rra\localhost_proc_7.rrd --template proc 1125344043:U
08/29/2005 03:34:04 PM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update C:\Inetpub\wwwroot\MRTG\rra\localhost_users_6.rrd --template users 1125344043:U
08/29/2005 03:34:04 PM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update C:\Inetpub\wwwroot\MRTG\rra\localhost_load_1min_5.rrd --template 1125344043:U
08/29/2005 03:34:04 PM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update C:\Inetpub\wwwroot\MRTG\rra\localhost_mem_swap_4.rrd --template mem_swap 1125344043:U
08/29/2005 03:34:04 PM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update C:\Inetpub\wwwroot\MRTG\rra\localhost_mem_buffers_3.rrd --template mem_buffers 1125344043:U
08/29/2005 03:34:04 PM - CMDPHP: Poller[0] Time: 0.5002 s, Theads: N/A, Hosts: 2
08/29/2005 03:34:04 PM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
08/29/2005 03:34:04 PM - CMDPHP: Poller[0] Host[2] DS[10] SNMP: v2: 192.168.1.23, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.4, output: 151370714
08/29/2005 03:34:04 PM - CMDPHP: Poller[0] Host[2] DS[10] SNMP: v2: 192.168.1.23, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.4, output: 180487372
08/29/2005 03:34:04 PM - CMDPHP: Poller[0] Host[2] RECACHE: Processing 1 items in the auto reindex cache for '192.168.1.23'.
08/29/2005 03:34:04 PM - CMDPHP: Poller[0] Host[2] SNMP: Host responded to SNMP
08/29/2005 03:34:04 PM - CMDPHP: Poller[0] Host[1] DS[7] CMD: perl C:\Inetpub\wwwroot\MRTG/scripts/unix_processes.pl, output: U
08/29/2005 03:34:04 PM - CMDPHP: Poller[0] Host[1] DS[7] WARNING: Result from CMD not valid. Partial Result:
08/29/2005 03:34:04 PM - CMDPHP: Poller[0] Host[1] DS[6] CMD: perl C:\Inetpub\wwwroot\MRTG/scripts/unix_users.pl, output: U
08/29/2005 03:34:04 PM - CMDPHP: Poller[0] Host[1] DS[6] WARNING: Result from CMD not valid. Partial Result:
08/29/2005 03:34:04 PM - CMDPHP: Poller[0] Host[1] DS[5] CMD: perl C:\Inetpub\wwwroot\MRTG/scripts/loadavg_multi.pl, output: U
08/29/2005 03:34:04 PM - CMDPHP: Poller[0] Host[1] DS[5] WARNING: Result from CMD not valid. Partial Result: 1min: 5min: 10
08/29/2005 03:34:03 PM - CMDPHP: Poller[0] Host[1] DS[4] CMD: perl C:\Inetpub\wwwroot\MRTG/scripts/linux_memory.pl SwapFree:, output: U
08/29/2005 03:34:03 PM - CMDPHP: Poller[0] Host[1] DS[4] WARNING: Result from CMD not valid. Partial Result:
08/29/2005 03:34:03 PM - CMDPHP: Poller[0] Host[1] DS[3] CMD: perl C:\Inetpub\wwwroot\MRTG/scripts/linux_memory.pl MemFree:, output: U
08/29/2005 03:34:03 PM - CMDPHP: Poller[0] Host[1] DS[3] WARNING: Result from CMD not valid. Partial Result:
08/29/2005 03:34:03 PM - CMDPHP: Poller[0] Host[1] No host availability check possible for '127.0.0.1'.
08/29/2005 03:34:03 PM - CMDPHP: Poller[0] Host[1] SNMP: Device does not require SNMP
08/29/2005 03:34:03 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
08/29/2005 03:34:03 PM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
08/29/2005 03:34:03 PM - PHPSVR: Poller[0] DEBUG: FILENM: c:\Inetpub\wwwroot\MRTG\script_server.php
08/29/2005 03:34:03 PM - PHPSVR: Poller[0] DEBUG: DIRNAM: c:/inetpub/wwwroot/mrtg
08/29/2005 03:34:03 PM - PHPSVR: Poller[0] DEBUG: GETCWD: c:/inetpub/wwwroot/mrtg
08/29/2005 03:34:03 PM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
08/29/2005 03:34:03 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:/php/php-win.exe, ARGS: -q c:\inetpub\wwwroot\mrtg/cmd.php 0 2]
Last edited by snoop on Mon Aug 29, 2005 8:24 pm, edited 1 time in total.
Access denied. That means you have a security problem somewhere. Does rrdtool.exe and php-win.exe have the proper security settings?
Per your problem with perl scripts not running; 1) do they work if you manually run them? 2) if so, then once again you have a security problem.
Make sure all the programs cacti uses, the user for the website and the user running the scheduled task, has the proper rights for read/execute.
Per your problem with perl scripts not running; 1) do they work if you manually run them? 2) if so, then once again you have a security problem.
Make sure all the programs cacti uses, the user for the website and the user running the scheduled task, has the proper rights for read/execute.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
- ichoudhury
- Posts: 46
- Joined: Tue May 31, 2005 8:18 am
Hi,
Try this if you get a chance and respond your result to this forum...
1) Update PHP and RRD Path with back slash (\) not / slash.
2) Enter the RRDTool Font path as c:\windows\fonts\arial.ttf or wherever you have arial.ttf
3) Ensure that cactiuser (if that owns your cacti db, and run the schedule job, has full control of c:\cacti (if you are not using inharit permission, replicate it to the subdirectories)
4)make sure that user also have read/execute option of cmd.exe (you said it is a admin user anyway)
5) run php c:\cacti\poller.php and see how the output looks
6) Verify the c:\cacti\rra .rrd file systems updated after you ran it (if it generating those rrd file that you are not seeing
Try this if you get a chance and respond your result to this forum...
1) Update PHP and RRD Path with back slash (\) not / slash.
2) Enter the RRDTool Font path as c:\windows\fonts\arial.ttf or wherever you have arial.ttf
3) Ensure that cactiuser (if that owns your cacti db, and run the schedule job, has full control of c:\cacti (if you are not using inharit permission, replicate it to the subdirectories)
4)make sure that user also have read/execute option of cmd.exe (you said it is a admin user anyway)
5) run php c:\cacti\poller.php and see how the output looks
6) Verify the c:\cacti\rra .rrd file systems updated after you ran it (if it generating those rrd file that you are not seeing
There are those who think fast, and there are others who sleep on a decision. I belong to the third group.
Thanks for the all the advice, I more than appreciate it as this is completly new to me. I ended up switching over to Apache and the graphs work great now. I dont plan on staying with Apache as I dont really knwo the first thing about it.
Ichoudhury, I did try the (\) and (/) and neither of them worked. Now after running apache, I see that the RDD tool was the entire issue for the graphs (should have already know this). I am not certian why access was being denied. I even added it to the IIS web extension for giggles and notta. With the config listed above the rdd files were being created it was just the RRDtool.
Thanks Everyone!
Ichoudhury, I did try the (\) and (/) and neither of them worked. Now after running apache, I see that the RDD tool was the entire issue for the graphs (should have already know this). I am not certian why access was being denied. I even added it to the IIS web extension for giggles and notta. With the config listed above the rdd files were being created it was just the RRDtool.
Thanks Everyone!
Who is online
Users browsing this forum: No registered users and 0 guests