Skip to content

Web scenarios for Zabbix Low Level Discovery

License

Notifications You must be signed in to change notification settings

tinyops-ru/zabbix-lld-ws

Repository files navigation

WSZL

Add Web Scenarios support to Zabbix Low Level Discovery.

Why?

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.

Installation

See INSTALL.md.

Usage

Generate items and triggers

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.

How it works

  1. WSZL gets items from Zabbix API by mask or file
  2. 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

Zabbix API version

Zabbix API v6 only

Troubleshooting

Check wszl.log file for details.

You can switch logging levels with --log-level option. Example:

wszl --log-level=debug gen

Contributors