Zabbix2::API::HostGroup -- Zabbix group objects
use Zabbix2::API::HostGroup; # fetch a single hostgroup by ID my $group = $zabbix->fetch_single('HostGroup', params => { groupids => [ 12345 ] }); # get the hosts which belong to it my $hosts = $group->hosts;
Handles CRUD for Zabbix group objects.
This is a subclass of Zabbix2::API::CRUDE; see there for inherited methods.
Zabbix2::API::CRUDE
(read-only arrayref of Zabbix::API::Host objects)
This attribute is lazily populated with the hostgroup's hosts from the server.
Zabbix2::API::CRUDE.
Fabrice Gabolde <fga@cpan.org>
Copyright (C) 2011, 2014 SFR
This library is free software; you can redistribute it and/or modify it under the terms of the GPLv3.
To install Zabbix2::API, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Zabbix2::API
CPAN shell
perl -MCPAN -e shell install Zabbix2::API
For more information on module installation, please visit the detailed CPAN module installation guide.