Ad Widget

Collapse

integration between Zabbix and external python script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TAR
    Junior Member
    • Aug 2022
    • 1

    #1

    integration between Zabbix and external python script

    Hi all,
    I have a python script, This script periodically enters my switches and checks the status of interfaces if one interface is down then this script should send an alarm trigger to my Zabbix server and my Zabbix server should display this trigger as an alarm so the monitoring team can be noting it and fix this interface.
    So, is there any advice on how I can achieve this connection between my python script and the Zabbix server .. Thanks in advance
  • vladimir_lv
    Senior Member
    • May 2022
    • 240

    #2
    Just use parameter 'UserParameter' in agent config file

    Comment

    • Markku
      Senior Member
      Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
      • Sep 2018
      • 1781

      #3
      If your Python script is externally scheduled, you can use a Python package like py-zabbix (https://github.com/adubkov/py-zabbix) to send the interesting values from your script to Zabbix items of type Zabbix trapper. Then you need to configure the triggers for those items to raise problems when needed.

      Markku

      Comment

      Working...