Ad Widget

Collapse

New zabbix icons set

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rborel
    Junior Member
    • Aug 2005
    • 12

    #16
    I had to change the script a lil'.

    From {png,jpg,gif}
    to just png

    Once I did that it worked great.

    Comment

    • nbliuzhong@gmail.com
      Junior Member
      • Oct 2012
      • 9

      #17
      i have the same problem with you

      i have the same problem with you , cannot find *.{png,jpg,gif} files ...
      and, i modified the sql script IMG_EXT="{png}" but it did not work.
      please help me thank u verymuch

      Comment

      • fdcsantos
        Junior Member
        Zabbix Certified Specialist
        • Mar 2010
        • 27

        #18
        Script problem in Ubuntu 12.04

        Hi t2y,

        About your script, I tried and tried hard to make it work in Ubuntu. Chaged permissions on files and nothing advanced. I also read some posts on google saying that could be some incompatible about sh or bash. I really don´t know if it makes any sense. Fact is that it won´t work. Always the sabe error: cannot find target dir

        Can you help me?

        Originally posted by t2y
        Hi Cray,

        UPDATE 20/04/2009

        I installed wonderful icons which you made. I want to install all icons, because they are all nice. So, I made a script named "make_img_insert_sql.sh" to insert mysql database. Sorry, it's mysql only. This script helps installing images into "zabbix.images" table by making SQL file;

        Code:
        how to install icons)
        1. download zabbix_icons_set_generic.zip and make_img_insert_sql.sh.gz
        
        2. extract and make SQL file
        $ mkdir $HOME/icons_new
        $ cd $HOME/icons_new/
        $ unzip $HOME/zabbix_icons_set_generic.zip
        $ ls
        128  48
        $ cd
        $ gunzip make_img_insert_sql.sh.gz
        $ sh make_img_insert_sql.sh
        Usage: make_img_insert_sql.sh <dir> <start_imageid>
        $ sh make_img_insert_sql.sh $HOME/icons_new/48 100
        ....................................................................
        completed
        $ mv my_images_mysql.sql my_images_mysql_48.sql
        $ sh make_img_insert_sql.sh $HOME/icons_new/128 200
        ....................................................................
        completed
        $ mv my_images_mysql.sql my_images_mysql_128.sql
        * just in case, you should confirm the SQL file
        $ vi my_images_mysql_*.sql
        
        3. execute SQL file
        $ cat my_images_mysql_48.sql | mysql -u root -p zabbix
        Enter password:
        $ cat my_images_mysql_128.sql | mysql -u root -p zabbix
        Enter password:
        Known_bugs:
        I don't know why only 3 icons cannot be inserted into database correctly in my environment. Maybe, my script is something wrong.
        However, you can install with web browser by re-uploading manually on Configuration/General Window if you have the same trouble.
        • 128_g_router_off.png
        • 128_g_router_on.png
        • 128_g_router_unknown.png

        Comment

        Working...