Howdy,
Thanks for such a great system!
I'm having a problem with Zabbix server 1.4.5 on Linux ES 4.
php-gd is installed, and shows up as working in php_info() as well as the zabbix installation screen. I can even use it directly, but no images zabbix makes seem to work, including the vertical host names, maps, graphs, etc.
I hacked together a replacement for vtext.php which works, using this I am able to see vertical host names in the trigger overview. Rather than hack away at the other image-making programs, I'd rather fix the source of my problem.
Note: The following program WORKS, and creates vertical pictures of text CORRECTLY. This implies to me that php-gd, gd, etc. are properly installed and working fine, but I would be thrilled to find out that I'm wrong.
I have the following packages installed, among others.
gd-2.0.28-5.4E
php-gd-4.3.9-3.22.4
php-4.3.9-3.22.4
Also, I get no errors in the apache log files.
Does anyone have any ideas?
Thank you very much in advance.
###############################
### File vtext.php ##################
###############################
<?php
header("Content-type: image/png");
global $_REQUEST;
if( isset( $_REQUEST['text'] ) ){
$text = $_REQUEST['text'];
}else{
$text=" ";
}
$font=2;
$width = ImageFontWidth($font) * strlen($text);
$height = ImageFontHeight($font);
$im = imagecreate($height,$width);
$backgroud_color = ImageColorAllocate($im,255,255,255);
$text_color = ImageColorAllocate($im,0,0,0);
ImageStringUp($im,$font,0,$width-1,$text,$text_color);
imagecolortransparent($im,$backgroud_color);
imagepng($im);
ImageDestroy($im);
?>
###############################
#### EOF vtext.php ################
###############################
Thanks for such a great system!
I'm having a problem with Zabbix server 1.4.5 on Linux ES 4.
php-gd is installed, and shows up as working in php_info() as well as the zabbix installation screen. I can even use it directly, but no images zabbix makes seem to work, including the vertical host names, maps, graphs, etc.
I hacked together a replacement for vtext.php which works, using this I am able to see vertical host names in the trigger overview. Rather than hack away at the other image-making programs, I'd rather fix the source of my problem.
Note: The following program WORKS, and creates vertical pictures of text CORRECTLY. This implies to me that php-gd, gd, etc. are properly installed and working fine, but I would be thrilled to find out that I'm wrong.
I have the following packages installed, among others.
gd-2.0.28-5.4E
php-gd-4.3.9-3.22.4
php-4.3.9-3.22.4
Also, I get no errors in the apache log files.
Does anyone have any ideas?
Thank you very much in advance.
###############################
### File vtext.php ##################
###############################
<?php
header("Content-type: image/png");
global $_REQUEST;
if( isset( $_REQUEST['text'] ) ){
$text = $_REQUEST['text'];
}else{
$text=" ";
}
$font=2;
$width = ImageFontWidth($font) * strlen($text);
$height = ImageFontHeight($font);
$im = imagecreate($height,$width);
$backgroud_color = ImageColorAllocate($im,255,255,255);
$text_color = ImageColorAllocate($im,0,0,0);
ImageStringUp($im,$font,0,$width-1,$text,$text_color);
imagecolortransparent($im,$backgroud_color);
imagepng($im);
ImageDestroy($im);
?>
###############################
#### EOF vtext.php ################
###############################
Comment