-
Buy a USB traffic light - in our case we used this one
-
Install a host-system to trigger the traffic-light - in our case we needed an x86-bit linux/raspbian as the cli-binary only supported that architecture
-
Make sure you can trigger its lights manually using the shell
-
Make sure the host-system can access the Zabbix Server web-interface (firewalling)
-
Create an API user
- See: Zabbix Docs
- You may need to create a custom user-role: Zabbix Docs
- Groups: Readers
- Permissions:
- User-type: User
- Permissions: Read access on groups you want to 'display'
-
Copy the script to the host-system and update/modify the variables as needed:
- API_URL, API_USER, API_PWD
- AMPEL_CMD => path to your executable
- CHOICES => map the zabbix trigger priority to commands
-
Install the requirements
python3 -m pip install pyzabbix
-
Add a service to run the script
cp ampel.service /etc/systemd/system/ systemctl daemon-reload systemctl enable ampel.service systemctl start ampel.service systemctl status ampel.service
-
Notifications
You must be signed in to change notification settings - Fork 1
Script to integrate traffic lights with Zabbix Triggers
License
niceshops/zabbix-ampel
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Script to integrate traffic lights with Zabbix Triggers