Add Web Scenarios support to Zabbix Low Level Discovery.
Zabbix team provides very fragile http-item implementation and don't want to support for Web-scenarios in Low Level Discovery feature. So, I've implemented this tool to fix that.
See INSTALL.md.
Based on data from Zabbix:
wszl -d /etc/zabbix gen
Or use file as a source for urls:
wszl -d /etc/zabbix gen --source=file --file=urls.txt
Check urls.txt-example
as example.
- WSZL gets items from Zabbix API by mask or file
- Creates web scenarios and triggers
- Web scenario params: title - "Check index page 'XYZ'", expected response code - 200
- Trigger params: severity - High (4), title - 'Site XYZ is unavailable', expression
web.test.fail
Check wszl.log
file for details.
You can switch logging levels with --log-level
option. Example:
wszl --log-level=debug gen