Zabbix::API::Host(3pm)

Zabbix::API::Host3pm

Usage

  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;

Overview

Handles CRUD for Zabbix host objects.

This is a subclass of "Zabbix::API::CRUDE"; see there for inherited methods.

Methods

items()

Accessor for the host's items.

name()

Accessor for the host's name (the "host" attribute); returns the empty string if no name is set, for instance if the host has not been created on the server yet.

Author

Fabrice Gabolde <[email protected]>

From libzabbix-api-perl 0.009-1 in Debian 8 (Jessie). Parsed by carta from the page's man source.