No Graphs - 'PHP has encountered an Access Violation at '
Moderators: Developers, Moderators
No Graphs - 'PHP has encountered an Access Violation at '
This problem is to do with the PHP server version.
5.2.0 has a problem with the native RRDTool-1.2.12 native windows binary (the native binary should be used in favour of the Cygwin version for newer releases of Cacti)
The Cygwin version of RRDTool 1.2.15 also causes graph generation to fail because of a hard-coded font reference.
PHP 5.1.6 is the one you want, it works fine.
5.2.1RC1 looked hopeful, however I have tested this and it still has the same problems with RRDTool as 5.2.0.
So you want PHP 5.1.6, RRDTool 1.2.12 native windows binary, any mySQL (if using MySql 5 then set sql-mode="MYSQL40" in my.ini), and cacti-0.8.6i
Also to be wary of is that your MIBDIRS environment variable is pointing at your NET-SNMP MIBs ([net-snmp-dir]\usr\share\snmp\mibs) rather than your PHP ones (typically C:\PHP\extras\mibs)
You definitely want to run the cactid version of the poller as well, of course!
Seen a lot of these problems all over the forums; hopefully someone will find this useful!
David
5.2.0 has a problem with the native RRDTool-1.2.12 native windows binary (the native binary should be used in favour of the Cygwin version for newer releases of Cacti)
The Cygwin version of RRDTool 1.2.15 also causes graph generation to fail because of a hard-coded font reference.
PHP 5.1.6 is the one you want, it works fine.
5.2.1RC1 looked hopeful, however I have tested this and it still has the same problems with RRDTool as 5.2.0.
So you want PHP 5.1.6, RRDTool 1.2.12 native windows binary, any mySQL (if using MySql 5 then set sql-mode="MYSQL40" in my.ini), and cacti-0.8.6i
Also to be wary of is that your MIBDIRS environment variable is pointing at your NET-SNMP MIBs ([net-snmp-dir]\usr\share\snmp\mibs) rather than your PHP ones (typically C:\PHP\extras\mibs)
You definitely want to run the cactid version of the poller as well, of course!
Seen a lot of these problems all over the forums; hopefully someone will find this useful!
David
Yes, there is a known problem with php 5.2.0 documented here: http://bugs.cacti.net/view.php?id=877
Who said the win32 version of rrdtool is the preferred version now? Last I heard, the Cygwin build was still required for cacti.
Who said the win32 version of rrdtool is the preferred version now? Last I heard, the Cygwin build was still required for cacti.
| 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 don't think that the issue documented on http://bugs.cacti.net/view.php?id=877 is the only problem associated with the 5.2.x releases to date as it specifically applies to the use of cmd.php for polling. I experienced further issues with the RRDTool graph generation even when using the cactid poller.
As for the native RRDTool vs the Cygwin version, the cygwin version of 1.2.15 seems to have a hard-coded font reference (or at least the binary i pulled did) to a linux path -> this was revealed when I attempted graph generation from the command line, in which the binary output was interrupted with an error on the font load. This problem does not exist in the 1.2.12 versions, or at least not in the native windows build.
I'm running the native version of 1.2.12 and it all seems to be perfectly happy. Much faster than running under Cygwin too, of course.
Regards,
David
As for the native RRDTool vs the Cygwin version, the cygwin version of 1.2.15 seems to have a hard-coded font reference (or at least the binary i pulled did) to a linux path -> this was revealed when I attempted graph generation from the command line, in which the binary output was interrupted with an error on the font load. This problem does not exist in the 1.2.12 versions, or at least not in the native windows build.
I'm running the native version of 1.2.12 and it all seems to be perfectly happy. Much faster than running under Cygwin too, of course.
Regards,
David
This is likely because you're not using the cygwin version. cactid has nothing to do with graphing -- rrdtool does. cactid only collects that data.Satch wrote:I experienced further issues with the RRDTool graph generation even when using the cactid poller
| 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 understand what you are saying, however I only received further issues while using the Cygwin version. I do not experience the problem with the native version, however I do of course need to run cactid polling.
Please advice if you are aware of further problems with using the native RRDTool binaries with Cacti when using cactid polling, as it seems to be working just fine for me now.
Your responses are greatly appreciated.
Please advice if you are aware of further problems with using the native RRDTool binaries with Cacti when using cactid polling, as it seems to be working just fine for me now.
Your responses are greatly appreciated.
Alright, so keep using the win32 version of rrdtool. Go to graph management, click on a graph and enable graph debugging. Whats the error?
If nothing is revealed by that, then the next thing to try is to fire up Sysinternals FileMon when you're attempting to display a graph. Look for access denied errors. Post the log if you want.
If nothing is revealed by that, then the next thing to try is to fire up Sysinternals FileMon when you're attempting to display a graph. Look for access denied errors. Post the log if you want.
| 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 |
Just for my own curiosity is there any real reason to use PHP 5.x with Cacti?
I stuck 4.4.4 on mine just because it's been out longer and therefore subjected to more abuse, but to be honest I didn't spend much time thinking about it
I stuck 4.4.4 on mine just because it's been out longer and therefore subjected to more abuse, but to be honest I didn't spend much time thinking about it
[size=75][b]Win2003 x86 SP1 | IIS 6 | Cacti 0.8.6i | Cactid 0.8.6i | MySQL 5.0.24 | PHP 4.4.4 | RRD 1.2.15 | NetSNMP 5.3.1 | Cygwin 1.5.23 | P4 2.1GHz | 512MB | 300GB RAID1[/b][/size]
I think it has better support for snmpv3 (cant say for sure since I don't use it) and of course its more frequently updated than the 4.x line. Probably more efficient, etc too but once again nothing to back that up.
| 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 |
- daedalus01
- Posts: 4
- Joined: Mon Dec 05, 2005 5:37 pm
I personally get:BSOD2600 wrote:Alright, so keep using the win32 version of rrdtool. Go to graph management, click on a graph and enable graph debugging. Whats the error?
If nothing is revealed by that, then the next thing to try is to fire up Sysinternals FileMon when you're attempting to display a graph. Look for access denied errors. Post the log if you want.
Code: Select all
RRDTool Command:
PHP has encountered an Access Violation at 0101AE66
UPDATE: Reverted back to v5.1.6, works great.
Hi, I 've installed Cacti with the Beta Windows installer v1.5.
Sometimes all my graphs disapear and when I click on the wrench I get this :
For now I reboot my server evry time I get this message, I want to know how to downgrade my php version (5.2.1) to change that.
Thanks
Sometimes all my graphs disapear and when I click on the wrench I get this :
Code: Select all
PHP has encountered an Access Violation at 0169AE66
Thanks
Who is online
Users browsing this forum: No registered users and 1 guest