PDA

View Full Version : looking for Icons


pey
08-02-2005, 18:00
Looking for Icons ....
Hi,

I'm try to configure a map with icons but i just see a a black object on my map.
When i'm checking mysql database, i can see the image table but this table is empty. is it normal ?

Zabbix--> 1.1alpha4

Alexei
08-02-2005, 18:04
No, it's not normal! Load images.sql into your database. Before doing this, make sure that all load_file() statements have correct full-path image names in this file.

elings
03-06-2005, 10:02
Hello !

I have the same problem and tried to add the images.sql to mysql by
doing this:
cat ./images.sql |mysql zabbix

But i get the following error:
ERROR 13 at line 24: Can't get stat of/home/zabbix/zabbix/create/data/images/Hub.png' (Errcode: 13)

Does anyone have any suggestion ?

Alexei
03-06-2005, 10:05
Make sure that the PNG files are accessible (have read permissions) by user 'mysql'!

elings
03-06-2005, 10:59
That solved my problem...

Thank you Alexei !

omenix
07-12-2005, 14:02
Make sure that the PNG files are accessible (have read permissions) by user 'mysql'!

I still dont get this part.. What should I do?

omenix
07-12-2005, 14:06
This is my current config

insert into images values(1,1,"Hub",load_file("/root/zabbix-1.1beta2/create/data/images/Hub.png"));
insert into images values(2,1,"Hub (small)",load_file("/root/zabbix-1.1beta2/create/data/images/Hub_small.png"));
insert into images values(3,1,"Network",load_file("/root/zabbix-1.1beta2/create/data/images/Network.png"));

And this is my file perm:
-rw-r--r-- 1 mysql mysql 1960 Jul 29 2004 Hub.png
-rw-r--r-- 1 mysql mysql 992 Jul 29 2004 Hub_small.png
-rw-r--r-- 1 mysql mysql 1960 Jul 29 2004 Network.png
-rw-r--r-- 1 mysql mysql 992 Jul 29 2004 Network_small.png
-rw-r--r-- 1 mysql mysql 1923 Jul 29 2004 Notebook.png
-rw-r--r-- 1 mysql mysql 920 Jul 29 2004 Notebook_small.png

But I still get the error message

cameronsto
07-12-2005, 15:18
There are a couple things to try:

Make sure that you have modified the contents of images.sql to include the absolute path to the images.
Make sure MySQL has permission to access the images. (chmod ugo+rx <images>)
You might need to move the images to /tmp in order for MySQL to get proper access. Don't forget to modify images.sql again.


-cameron

omenix
07-12-2005, 21:45
Thank you it works fine now. But now I got blank page :confused: and theres no error log appear..