Zabbix proxy objects
use Zabbix::API::Proxy; # fetch a proxy by name my $proxy = $zabbix->fetch('Proxy', params => { filter => { host => "My Proxy" } })->[0]; # and update it $proxy->data->{status} = 6; $proxy->push;
Handles \s-1CRUD\s0 for Zabbix proxy objects.
This is a subclass of \*(C`Zabbix::API::CRUDE\*(C'; see there for inherited methods.
Accessor for the proxy's name (the \*(L"host\*(R" attribute); returns the empty string if no name is set, for instance if the proxy has not been created on the server yet.
This is a very simple subclass of \*(C`Zabbix::API::CRUDE\*(C'. Only the required methods are implemented (and in a very simple fashion on top of that).
In Zabbix 1.8, the only method available for proxies is to get them. You cannot add, update or delete proxies. Thus, the \*(C`push()\*(C' method is overloaded for proxies to throw an exception as soon as it is called.
Zabbix::API::CRUDE.
Fabrice Gabolde <[email protected]> Patches to this file from Chris Larsen <[email protected]>
Copyright (C) 2012 \s-1SFR\s0
This library is free software; you can redistribute it and/or modify it under the terms of the GPLv3.