When the poller try to create the map the last message is "About to write image file. If this is the last message in your log, increase memory_limit in php.ini [WMPOLL01] "
I've increasing the memory_limit to 256M and restart httpd/php but the problem is not solved.
I've trying check.php and check-gd.php and the second one show me a problem.
check.php:
Code: Select all
----------------------------------------------------
Weathermap Pre-Install Checker
This script checks for some common problems with your PHP and server
environment that may stop Weathermap or the Editor from working.
NOTE: You should run this script as both a web page AND from the
command-line, as the environment can be different in each.
This is the PHP version that is responsible for
* creating maps from the Cacti poller
* the command-line weathermap tool
PHP Basics
----------
This is PHP Version 5.3.16 running on "Linux pdel0100
2.6.32-279.2.1.el6.x86_64 #1 SMP Fri Jul 20 01:55:29 UTC 2012 x86_64" with
a memory_limit of '256M'.
The php.ini file was /etc/php.ini
There were no additional ini files, according to PHP.
PHP Functions
-------------
Some parts of Weathermap need special support in your PHP
installation to work.
This PHP uses the system GD library, which MIGHT have alpha-blending bugs.
Check that you have at least GD 2.0.34 installed, if you see problems with
weathermap segfaulting.
You can test for this specific fault by running check-gdbug.php
The Console_Getopt PEAR module is available. That's good!
imagepng YES
imagecreatetruecolor YES
imagealphablending YES
imageSaveAlpha YES
preg_match YES
imagecreatefrompng YES
imagecreatefromjpeg YES
imagecreatefromgif YES
imagejpeg YES
imagegif YES
imagecopyresampled YES
imagettfbbox YES
memory_get_usage YES
---------------------------------------------------------------------
OK! Your PHP and server environment *seems* to have support for ALL of the
Weathermap features. Make sure you have run this script BOTH as a web page
and from the CLI to be sure, however.
</table>
</body>
Code: Select all
Some version of the GD graphics library have a bug in their handling of
Alpha channels. Unfortunately, Weathermap uses these to draw Nodes.
This program will test if your PHP installation is using a buggy GD
library.
If you are, you should either use PHP's built-in (aka 'bundled') GD
library, or update to GD Version 2.0.34 or newer. Weathermap REQUIRES
working Alpha support.
Let's see if you have the GD transparency bug...
If you see no more output, or a segfault, then you do, and you'll need to
upgrade.
If you get other errors, like 'undefined function', then run check.php to
make sure that your PHP installation is otherwise OK.
Here we go...
[b]PHP Notice: ob_flush(): failed to flush buffer. No buffer to flush in /apps/cacti/plugins/weathermap/check-gdbug.php on line 30
Segmentation fault (core dumped)[/b]
imagefill($node_im, 0, 0, $nothing);
Can somebody help me to solve the problem?
I'm using cacti 0.8.8a with weathermap 0.97a on Centos 6.3 (x86_64), php 5.3.16, php-gd 5.3.16 ...