Category: PHP

Random byte generation in PHP

Here is my small 5 minute php script for random byte generation.

Could be useful for checking your random numbers quality. https://www.random.org/analysis/dilbert.jpg 🙂

Read more

Script for import Zabbix Templates through API

Here is small script for import Zabbix template or host through API. Templates stored in special directory with *.json file. Zabbix templates have to special prepared in json format for api requests. Script:

Zabbix script + sample + test template: zabbix_import_template.tar

Read more

Automation and integration zabbix through api

Hello, sometime you need to automated ordinary task. Especially when you have dynamic infrastructure with automatic provisioning and configuration management. Here is small example how you can integrate and automate. There are a lot of zabbix api implementation, for example: https://github.com/baniuyao/ZabbixPythonApi https://github.com/lukecyca/pyzabbix https://github.com/gnetsman/zabbix_api So, i decided to use https://github.com/gnetsman/zabbix_api due to ability to find so examples: https://github.com/gescheit/scripts/tree/master/zabbix. […]

Read more