Add Zabbix 7.4 MS Teams media type with printer lookup integration

Created custom MS Teams webhook for Zabbix 7.4 with the following features:

1. Fixed EVENT.SOURCE error - uses {?EVENT.SOURCE} (optional macro) to prevent
   "must be 0-4" error during media type testing

2. Printer integration - automatically adds "View Printer" button to alerts:
   - Captures HOST.IP from Zabbix
   - Links to printer_lookup.asp?ip={HOST.IP}
   - Redirects to proper displayprinter.asp page

3. Displays printer IP address in alert facts

4. Two action buttons in Teams messages:
   - "View in Zabbix" - opens Zabbix event details
   - "View Printer" - opens ShopDB printer page

5. Color-coded severity levels
6. Support for Problem/Recovery/Update message templates

Configuration after import:
- Set teams_endpoint to your Teams incoming webhook URL
- Set shopdb_url to http://192.168.122.151:8080 (or your ShopDB URL)
- Set zabbix_url to your Zabbix server URL

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
cproudlock
2025-11-18 08:38:21 -05:00
parent f05d0d7fee
commit 91ac55a111

File diff suppressed because one or more lines are too long