michalsternadel / mgs_zbxicons

Zabbix maps icon generator.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mgs_zbxicons

Zabbix maps icon generator.

Tool for generating icon pack to use with Zabbix maps. It simply combines all png's from icons directory with all png files from status directory (default statuses are: DISABLED, ERROR, MAINTENANCE, OK) and saves them in output directory. Can be installed by-hand or using generated SQL scripts on sql directory.

This repository includes some Tango-styled icons.

Example map

Installation

  1. mgs_zbxicons requires python3 with pillow libraries (PIL), install it with pip or your package manager
pip3 install -r requirements.txt
  1. Put your icons to "icons" directory or use already provided. Filename (without png extensions) will preserve as Drop-down names of icon.
  2. Put your statuses to "statuses" directory.
  3. Check usage and all available options:
python3 ./mgs_zbxicons -h
  1. To generate icons and sql scripts run:

a) For mysql/mariadb backend:

python3 ./mgs_zbxicons.py -e mysql

b) For posgresql backend:

python3 ./mgs_zbxicons.py -e psql
  1. Transfer mgs_zbxicons-mysql.sql or mgs_zbxicons-psql.sql to you zabbix mysql/postgresql server.
  2. Import generated sql files to database engine:

a) For mysql/mariadb backend:

mysql -u zabbix_user -h zabbix_dbhost -p zabbix_db < ./mgs_zbxicons-mysql.sql

b) For postgresql backend:

psql -h zabbix_dbhost -U zabbix_user zabbix_db -f mgs_zbxicons-psql.sql

Updating

Procedure is the same as instalation procedure.

About

Zabbix maps icon generator.

License:GNU General Public License v2.0


Languages

Language:Python 100.0%