Skip Menu |

This queue is for tickets about the Zabbix-API CPAN distribution.

Report information
The Basics
Id: 97183
Status: open
Priority: 0/
Queue: Zabbix-API

People
Owner: FGA [...] cpan.org
Requestors: giovanni [...] paclan.it
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: experimental warnings in Zabbix::API
Date: Sun, 13 Jul 2014 11:01:18 +0200
To: bug-Zabbix-API [...] rt.cpan.org
From: Giovanni Bechis <giovanni [...] paclan.it>
Hi, in Zabbix::API the "given" and "when" keywords are used but they are still experimental and they give warnings. Patch attached to fix the warnings. Giovanni

Message body is not shown because sender requested not to inline it.

Message body is not shown because sender requested not to inline it.

On Sun, 13 Jul 2014 05:01:38 -0400, giovanni@paclan.it wrote: Show quoted text
> Hi, > in Zabbix::API the "given" and "when" keywords are used but they are > still experimental and they give warnings. > Patch attached to fix the warnings. > Giovanni
Hello, Thanks for the patches. This will be a good excuse to do a new release of Zabbix-API after more than one year. If you are using Zabbix 2.x though (which you probably are if you are running a system recent enough to have a perl that emits warnings on given/when), consider using Zabbix2-API instead. It has more dependencies but I am working on it much more often than Zabbix-API. If you are really using Zabbix 1.8.x, there is a branch on the Zabbix-API github repository with some work done towards compatibility with Perl 5.8, which may be of interest to you as well (no given/when there, so presumably no warnings). -- Fabrice Gabolde
Subject: Re: [rt.cpan.org #97183] experimental warnings in Zabbix::API
Date: Wed, 16 Jul 2014 11:35:48 +0200
To: bug-Zabbix-API [...] rt.cpan.org
From: Giovanni Bechis <giovanni [...] paclan.it>
On 07/16/14 11:20, Fabrice Gabolde via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=97183 > > > On Sun, 13 Jul 2014 05:01:38 -0400, giovanni@paclan.it wrote:
>> Hi, >> in Zabbix::API the "given" and "when" keywords are used but they are >> still experimental and they give warnings. >> Patch attached to fix the warnings. >> Giovanni
> > Hello, > > Thanks for the patches. This will be a good excuse to do a new > release of Zabbix-API after more than one year. > > If you are using Zabbix 2.x though (which you probably are if you are > running a system recent enough to have a perl that emits warnings on > given/when), consider using Zabbix2-API instead. It has more > dependencies but I am working on it much more often than Zabbix-API. > > If you are really using Zabbix 1.8.x, there is a branch on the > Zabbix-API github repository with some work done towards compatibility > with Perl 5.8, which may be of interest to you as well (no given/when > there, so presumably no warnings). >
I was porting Zabbix-API to OpenBSD (Perl 5.18.2), I will probably need it in the near future; if Zabbix2-API is better I will port this one instead. Thanks Giovanni Bechis
On Wed, 16 Jul 2014 05:36:03 -0400, giovanni@paclan.it wrote: Show quoted text
> I was porting Zabbix-API to OpenBSD (Perl 5.18.2), I will probably > need it in the near future; if Zabbix2-API is better I will port > this one instead.
It's not so much a question of which of the two is better (although, as the author of both my personal opinion is that Zabbix2-API is better written and more maintainable). Zabbix 1.8.x and 2.x have small but significant differences in the HTTP API; enough that it was simpler to maintain two dumb wrappers than one smarter one. If you need to support both versions of Zabbix, you'll need to package both wrappers. If you can get away with only one it should probably be Zabbix2-API. Incidentally, Zabbix2-API does not use given/when. If you wish to report bugs against it, the bugtracker lives at https://bitbucket.org/fgabolde/zabbix2-api/issues?status=new&status=open -- Fabrice Gabolde