reassign 731328 mon 1.2.0-6
thanks

On Wed, Dec 04, 2013 at 12:00:42PM +0100, Brogniaux Gaëtan wrote:
> Package: collectd

dns.monitor is shipped by mon instead of collectd. Reassigning the bug
with this email.

> Version: 1.2.0-6
> 
> When I use dns.monitor, I've got Perl problem when calling normally or
> simple with "--help" argument :
> # /usr/lib/mon/mon.d/dns.monitor 127.0.0.1
> defined(@array) is deprecated at /usr/lib/mon/mon.d/dnscustom.monitor
> line 171.
>    (Maybe you should just omit the defined()?)
> defined(@array) is deprecated at /usr/lib/mon/mon.d/dnscustom.monitor
> line 176.
>    (Maybe you should just omit the defined()?)
> defined(@array) is deprecated at /usr/lib/mon/mon.d/dnscustom.monitor
> line 182.
>    (Maybe you should just omit the defined()?)
> 
> The defined function in recent perl is deprecated and genere a mon alerte.
> See this great information at :
> http://blogs.perl.org/users/rurban/2012/02/on-definedarray-and-definedhash.html
> 
> This is my patch works well : diff /usr/lib/mon/mon.d/dns.monitor
> /usr/lib/mon/mon.d/dnscustom.monitor
> 171c171
> < if (!defined(@Master)) {
> ---
> > if (! @Master) {
> 176c176
> < if ( !defined(@Zones) ) {
> ---
> > if (! @Zones) {
> 182c182
> < if ( !defined(@Queries) ) {
> ---
> > if (! @Queries) { 
> 
> I am using Linux antispam 3.2.0-4-amd64 #1 SMP Debian 3.2.51-1 x86_64
> GNU/Linux
> libc6:amd64 2.13-38
> perl 5.14.2-21+deb7u1
> 
> -- 
> Brogniaux Gaëtan
> Tel direct  : 065/842.385 (ext 6018)
> Tel support : 065/328.585
> 
> IT-Optics s.a.
> Boulevard Initialis, 28
> 7000 Mons
> Belgium
> TVA: BE473274282 /  RC: MONS 143271

-- 
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin

Attachment: signature.asc
Description: Digital signature

Reply via email to