Ad Widget

Collapse

Zabbix 1.4 unable to create icon/image upload

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rraver
    Junior Member
    • May 2007
    • 25

    #1

    Zabbix 1.4 unable to create icon/image upload

    When I go to create an icon and select an image to upload it seems to generate this error in an image format.

    imagecreatefromstring(): [<a href='function.imagecreatefromstring'>function.ima gecreatefromstring</a>]: Data is not in recognized format
    imagesx(): supplied argument is not a valid Image resource [/usr/share...
    imagesy(): supplied argument is not a valid Image resource [/usr/share...
    imagepng(): supplied argument is not a valid Image resource [/usr/share...
    imagedestroy(): supplied argument is not a valid Image resource [/usr/share...

    I have saved this with photoshop int png format

    any ideas?
  • rraver
    Junior Member
    • May 2007
    • 25

    #2
    Still have had no luck with this, is there a limit to the dimensions of a png you can upload?

    Comment

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

      #3
      It hink that GD library did not recognized PNG file generated by Photoshop. Did you use some fancy options? Are you sure it is a PNG file?
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      • rraver
        Junior Member
        • May 2007
        • 25

        #4
        100% positive it's png, I also tried saving it non-interlaced and interlaced with no luck. I took the png saved file and ran i through paintbrush just in case it was saving some extra data to the file or something also with no luck. I will try some more options like saving it to .jpg from photoshop and doing paintbrush to do the conversion to png. I know I used Cisco Networkers Icons from a power point and saved them through paint brush and they worked good.

        Comment

        • indigo
          Junior Member
          • Jul 2007
          • 5

          #5
          I'm having this same problem too. I've tested the upload both with a JPG and a PNG file, both saved from Paint.NET and uploaded using Firefox.
          I'm using Zabbix 1.4.1, and all of this worked just fine under Zabbix 1.1.6 (the version I had before the upgrade), with the very same icons. PHP and Apache configuration haven't been modified (in fact they probably haven't even been restarted). Neither it is a database issue, because I've deleted my old db and created a new one from scratch (after the upgrade the Zabbix server process kept crashing in an unacceptable way).

          Comment

          • indigo
            Junior Member
            • Jul 2007
            • 5

            #6
            I've tried to save one of the few original images and upload it as a new one. I get the same error, despite it being surely in the right PNG format. Seems like there's some problem before the image gets escaped for insertion in the database...
            Last edited by indigo; 18-07-2007, 13:01.

            Comment

            • indigo
              Junior Member
              • Jul 2007
              • 5

              #7
              ...seems like pg_unescape_bytea doesn't properly reverse pg_escape_bytea...
              (my setup is based on Postgres)

              Comment

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

                #8
                Anyone having this problem under MySQL?
                Alexei Vladishev
                Creator of Zabbix, Product manager
                New York | Tokyo | Riga
                My Twitter

                Comment

                • aalexanderr
                  Junior Member
                  • Jul 2007
                  • 26

                  #9
                  Originally posted by Alexei
                  Anyone having this problem under MySQL?
                  All my monitoring station works with mysql base. no.. This problem i have't seen before.

                  Comment

                  • indigo
                    Junior Member
                    • Jul 2007
                    • 5

                    #10
                    Partially solved the problem for me: I had the full dump of the Zabbix 1.1 database, I selected the rows of the images I used (and wanted to use again), and imported them in the new database. Now it works, I can't add new images, but at least I have those I need.
                    During the insert, the database returned the following warnings (in case they could be useful):

                    Code:
                    WARNING:  nonstandard use of \\ in a string literal
                    LINE 1: ...T INTO images VALUES (107, 1, 'netblock_unreach', '\\211PNG\...
                                                                                 ^
                    HINT:  Use the escape string syntax for backslashes, e.g., E'\\'.
                    INSERT 80993727 1

                    Comment

                    Working...