I have used BSOD2600's install guide for Windows, but am having problems. When I log in to cacti, and click on the Graphs tab I get the following message.
Warning: Unknown(C:\apache\Apache2\htdocs\cacti\graph_view.php): failed to open stream: Permission denied in Unknown on line 0
Warning: (null)(): Failed opening 'C:\apache\Apache2\htdocs\cacti\graph_view.php' for inclusion (include_path='.;c:\php4\pear') in Unknown on line 0
The poller seems to be working. The cacti.log file is being updated as well are the rrd files.
My set up is as follows:
Windows 2003 SP1
Apache 2.0.55
mysql 4.1.15
php 4.4.1
rrdtool 1.2.11 (with cygwin)
cacti 0.8.6g (including the patches)
I have a local user account called cacti that I am using to run the scheduled task. This account has read and execute permissions at the cacti folder, modify permissions at cacti/log and cacti/rra, and read and execute permissions on cmd.exe in the windows\system32 directory.
I set the logging to debug and this is what the log shows.
11/29/2005 10:28:00 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:/php/php.exe, ARGS: -q c:/apache/apache2/htdocs/cacti/cmd.php 0 3]
11/29/2005 10:28:01 AM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
11/29/2005 10:28:01 AM - PHPSVR: Poller[0] DEBUG: GETCWD: c:/apache/apache2/htdocs/cacti
11/29/2005 10:28:01 AM - PHPSVR: Poller[0] DEBUG: DIRNAM: c:/apache/apache2/htdocs/cacti
11/29/2005 10:28:01 AM - PHPSVR: Poller[0] DEBUG: FILENM: c:\apache\apache2\htdocs\cacti\script_server.php
11/29/2005 10:28:01 AM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
11/29/2005 10:28:01 AM - CMDPHP: Poller[0] PHP Script Server Started Properly
11/29/2005 10:28:01 AM - CMDPHP: Poller[0] Host[3] SNMP: Host responded to SNMP
11/29/2005 10:28:01 AM - CMDPHP: Poller[0] Host[3] RECACHE: Processing 3 items in the auto reindex cache for 'localhost'.
11/29/2005 10:28:01 AM - PHPSVR: Poller[0] DEBUG: INCLUDE: 'C:\apache\Apache2\htdocs\cacti\scripts\ss_host_disk.php' SCRIPT: 'ss_host_disk' CMD: 'localhost 3 1:161:500:L4CS53A41RSNMP:::MD5::[None] get total 2'
11/29/2005 10:28:02 AM - CMDPHP: Poller[0] Host[3] DS[8] SERVER: C:\apache\Apache2\htdocs\cacti\scripts\ss_host_disk.php ss_host_disk localhost 3 1:161:500:L4CS53A41RSNMP:::MD5::[None] get total 2, output: 79990812672
11/29/2005 10:28:02 AM - PHPSVR: Poller[0] SERVER: C:\apache\Apache2\htdocs\cacti\scripts\ss_host_disk.php ss_host_disk localhost 3 1:161:500:L4CS53A41RSNMP:::MD5::[None] get total 2 output 79990812672
11/29/2005 10:28:02 AM - PHPSVR: Poller[0] DEBUG: INCLUDE: 'C:\apache\Apache2\htdocs\cacti\scripts\ss_host_disk.php' SCRIPT: 'ss_host_disk' CMD: 'localhost 3 1:161:500:L4CS53A41RSNMP:::MD5::[None] get used 2'
11/29/2005 10:28:02 AM - CMDPHP: Poller[0] Host[3] DS[8] SERVER: C:\apache\Apache2\htdocs\cacti\scripts\ss_host_disk.php ss_host_disk localhost 3 1:161:500:L4CS53A41RSNMP:::MD5::[None] get used 2, output: 4803735552
11/29/2005 10:28:02 AM - CMDPHP: Poller[0] Host[3] DS[9] SNMP: v1: localhost, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.65539, output: 2427490
11/29/2005 10:28:02 AM - CMDPHP: Poller[0] Host[3] DS[9] SNMP: v1: localhost, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.65539, output: 2706678
11/29/2005 10:28:02 AM - PHPSVR: Poller[0] SERVER: C:\apache\Apache2\htdocs\cacti\scripts\ss_host_disk.php ss_host_disk localhost 3 1:161:500:L4CS53A41RSNMP:::MD5::[None] get used 2 output 4803735552
11/29/2005 10:28:02 AM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
11/29/2005 10:28:02 AM - CMDPHP: Poller[0] Time: 1.5989 s, Theads: N/A, Hosts: 1
11/29/2005 10:28:02 AM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update C:\apache\Apache2\htdocs\cacti\rra\localhost_hdd_total_8.rrd --template hdd_total:hdd_used 1133278080:79990812672:4803735552
11/29/2005 10:28:02 AM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update C:\apache\Apache2\htdocs\cacti\rra\localhost_traffic_in_9.rrd --template traffic_in:traffic_out 1133278080:2427490:2706678
11/29/2005 10:28:02 AM - SYSTEM STATS: Time:2.2044 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:4 RRDsProcessed:2
11/29/2005 10:28:02 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:/php/php.exe, ARGS: -q C:/apache/Apache2/htdocs/cacti/poller_commands.php]
11/29/2005 10:28:02 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:/php/php.exe, ARGS: -q C:/apache/Apache2/htdocs/cacti/poller_export.php]
Can anyone help, please?
Thanks
Error when I click on the Graphs tab
Moderators: Developers, Moderators
Probably a permission problem. Make sure the web user account for Apache, has read rights to your /cacti/ directory and sub-directories.
Are your rrd files getting updated? If no, then make sure the /cacti/log and /cacti/rra folders have 'modify' rights on them for your web user and user which runs the scheduled task.
Both will also need read rights to the php files/directory.
Are your rrd files getting updated? If no, then make sure the /cacti/log and /cacti/rra folders have 'modify' rights on them for your web user and user which runs the scheduled task.
Both will also need read rights to the php files/directory.
| 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 |
Thanks for the quick reply. I figured it was a permissions thing, but couldn't see what was going on. I guess when I applied the patches a couple of the files didn't have inheritance turned on so the rights weren't correct. I hadn't looked at the rights prior to the patches, so I assumed they would be ok.
Any thanks again.
Any thanks again.
Who is online
Users browsing this forum: No registered users and 2 guests