A modification that adds a simple ICMP check status to frontend 5.2 with an icon next to the standard ones.


It consists of 3 components:
1) Modification of the zabbix database db_update.sql (adding fields to the hosts table. Does not affect the rest of the work and updates. checked for updates 4.0 > 4.2 > 4.4 > 5.0 > 5.2)
2) Changing php files in the frontend directory. (presented in the form of diff files. inside there is a path to the file being modified)
3) Script icmp_avaliable.php and the icmp_avaliable.sh wrapper to run through the scheduler. Retrieves the status of all active icmpping keys via the API and updates the corresponding state in the database.
How to configure:
1) create a zabbix user with api request execution rights. To register it in the file icmp_avaliable.php.
2) make changes to the database according db_update.sql. you can use the entire sql file or you can make changes line by line with monitoring of what is happening (recommended)
3) change the php files in the frontend directory (4 files). Make sure to create a backup first!
4) Attention! Script icmp_avaliable.php written to connect to the Postgresql database! To work with other databases, make changes to the ACCESS_CONNECTION_STRING database connection string and call the appropriate functions instead of pg_ )
5) configure script execution in the scheduler icmp_avaliable.php (or icmp_avaliable.sh) with the frequency you need. First, try running it manually to control how it works.
Модификация добавляющая во frontend 5.2 состояние простой проверки ICMP иконкой рядом со стандартными.
Состоит из 3х компонентов
1) Модификация базы данных zabbix - db_update.sql (добавление полей в таблицу hosts. Не влияет на остальную работу и обновлени. проверено при обновлениях 4.0 > 4.2 > 4.4 > 5.0 > 5.2)
2) Изменение php файлов в каталоге с frontend. (представлены в виде diff файлов. внутри есть путь к изменяемому файлу)
3) Скрипт icmp_avaliable.php и обертка icmp_avaliable.sh для запуска через планировщик. Получает через API состояние всех активных ключей icmpping и обновляет соответствующее состояние в базе данных.
Как настроить:
1) создать пользователя zabbix с правами выполнения запросов api. Прописать его в файле icmp_avaliable.php.
2) внести изменения в базу данных. можно целиком использовать файл sql или вносить построчно с контролем происходящего (рекомендуется)
3) изменить файлы php в каталоге с frontend (4 штуки). Обязательно создайте резервную копию!
4) Внимание! Скрипт icmp_avaliable.php написан для подключения к базе Postgresql! Для работы с другими базами данных внесите изменения в строку подключения к базе данных CCS_CONNECTION_STRING и вызов соотвествующих функций вмест
5) настроить в планировщике выполнение скрипта icmp_avaliable.php (или icmp_avaliable.sh) с нужной вам частотой. Предварительно попробуйте запустить его вручную для контроля работы.
It consists of 3 components:
1) Modification of the zabbix database db_update.sql (adding fields to the hosts table. Does not affect the rest of the work and updates. checked for updates 4.0 > 4.2 > 4.4 > 5.0 > 5.2)
2) Changing php files in the frontend directory. (presented in the form of diff files. inside there is a path to the file being modified)
3) Script icmp_avaliable.php and the icmp_avaliable.sh wrapper to run through the scheduler. Retrieves the status of all active icmpping keys via the API and updates the corresponding state in the database.
How to configure:
1) create a zabbix user with api request execution rights. To register it in the file icmp_avaliable.php.
2) make changes to the database according db_update.sql. you can use the entire sql file or you can make changes line by line with monitoring of what is happening (recommended)
3) change the php files in the frontend directory (4 files). Make sure to create a backup first!
4) Attention! Script icmp_avaliable.php written to connect to the Postgresql database! To work with other databases, make changes to the ACCESS_CONNECTION_STRING database connection string and call the appropriate functions instead of pg_ )
5) configure script execution in the scheduler icmp_avaliable.php (or icmp_avaliable.sh) with the frequency you need. First, try running it manually to control how it works.
Модификация добавляющая во frontend 5.2 состояние простой проверки ICMP иконкой рядом со стандартными.
Состоит из 3х компонентов
1) Модификация базы данных zabbix - db_update.sql (добавление полей в таблицу hosts. Не влияет на остальную работу и обновлени. проверено при обновлениях 4.0 > 4.2 > 4.4 > 5.0 > 5.2)
2) Изменение php файлов в каталоге с frontend. (представлены в виде diff файлов. внутри есть путь к изменяемому файлу)
3) Скрипт icmp_avaliable.php и обертка icmp_avaliable.sh для запуска через планировщик. Получает через API состояние всех активных ключей icmpping и обновляет соответствующее состояние в базе данных.
Как настроить:
1) создать пользователя zabbix с правами выполнения запросов api. Прописать его в файле icmp_avaliable.php.
2) внести изменения в базу данных. можно целиком использовать файл sql или вносить построчно с контролем происходящего (рекомендуется)
3) изменить файлы php в каталоге с frontend (4 штуки). Обязательно создайте резервную копию!
4) Внимание! Скрипт icmp_avaliable.php написан для подключения к базе Postgresql! Для работы с другими базами данных внесите изменения в строку подключения к базе данных CCS_CONNECTION_STRING и вызов соотвествующих функций вмест
5) настроить в планировщике выполнение скрипта icmp_avaliable.php (или icmp_avaliable.sh) с нужной вам частотой. Предварительно попробуйте запустить его вручную для контроля работы.
I even have hosts which can't be reached, only active agent works...
Comment