Ad Widget

Collapse

Hosts Discovery using custom Python Script?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RaulChiarella
    Member
    • Apr 2021
    • 59

    #1

    Hosts Discovery using custom Python Script?

    Hello there.

    I made a Python Script that discover all the devices on my network using a specific API.
    It generates a perfect JSON data structure compatible with Zabbix.

    I wanna know how can i do a hosts discovery rule on Zabbix and point this custom script to it...
    Can someone give me some light?

    Thank you.
  • vladimir_lv
    Senior Member
    • May 2022
    • 240

    #2
    Hi!
    You can use Administration->Scripts

    Comment


    • RaulChiarella
      RaulChiarella commented
      Editing a comment
      Hi! I already use scripts but i do not know how to reference them to make new hosts. I do have a script tha generates a JSON list with the hosts i want to add automatically, but i do not know how to reference that script... :|
  • dimir
    Zabbix developer
    • Apr 2011
    • 1080

    #3
    You could create custom discovery rule and configure host prototype under it.

    Comment


    • RaulChiarella
      RaulChiarella commented
      Editing a comment
      Oh! Nice. Yes, as i was reading the links u sent me it looks like this is exactly the way i need to do this, the script is already done, i will procceed now then to create a discovery rule with hosts prototypes under it.
      Thanks for now...
Working...