Zabbix host objects
use Zabbix::API::Host; # fetch a single host by ID my $host = $zabbix->fetch('Host', params => { filter => { hostid => 10105 } })->[0]; # and delete it $host->delete; # fetch an item's host my $item = $zabbix->fetch('Item', params => { filter => { itemid => 22379 } })->[0]; my $host_from_item = $item->host;
Handles \s-1CRUD\s0 for Zabbix host objects.
This is a subclass of \*(C`Zabbix::API::CRUDE\*(C'; see there for inherited methods.
Accessor for the host's items.
Accessor for the host's name (the \*(L"host\*(R" attribute); returns the empty string if no name is set, for instance if the host has not been created on the server yet.
Zabbix::API::CRUDE.
Fabrice Gabolde <[email protected]>
Copyright (C) 2011 \s-1SFR\s0
This library is free software; you can redistribute it and/or modify it under the terms of the GPLv3.