I had to change the script a lil'.
From {png,jpg,gif}
to just png
Once I did that it worked great.
From {png,jpg,gif}
to just png
Once I did that it worked great.
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;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:

Comment