Ad Widget

Collapse

looking for Icons

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pey
    Junior Member
    • Feb 2005
    • 1

    #1

    looking for Icons

    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
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    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.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • elings
      Junior Member
      • Mar 2005
      • 16

      #3
      Image problem

      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 ?

      Comment

      • Alexei
        Founder, CEO
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2004
        • 5654

        #4
        Make sure that the PNG files are accessible (have read permissions) by user 'mysql'!
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • elings
          Junior Member
          • Mar 2005
          • 16

          #5
          That solved my problem...

          Thank you Alexei !

          Comment

          • omenix
            Junior Member
            • Dec 2005
            • 14

            #6
            Originally posted by Alexei
            Make sure that the PNG files are accessible (have read permissions) by user 'mysql'!
            I still dont get this part.. What should I do?

            Comment

            • omenix
              Junior Member
              • Dec 2005
              • 14

              #7
              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

              Comment

              • cameronsto
                Senior Member
                • Oct 2005
                • 148

                #8
                There are a couple things to try:
                1. Make sure that you have modified the contents of images.sql to include the absolute path to the images.
                2. Make sure MySQL has permission to access the images. (chmod ugo+rx <images>)
                3. 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

                Comment

                • omenix
                  Junior Member
                  • Dec 2005
                  • 14

                  #9
                  Thank you it works fine now. But now I got blank page and theres no error log appear..

                  Comment

                  Working...