Ad Widget

Collapse

Dynamic hosts list

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ssp1re
    Junior Member
    • May 2010
    • 5

    #1

    Dynamic hosts list

    Is it possible in Zabbix to monitor a list of hosts from a file, that is dynamically changed?

    What I'd like to do is run a cron on the Zabbix server that queries a database for a list of servers to monitor, and output it to a file. I want to configure Zabbix to monitor every server listed in that file with the same template and in the same host group.

    Will this require heavy scripting and/or use of the API?
  • walterheck
    Senior Member
    • Jul 2009
    • 153

    #2
    Yes, this could be done with the API. You could have a cronned script loop through that file, then call a PHP/ruby script that uses the API to create new hosts/update old ones.

    Couldn't you work with auto-discovery somehow? That's already built-in..
    Free and Open Source Zabbix Templates Repository | Hosted Zabbix @ Tribily (http://tribily.com)

    Comment

    • ssp1re
      Junior Member
      • May 2010
      • 5

      #3
      Thanks for the suggestion. No, we cannot use auto-discovery in this case-- new servers added are managed hosts in different datacenters.

      Comment

      Working...