Ad Widget

Collapse

Automatic Host Monitoring

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • clope023
    Junior Member
    • Sep 2013
    • 12

    #1

    Automatic Host Monitoring

    Hello all,
    My query involves the automatic addition of a bulk of hosts to be monitored by Zabbix.

    My boss would like to distribute a series of virtual machines with zabbix pre-installed in such a fashion that it would automatically monitor all snmp-enabled devices on the network and check against relevant items associated with those hosts and such.

    My idea was to use either a python or a bash or a php script to check the network for all snmp enabled devices and their OID's and then place the IP's of said devices into a data (text) file and then take that text file and place those IP's into relevant host groups (with appropriate templates for triggers, actions, graphs, etc).

    I've looked around the forums and have found this post doing something very similar to what I'd like to do:



    However, this person was implementing his scripts with a pre-made list of IP addresses, my idea would be going into a network cold as it were.

    Is my idea feasible? Am I missing anything important? Any suggestions are greatly appreciated, thanks!
  • tsalle
    Member
    Zabbix Certified Specialist
    • Oct 2012
    • 79

    #2
    Hi,

    I've already done this kind of script (for Zabbix 1.8), to auto create Hostgroups, hosts and items based on SNMP discovery.
    I've used the Perl Zabbix::API to do that : http://search.cpan.org/dist/Zabbix-A.../Zabbix/API.pm (it's also available in debian repository now).
    Unfortunatly, the scripts i have made were property of my employer, and i can't publish them.

    With Zabbix 2.2, you can now use the Discovery to create a discovery rule based on SNMP check.
    Then, you can create an action based on Discovery rule to automaticaly add host into zabbix with a predefined Template and host group.

    Comment

    Working...